kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

Registry Entry and updates

When I let Advanced installer set the version key and value upon my Version 1.0.0 install, then run my Version 1.0.1 MSI to update the original version it does not overwrite the 1.0.0 (productversion) registry value, it simply writes an additional REG_SZ value 1.0.1 right below the original. Is there a reason my MSI will not overwrite that value. I do have the "Replace Existing Value" set in the Registry section.

Hopefully I am missing something simple.

Thanks,
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I don't fully understand what you are doing. Does the new registry key have a different name than the original one? Also what settings do you have in the "Upgrades" page?

Note that in the "Upgrades" page, under "Application Versions", you must select "Automatically upgrade older product versions" in order to remove the older version before installing the new one.

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

Overall Explaination:

I have v1.0.0 (exe) installation of my app
I developed v1.0.1 (msi) to upgrade a series of files
The updates page of v1.0.0 does state to automatically update older versions

The registry key I have in the v1.0.0 exe file is:
HKLM/Software/Myapp/Myapp/Version and the REG_SZ that is has a name of [ProductVersion] with a value of [ProductVersion]

The registry key I have in the v1.0.1 msi is:
HKLM/Software/Myapp/Myapp/Version and the REG_SZ that is set also has a name of [ProductVersion] with a data value of [ProductVersion]

Is the Registry value's name supposed to be the same for both v1.0.0 and v1.0.1, then just the data value changes from 1.0.0 to 1.0.1???

Sorry if this is elementary, I am confused over this one.

Kevin-
kreskins
Posts: 25
Joined: Tue Feb 06, 2007 11:57 pm
Location: Dearborn, MI

I am sorry...Like an idiot, I was using [ProductVersion] as the registry value's Name and value. Therefore it was creating a new one each time. I now gave the Registry value a static name and just update the data value with the [ProductVersion].
Sorry for the trouble

Kevin-

Return to “Common Problems”