Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Property value in MSI Script

Updated: 21 May 2010 | 1 comment
olivier_sophia's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

I would like to use a property to know when i'm replacing a version (same Upgrade Code).

When a Version Vn is installed, if i want to update it to Vn1 i have to execute the msi from the Vn1. We added a new dialogs "Remove Dialog" to avoid the user to choose or not to replace the version. In this screen we added a event to set a property (a property named Replace initialized in table to "0") when i choose to replace the version.

At least we are in the "User interface" mode. My property "Replace" is now set to "1" when i choose to update the version. The replace process is on going and after somes scripts we are now in "Execute immediate" mode. The issue is in the "Execute immediate" mode my property is not set to "1" but she keeps the default value from property table. At the end of "execute immediate" mode when you come back in "user interface" the property "Replace" is set to "1" ...

So i can't use this property to execute or not a script in the "execute immediate" mode ... 

Do you have a solution to fix it ? how it's possible to have a property with the same value in all MSI Script mode ?

Thanks

Discussion Filed Under:

Comments

AngelD's picture
29
Jan
2010
0 Votes 0
Login to vote

In the Vn (Not Vn1 version)

In the Vn (Not Vn1 version) package you can use the UPGRADINGPRODUCTCODE property to find out the package (with the PRODUCTCODE) that performs the upgrade for this "old" package.