Hello Mihai,
ah - my fault - we are setting the upgrade code via command-line as well and in general I'm following what is described on the Updates Page. So the first aip file I send to you was more like the "template" we have sitting in a git repository and run following commands on:
- Code: Select all
$(AIP_PATH) /edit $(AIPFILE) /SetVersion $(TVER2)
$(AIP_PATH) /edit $(AIPFILE) /SetPackageName $(PACKAGE_NAME)
$(AIP_PATH) /edit $(AIPFILE) /SetProductCode -langid 1033
$(AIP_PATH) /edit $(AIPFILE) /SetProperty Product="$(SUFFIX4)"
$(AIP_PATH) /edit $(AIPFILE) /AddMsm "C:\$(PF)\Common Files\Merge modules\Microsoft_VC80_CRT_x86.msm"
$(AIP_PATH) /edit $(AIPFILE) /AddMsm "C:\$(PF)\Common Files\Merge Modules\policy_8_0_Microsoft_VC80_CRT_x86.msm"
$(AIP_PATH) /edit $(AIPFILE) /SetProperty UpgradeCode="$(UPGRADECODE)"
This way making sure that the upgrade code is always the same...
While looking over the upgrade code page again I found though that somehow the setting for the upgrade order was:
install first then uninstall old version
which I guess was causing these problems...
Further investigation showed that this option is turned on by running the "Persistent User Data" Wizard. Here I was trying to keep Registry Keys around which are shared between several versions of our product but AdvancedInstaller would remove when updating:
For example a file extension is installed into HKEY_CLASSES_ROOT for our 32-bit version. Now I install our 64-bit version which adds in Keys to the file extension's Registry entry. When next running an update on the 32-bit version, the first occurring uninstall would remove the file extension from the registry completely and readd it but loosing the entries for the 64-bit version. Not sure how to handle this now...
cheers
Markus