I would like someone to confirm if my way of thinking is right. I want to modify installer that will upgrade existing installation. By upgrading here I mean minor upgrade, because all I want is to copy a set of dll files and run custom sql scripts. I also want to change product version, but nod code. All I'm changing in existing .wxs is adding 'Upgrade' tag with 2 'UpgradeVersion' nodes, like this: <Upgrade Id="$(var.UpgradeId)"> <UpgradeVersion Minimum='$(var.ProductVersion)' OnlyDetect='yes' IncludeMinimum='no' Property='NEWERFOUND'/> <UpgradeVersion Minimum='1.0.0' OnlyDetect='yes' Maximum='$(var.ProductVersion)' Property='OLDERVERSIONBEINGUPGRADED' IncludeMinimum='yes' IncludeMaximum='no' /> </Upgrade>
I defined 2 custom actions, like this: <CustomAction Id='NoDowngrade' Error='A later version of [ProductName] is already installed.' /> <CustomAction Id='ShowUpdateInfo' Error='[ProductName] update is going to happen.' /> I use them in my 'InstallUISequence' node, like this: <Custom Action='NoDowngrade' After='FindRelatedProducts'>NEWERFOUND</Custom> <Custom Action='ShowUpdateInfo' After='FindRelatedProducts'>OLDERVERSIONBEINGUPGRADED</Custom> After I compile wxs into .msi, I'm also creating setup.exe , by running : msistuff setup.exe /d WixSetup.msi /n "Product Name" /o INSTALLUPD /v 200 /w InstMsiW.exe /p REINSTALL=ALL REINSTALLMODE=amus Now, I have installed one version of the software (by using this setup.exe). Next I'm changing product version and I'm trying to run an upgrade by running setup.exe. I suppose, I should get an error saying '[ProductName] update is going to happen'. But I get information that I should uninstall the product first. If I change REINSTALLMODE to vamus, it goes on, but I just don't get the mentioned error, like it doesn't discover which version I have installed. What am I doing wrong? First - I don't want to use vamus (v sucks). Second - why it doesn't discover current version? -- View this message in context: http://n2.nabble.com/Minor-upgrade-problem-tp723841p723841.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users