简体   繁体   中英

InstallShield: Handle password with special characters

I have an installer (InstallShield/ InstallScript) and during the installation process it verifies username/ password, using external simple C# application which calls Windows advapi32.dll LogonUser function. (I know that InstallShield provides its own function for verification, we had some problems with that and because of that we do this in that way).

But, when trying to handle paswords with special characters, like Abcde"12 or Abcde21" , the inverted commas disappeared and the password becomes (in both cases) Abcde12 . Surrounding it with inverted commas helped just for the second case (when the " appeared at the end). Trying to replace each instance of " with \\" didn't hepl as well.

Any idea?

Thanks.

Maybe try to escape the backslash as well and see if it works?
Meaning:

\\"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM