WiseScript Package Editor Reference
108
Using Script Editor
Variable Name
Enter _DEBUG_
Default Value
Enter NO
Description
Enter “Compile debug version of this installation?”
Value List
Enter YES on the first line and NO on the second line.
Data Entry Type
Select List of values (single-select).
Do Not Prompt for Value
Make sure this is cleared.
4. Click OK.
5. On the Compiler Variables page, mark Compiling from Within Wise.
6. Select Script Editor and add the following actions with their parameters immediately
below the script line that sets the value of MAINDIR (Set Variable MAINDIR to
Application):
Compiler Variable If
In If Variable, enter _DEBUG_.
Select Equals from the drop-down list.
In The Value, enter YES.
Display Message
In Message Title, enter Main Directory.
In Message Text enter The Main Directory is %MAINDIR%.
Compiler Variable End
The following lines should appear in your script:
Set Variable MAINDIR to Application
If Compiler Variable _DEBUG_ Equals “YES” then
Display Message “Main Directory”
Compiler Variable End
7. Click Test to test your debug version.
A message asks if you want to compile debug version.
8. Mark YES and click Next.
Because the Display Message dialog box is compiled into the installation .EXE, it appears
with the current value of MAINDIR when the installation runs. If you selected NO, the
Display Message would not be compiled into the installation .EXE.
You can add the Compiler Variable If blocks anywhere to insert Display Message script
lines to help with your debugging. You can use any type of script action inside the
Compiler Variable If block.
See also:
Содержание WISESCRIPT PACKAGE EDITOR 8.0
Страница 1: ...WiseScript Package Editor Reference ...