PDA

View Full Version : password dialog -prefilled from ini



NewsArchive
01-08-2008, 02:57 AM
while i can do the same with install folder, password dialog is always empty
[PASS] variable is read susscesfully from ini (i can see with msgbox) and then:
Set Variable %_SB_PASSWORD% to [PASS]

but password entry dialog is always empty. Any idea why?
many thanks

Darko
Clarion 6.3 9056

NewsArchive
01-08-2008, 02:57 AM
Hi darko,

> while i can do the same with install folder, password dialog is always
empty
> [PASS] variable is read susscesfully from ini (i can see with msgbox) and
then:
> Set Variable %_SB_PASSWORD% to [PASS]
>
> but password entry dialog is always empty. Any idea why?
> many thanks

I have no problem with this. I am using Registry to store this info, and 2
points in SB6 script (one for get values and second for put):

1
[ Initialize Setup ]
! --- Define commonly used constants ---
#include script "Common Definitions.sbi"
#include script "Get_from_registry.sbi" from "C:\sb6_project\Include"


2
[ Edit Registry ]
#include script "Put_to_registry.sbi" from "C:\sb6_project\Include"

I am also using #include script, so I use that scripts in all my setup
projects without modifications.

Inside I am using
Set Variable + Get Registry - functions
and
Registry Key - function

Gennadi

NewsArchive
01-08-2008, 02:59 AM
thanks Gennadi, no reason not to go with registry route instead ini...
Darko
Clarion 6.3 9056

NewsArchive
01-09-2008, 03:07 AM
Darko,

For security reasons, it's not possible to preset the value for the variable
that holds the password (would not really make sense <g>).

If you don't mind the question, why do you need a Password dialog if you
preset the password?

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
01-09-2008, 03:08 AM
well, for very frequently updates, why looking for password somewhere sticked
on monitor, again and again?
or, why hiding this from himself? So, first entry is blank, from then up, I
thougt it would just retreive saved password from ini.
The very same as for loooong subscripcion key, we don't want force user to
enter this repeatedly, isn't?
thanks for any suggestion

Darko
Clarion 6.3 9056

NewsArchive
01-09-2008, 03:09 AM
Well, subscription keys and serial numbers can automatically be
"pre-filled". But for passwords, it really does not make any sense. It's
not a good idea to store the password in INI files or the registry, etc. Of
course, you can build your own Password dialog (three lines of script) and
then preset it if you want.

Does this help?

Friedrich

NewsArchive
01-09-2008, 03:09 AM
Sure, but setupPROTECT will be even more of help -:)
Darko
Clarion 6.3 9056