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
- :
- Re: Dialogs and properties
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
Nov 24, 2008
04:58 PM
Dialogs and properties
I do Basic MSI project.
I need to prompt a user for new password. So, I created a new dialog with two textboxes, and assosiated each of them with new property Password1 and Password2. I have also added another properties PASSWORD_VERIFIED and NEW_PASSWORD.
Then I created new Custom Action of type InstallScript, immediate execution, where I gonna verify Password1 is equal to Password2 and set PASSWORD_VERIFIED to 1 and NEW_PASSWORD to new password, and accociated this action with Next button on my dialog.
Does it make sense so far?
Now, If I attempt to access any of my 4 properties from the install script I get undefined identifier.
What am I doing wrong? Am I on the right track at all? Any suggestions?
Thanks a lot!
I need to prompt a user for new password. So, I created a new dialog with two textboxes, and assosiated each of them with new property Password1 and Password2. I have also added another properties PASSWORD_VERIFIED and NEW_PASSWORD.
Then I created new Custom Action of type InstallScript, immediate execution, where I gonna verify Password1 is equal to Password2 and set PASSWORD_VERIFIED to 1 and NEW_PASSWORD to new password, and accociated this action with Next button on my dialog.
Does it make sense so far?
Now, If I attempt to access any of my 4 properties from the install script I get undefined identifier.
What am I doing wrong? Am I on the right track at all? Any suggestions?
Thanks a lot!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 24, 2008
05:05 PM
MSI properties aren't the same as InstallScript variables; if you want to get a property's value from InstallScript (or from C), you'll need to use MsiGetProperty. The help and these forums have examples.