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: Resetting the password field
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
Feb 01, 2017
06:47 AM
Resetting the password field
Hello,
This seems like a simple one, but i cant find a way to fix this.
When a wrong password is entered, a warning message is shown, on clicking OK, it goes back to the password still has two characters left, and its not cleared or blank.
Which ideally it should be blank.
On removing setting the PASSWORD property to false, i see that the two characters are "" two quotes.
This value is defined for the "Next" button click. If i remove it and make it blank, it gives an error "1627: Error while trying to replace the record".
Don't know how else to set it to null. Or if the InstallSctript has to be changed?
Can anyone help?
Thanks,
Amar
This seems like a simple one, but i cant find a way to fix this.
When a wrong password is entered, a warning message is shown, on clicking OK, it goes back to the password still has two characters left, and its not cleared or blank.
Which ideally it should be blank.
On removing setting the PASSWORD property to false, i see that the two characters are "" two quotes.
This value is defined for the "Next" button click. If i remove it and make it blank, it gives an error "1627: Error while trying to replace the record".
Don't know how else to set it to null. Or if the InstallSctript has to be changed?
Can anyone help?
Thanks,
Amar
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 01, 2017
10:17 AM
In your script - can you try setting the PASSWORD property to "" (blank) instead of to false?
MsiSetProperty(hMSI, "PASSWORD", "");
In MSI the "" is often used to clear a PROPERTY value of any existing value.
Just a thought, I've used it with normal text control so I assume it would work for the Password control as well.
Chad
MsiSetProperty(hMSI, "PASSWORD", "");
In MSI the "" is often used to clear a PROPERTY value of any existing value.
Just a thought, I've used it with normal text control so I assume it would work for the Password control as well.
Chad
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 01, 2017
10:37 AM
That example line was assuming Basic MSI - if you are using a different project type then you might need to use different syntax, but the "" instead of false should still work I would think.
Chad
Chad
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 01, 2017
10:44 PM
chad.petersen wrote:
In your script - can you try setting the PASSWORD property to "" (blank) instead of to false?
MsiSetProperty(hMSI, "PASSWORD", "");
In MSI the "" is often used to clear a PROPERTY value of any existing value.
Just a thought, I've used it with normal text control so I assume it would work for the Password control as well.
Chad
Thank you for the response. Yes its a Basic MSI Project. And my script is already using the "" to set the password blank as you have mentioned, but it does not help.
-Amar
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 16, 2019
08:14 AM
aupadhayay, do you have a solution/update for this issue?