Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / July 2006

Tip: Looking for answers? Try searching our database.

'Not Installed' launch condition backfired with Visual Studio Installer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pathak_deepika@hotmail.com - 18 Jul 2006 21:55 GMT
Hi,

I am a newbie with Visual Studio Installer. I made an Installer for my
Visual Basic 6.0 project with a launch condition 'Not Installed' to
make sure that my software does not install if it is already installed.

Then I tried to test the launch condition. Sure enough, I saw tha
message that i had put in dispalyed by the installer and then it
proceeded to undo the install it had started. However, it dispalyed my
message a second time while doing that. Then I went to control panel -
Add/Remove Programs to uninstall my program and when I did that i saw
my message 'Uninstall existing installation first' displayed again and
the uninstall failed with an error!  Why is my Launch condition being
checked during uninstall ? It is supposed to be checked only during
install.  Please help.

thanks,
dee
Phil Wilson - 21 Jul 2006 17:20 GMT
You don't need a launch condition to check whether your product is already
installed because that functionality is already built-in to Windows
Installer.
I'm not quite sure what you're doing. I tried a Not Installed launch
condition in a VS 2005 setup and it uninstalled fine. Since this is an
identical condition to yours in the final MSI file, it's not clear to me
what's going on. Are you changing ProductCode, UpgradeCode, Version between
old and new? Understand that "Installed" means mainly "is my ProductCode
guid already installed", so if you change that guid (as you *must* for
RemovePreviousVersions to work) "Not Installed" is a meaningless test.
Signature

Phil Wilson [MVP Windows Installer]
----

> Hi,
>
[quoted text clipped - 14 lines]
> thanks,
> dee

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.