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