View Full Version : Password controlled install
NewsArchive
05-09-2006, 12:33 AM
Does anyone have an SB5 example setup that uses a password?
Sim
NewsArchive
05-09-2006, 04:34 AM
Sim,
Would you like to password protect your install, or use password(s)
to "control" the installation process?
For example:
If %PASSWORD$ Equals "TopSecret1" Then
Install File yadda
Install File yadda
ElseIf %PASSWORD$ Equals "TopSecret2" Then
Install File yadda
End
--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 5
NewsArchive
05-09-2006, 06:27 AM
I need to password-protect the install.
I have the password dialog set up but if the user chooses to ignore it, the
install continues.
Not quite what I had intended.
Sim
NewsArchive
05-09-2006, 06:28 AM
Sim,
Please enter the password into the "Protect Install with Password" field
and mark the "Auto-verify Password" checkbox option (Password Dialog).
Does this help?
BTW, in SetupBuilder 5.1 we have implemented a security improvement.
Friedrich
--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 5
NewsArchive
05-09-2006, 06:28 AM
Thanks Friedrich.
Sim
NewsArchive
05-09-2006, 10:12 AM
Friedrich,
So how do you install it in this case?
If %PASSWORD$ Equals "TopSecret1" Then
Install File yadda
Install File yadda
ElseIf %PASSWORD$ Equals "TopSecret2" Then
Install File yadda
End
Andy
NewsArchive
05-09-2006, 10:12 AM
Andy,
If the installer accepts multiple-passwords, you cannot use the "Auto-verify
Password" checkbox option (Password Dialog).
In this case you have to handle password verification. For example (to
allow
three different passwords):
If %PASSWORD$ Equals "TopSecret1" Then
ElseIf %PASSWORD$ Equals "TopSecret2" Then
ElseIf %PASSWORD$ Equals "TopSecret3" Then
Else
Display Message Box "Wrong Password"
Exit Installation
End
Then later in your script (install files, registry settings, etc.):
If %PASSWORD$ Equals "TopSecret1" Then
Install File "TopSecretFile1.txt"
ElseIf %PASSWORD$ Equals "TopSecret2" Then
Install File "TopSecretFile2.txt"
ElseIf %PASSWORD$ Equals "TopSecret3" Then
Install File "TopSecretFile3.txt"
Else
Install File "EvaluationFile.txt"
End
Does this help?
Friedrich
--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910
"point. click. ship" - that's SetupBuilder 5
NewsArchive
05-11-2006, 05:00 AM
Yes - thank you very much.
Andy Morgan
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.