This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Deferred Custom Action execution condition evaluated twice
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 03, 2012
05:58 AM
Deferred Custom Action execution condition evaluated twice
HI,
I've encountered lately some very strange behavior on an Install Shield basic msi project.
Shortly I want rename a file and to modify its content after copied locally but only when cetain condition is met.
To do this I've wrote a 2 deferred VB custom actions and set the condition.
The problem is that it seems the condition is evaluated twice and I don't know why.
Let's say the condition is "IS_MAJOR_UPGRADE".
The scripts should ran only when the condition is false.
Presuming the installation is a Major Upgrade, looking in the log I found that at first the "IS_MAJOR_UPGRADE" property is set to "yes".
Looking at my CA's they are marked to not be run do to condition "true" at the first evaluation step. But later the "IS_MAJOR_UPGRADE" property is evaluated again and it has no value this time so the condition is evaluated as "false" and my CA's are executed.
Can someone expalin to me why is "IS_MAJOR_UPGRADE" property evaluated twice? And why, in case of deferred action, the execution condition evaluation is done twice?
I've encountered lately some very strange behavior on an Install Shield basic msi project.
Shortly I want rename a file and to modify its content after copied locally but only when cetain condition is met.
To do this I've wrote a 2 deferred VB custom actions and set the condition.
The problem is that it seems the condition is evaluated twice and I don't know why.
Let's say the condition is "IS_MAJOR_UPGRADE".
The scripts should ran only when the condition is false.
Presuming the installation is a Major Upgrade, looking in the log I found that at first the "IS_MAJOR_UPGRADE" property is set to "yes".
Looking at my CA's they are marked to not be run do to condition "true" at the first evaluation step. But later the "IS_MAJOR_UPGRADE" property is evaluated again and it has no value this time so the condition is evaluated as "false" and my CA's are executed.
Can someone expalin to me why is "IS_MAJOR_UPGRADE" property evaluated twice? And why, in case of deferred action, the execution condition evaluation is done twice?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 21, 2012
09:58 AM
As far as I know property is evaluated twice because first time it’s in the UI Sequence and second time is in the Execute Sequence.
Try to add your property to the SecureCustomProperties list.
Try to add your property to the SecureCustomProperties list.