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
- :
- Yeah, that was the problem
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
‎Jan 22, 2009
05:32 AM
Radio Buttons Group's Property doesn't take a new value on time
I have this problem:
On uninstallation, I need the user to choose between two options, and accordingly, one of two Custom Actions will execute during this process.
So I created a dialog that has a Radio Button Group with the two options to choose from. The choice is saved in a Property (1 or 2). The condition of each Custom Action ANDs with the relevant Property value.
After that, during the uninstallation process, I saw that the initial value of that Property always determine which Custom Action will execute. I thought that this Property never takes a new value. But that's not the case.
I looked at the log, and I saw that just before the end of the file the Property has the value that the user has chosen, much after the uninstallation process ended and a decision of which Custom Action should ececute has made.
Any ideas about what to do?
On uninstallation, I need the user to choose between two options, and accordingly, one of two Custom Actions will execute during this process.
So I created a dialog that has a Radio Button Group with the two options to choose from. The choice is saved in a Property (1 or 2). The condition of each Custom Action ANDs with the relevant Property value.
After that, during the uninstallation process, I saw that the initial value of that Property always determine which Custom Action will execute. I thought that this Property never takes a new value. But that's not the case.
I looked at the log, and I saw that just before the end of the file the Property has the value that the user has chosen, much after the uninstallation process ended and a decision of which Custom Action should ececute has made.
Any ideas about what to do?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 22, 2009
09:45 AM
You'll want to make sure it's a public property (with an all-caps name: RADIOPROP and not RadioProp, for example) if the action is in the Execute sequence. What is your radio button group property?
(You'll also want to ensure the property is listed in SecureCustomProperties, but InstallShield should do that for you.)
(You'll also want to ensure the property is listed in SecureCustomProperties, but InstallShield should do that for you.)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 25, 2009
11:14 AM
I tries using a Public Property, and that solved the problem.
I looked like the Private Properties are initialized twice - once for UI sequence and one for Execute sequence. I can't imagine why Windows Installer does that.
Thanks
I looked like the Private Properties are initialized twice - once for UI sequence and one for Execute sequence. I can't imagine why Windows Installer does that.
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 25, 2009
11:24 AM
Right, the UI sequence and Execute sequence are separate processes; private properties are indeed initialized twice, while public properties are passed as command-line arguments from one sequence to the other.