PDA

View Full Version : Trying to be advanced...



NewsArchive
01-30-2008, 01:53 AM
I have some components, which i want to password protect individually.
I have made my own Wizard loop to initialise the passwords as shown below -
The full script is much bigger, but i have taken the lines 39-74 into an
example.
When i tried with one checkbox it did exactly what i wanted - Show/not show
the password dialog.
Then I began with CTRL C CTRL V, and suddemly I could not get it to work -
All af the Paswords dialogs are bypassed.
Why?

Edvard Korsbęk

SetupBuilder 6.7 Script - Stamkorttest.sb6
24 [ Initialize Setup ]
25 ! --- Define commonly used constants ---
26 #include script "Common Definitions.sbi"
27
28 ! Important: Initialize default install folder and program group
variables
29 Set Variable %_SB_INSTALLDIR% to "[INSTALLDIR]"
30 Set Variable %_SB_PROGRAMGROUP% to "[PRODUCTNAME]"
31
32 ! %_SB_BACKUPDIR% holds the path that all backup files will be copied to
when overwritten
33 Set Variable %_SB_BACKUPDIR% to "%_SB_INSTALLDIR%\BACKUP"
34
35
36 [ Features ]
37 ! If features are enabled, %_SB_FEATURESID% holds all selections
separated by a vertical bar "|"
38 ! Warning: It is not recommended to manually modify the %_SB_FEATURESID%
variable!
39 Set Variable %INDGANGTAST% to "''"
40 Set Variable %INDGANGMAG% to "''"
41 Set Variable %BILLEDMODUL% to "''"
42 Set Variable %KOMMUNIKATION% to "''"
43 Set Variable %BETALING% to "''"
44 Set Variable %ADMINISTRATION% to "''"
45 Set Variable %CHECKBOXVALUE% to "000000"
46 ! The Wizard Loop displays the dialog screens that the user sees in the
installation
47 Define Wizard Dialog "#1" (Welcome)
48 Define Wizard Dialog "#2" (Check Boxes) (%CHECKBOXVALUE%)
49 Define Wizard Dialog "#3" (Password)
50 Define Wizard Dialog "#4" (Password)
51 Define Wizard Dialog "#5" (Password)
52 Define Wizard Dialog "#6" (Password)
53 Define Wizard Dialog "#7" (Password)
54 Define Wizard Dialog "#8" (Password)
55 Loop Wizard (Abort Dialog Active)
56 If %CHECKBOXVALUE% Not Equals "1" on Position "1" Then
57 Hide Wizard Dialog "#3"
58 End
59 If %CHECKBOXVALUE% Not Equals "1" on Position "2" Then
60 Hide Wizard Dialog "#4"
61 End
62 If %CHECKBOXVALUE% Not Equals "1" on Position "3" Then
63 Hide Wizard Dialog "#5"
64 End
65 If %CHECKBOXVALUE% Not Equals "1" on Position "4" Then
66 Hide Wizard Dialog "#6"
67 End
68 If %CHECKBOXVALUE% Not Equals "1" on Position "5" Then
69 Hide Wizard Dialog "#7"
70 End
71 If %CHECKBOXVALUE% Not Equals "1" on Position "6" Then
72 Hide Wizard Dialog "#8"
73 End
74 End
75
76
77 [ Setup Types ]
78 ! If setup types are enabled, %_SB_SETUPTYPEID% holds the selected type
79 ! Warning: It is not recommended to manually modify the %_SB_SETUPTYPEID%
variable!
80
81 ::Define Setup Type "Typical"
82 ::Define Setup Type "Minimal"
83 ::Define Setup Type "Custom"
84
85 [ User Interface ]
86 ! Wizard dialog definition(s)
87 Define Wizard Dialog "#1" (Welcome)
88 Define Wizard Dialog "#2" (Select Install Folder) (%_SB_INSTALLDIR%)
89 Define Wizard Dialog "#3" (Ready to Install)
90
91 ! The Wizard Loop displays the dialog screens that the user sees in the
installation
92 Loop Wizard (Abort Dialog Active)
93 End
94
95 ! Display progress dialog
96 Display Setup Progress Dialog
97
98 ! Create installation .log
99 Create Installation Log "[UNINSTALL_LOG]"
100
101 [ Create Folders ]
102
103
104 [ Install Files ]
105
106
107 [ Create Shortcuts ]
108
109
110 [ Edit Registry ]
111
Page 2
SetupBuilder 6.7 Script - Stamkorttest.sb6
112
113 [ Edit INI Files ]
114
115
116 [ Modify System ]
117
118
119 [ Execute Programs ]
120
121
122 [ Finalize Setup ]
123 ! Register all queued pending file operations
124 Register all pending file operations
125
126 ! Register all queued Clarion Template files
127 Register all pending Clarion Templates
128
129 [ Final User Interface ]
130 ! Final wizard dialog definition(s)
131 Define Wizard Dialog "#1" (Finish)
132
133 ! The Wizard Loop displays the dialog screens that the user sees in the
installation
134 Loop Wizard (Abort Dialog Active)
135 End
Page 3

NewsArchive
01-30-2008, 01:54 AM
Could you please send your script (.sb6) to support at lindersoft dot com
and we'll check this.

Thanks,
Friedrich