buildup
Posts: 13
Joined: Tue Jan 02, 2007 2:40 pm

Question about updating

Hello,
I want to update my application which stores ist Installation Information in the registry in Version-specifique entries.
So Version 15 has an entry "BUILDUP V15", Version 16 has an entry "BUILDUP V16" and so on.
Now I want to retrive the latest entry and to overwrite the existing app.

In my installer script, I do a registry search and set suitable properties like BUILDUP_15, BUILDUP_16 etc. if the entries exist.
Then I call a custom action - dependant which property is set.

When I look at the log file, I can see that the properties are correctly set. But the wrong action is executed.

MSI (c) (A0:9C) [11:14:18:758]: Doing action: AppSearch
Aktion 11:14:18: AppSearch. Installierte Anwendungsprogramme werden gesucht
Aktion gestartet um 11:14:18: AppSearch.
AppSearch: Eigenschaft: BUILDUP_18, Signatur: AppSearchSign_4
MSI (c) (A0:9C) [11:14:18:758]: Note: 1: 2262 2: Signature 3: -2147287038
MSI (c) (A0:9C) [11:14:18:758]: Note: 1: 1402 2: HKEY_CURRENT_USER32\Software\BauerSoftware\BUILDUP V18\System 3: 2
AppSearch: Eigenschaft: BUILDUP, Signatur: AppSearchSign_2
MSI (c) (A0:9C) [11:14:18:758]: Note: 1: 2262 2: Signature 3: -2147287038
MSI (c) (A0:9C) [11:14:18:758]: Note: 1: 1402 2: HKEY_CURRENT_USER32\Software\BauerSoftware\BUILDUP\System 3: 2
AppSearch: Eigenschaft: BUILDUP_16, Signatur: AppSearchSign
MSI (c) (A0:9C) [11:14:18:758]: Note: 1: 2262 2: Signature 3: -2147287038
MSI (c) (A0:9C) [11:14:18:758]: Note: 1: 1402 2: HKEY_CURRENT_USER32\Software\BauerSoftware\BUILDUP V16\System 3: 2
AppSearch: Eigenschaft: BUILDUP_15, Signatur: AppSearchSign_1
MSI (c) (A0:9C) [11:14:18:758]: Note: 1: 2262 2: Signature 3: -2147287038
MSI (c) (A0:9C) [11:14:18:774]: PROPERTY CHANGE: Adding BUILDUP_15 property. Its value is 'O:\CDROM_V19\Runimage\BUILDUP\'.
AppSearch: Eigenschaft: BUILDUP_17, Signatur: AppSearchSign_3
MSI (c) (A0:9C) [11:14:18:774]: Note: 1: 2262 2: Signature 3: -2147287038
MSI (c) (A0:9C) [11:14:18:774]: Note: 1: 1402 2: HKEY_CURRENT_USER32\Software\BauerSoftware\BUILDUP V17\System 3: 2
AppSearch: Eigenschaft: BUILDUP_19, Signatur: AppSearchSign_5
MSI (c) (A0:9C) [11:14:18:774]: Note: 1: 2262 2: Signature 3: -2147287038
MSI (c) (A0:9C) [11:14:18:774]: Note: 1: 1402 2: HKEY_CURRENT_USER32\Software\BauerSoftware\BUILDUP V19\System 3: 2
AppSearch: Eigenschaft: BUILDUP_20, Signatur: AppSearchSign_6
MSI (c) (A0:9C) [11:14:18:774]: Note: 1: 2262 2: Signature 3: -2147287038
MSI (c) (A0:9C) [11:14:18:774]: Note: 1: 1402 2: HKEY_CURRENT_USER32\Software\BauerSoftware\BUILDUP V20\System 3: 2
Aktion beendet um 11:14:18: AppSearch. Rückgabewert 1.
MSI (c) (A0:9C) [11:14:18:774]: Doing action: FindRelatedProducts
Aktion 11:14:18: FindRelatedProducts. Verwandte Anwendungen werden gesucht
Aktion gestartet um 11:14:18: FindRelatedProducts.
Aktion beendet um 11:14:18: FindRelatedProducts. Rückgabewert 1.
MSI (c) (A0:9C) [11:14:18:774]: Skipping action: AI_DOWNGRADE (condition is false)
MSI (c) (A0:9C) [11:14:18:774]: Skipping action: SetPathForBuildupV20 (condition is false)
MSI (c) (A0:9C) [11:14:18:774]: Skipping action: SetPathForBuildupV19 (condition is false)
MSI (c) (A0:9C) [11:14:18:774]: Doing action: SetPathForBuildupV18
Aktion 11:14:18: SetPathForBuildupV18.
Aktion gestartet um 11:14:18: SetPathForBuildupV18.
MSI (c) (A0:9C) [11:14:18:774]: PROPERTY CHANGE: Adding BUILDUP_LOCATION property. Its value is 'BUILDUP'.
Aktion beendet um 11:14:18: SetPathForBuildupV18. Rückgabewert 1.
MSI (c) (A0:9C) [11:14:18:774]: Skipping action: SetPathForBuildupV17 (condition is false)
MSI (c) (A0:9C) [11:14:18:774]: Skipping action: SetPathForBuildupV16 (condition is false)
MSI (c) (A0:9C) [11:14:18:774]: Skipping action: SetPathForBuildupV15 (condition is false)
MSI (c) (A0:9C) [11:14:18:774]: Skipping action: SetPathForBuildupVx (condition is false)

So BUILDUP_15 is set but SetPathForBuildupV18 is called.

Any ideas?

Thanks a lot in advance.

My Version is 11.1 build 56565.

Bye,
Jürgen Bauer
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Question about updating

Hello Jürgen,

Please keep in mind that upgrading is handled automatically by Windows Installer, you don't have to do it manually with searches. This means that if you have an old version installed on a machine and you install a newer version of the same product, the old one will be removed along with all its resources(registry, files, etc) before the new one is installed.

You can read more here: How to upgrade an older version of the package?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
buildup
Posts: 13
Joined: Tue Jan 02, 2007 2:40 pm

Re: Question about updating

Hello,

thanks for your reply.
As there can be installed several versions, I have to do manually.

Maybe you have nevertheless a solution for me ...

My condition looks like this:

To use BUILDUP_15: BUILDUP_15BUILDUP_15 AND NOT BUILDUP_16 AND NOT BUILDUP_17 AND NOT BUILDUP_18 AND NOT BUILDUP_19 AND NOT BUILDUP_20
To use BUILDUP_16: BUILDUP_16 AND NOT BUILDUP_17 AND NOT BUILDUP_18 AND NOT BUILDUP_19 AND NOT BUILDUP_20
To use BUILDUP_17: BUILDUP_17 AND NOT BUILDUP_18 AND NOT BUILDUP_19 AND NOT BUILDUP_20
To use BUILDUP_18: BUILDUP_18 AND NOT BUILDUP_19 AND NOT BUILDUP_20
To use BUILDUP_19: BUILDUP_19 AND NOT BUILDUP_20
To use BUILDUP_20: BUILDUP_20

When the registry entry "BUILDUP_18" exists, the Installation runs correctly.
When the registry entry "BUILDUP_17" or older exists, the installation sets the wrong property.

Bye,
Jürgen
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Question about updating

Hello Jürgen,

I'm not so sure why this happens. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can fully investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”