Specifying the same include script twice in one .wse can cause an infinite loop. There are two cases when this occurs:
Case 1: The include scripts are referenced using relative paths
Create an include script name include.wse that displays the variable TEST.
Create a new .wse that contains the following code: Set Variable TEST to 1 Include Script include.wse (make sure to only specify the name, not the complete path) Set Variable TEST to %TEST% (Select increment from the Operation drop-down list) Include Script include.wse (again, only specify the name of the .wse)
Save the .wse in the same directory as include.wse.
Compile and run the .exe.
It is expected that only two messages will display. The first displaying "1" and the second displaying "2". Instead, you end up in an infinite loop where TEST is continuously incremented and displayed.
Case 2: An include script is called multiple times from another include script
Create an include script name include.wse that includes include2.wse.
Create an include script named include2.wse that contains the following code: Set Variable TEST to 1 Include Script <path to include.wse> Set Variable TEST to %TEST% (Select increment from the Operation drop-down list) Include Script <path to include.wse>
Create a new .wse that contains the code: Include Script <path to include2.wse>
This issue has been fixed in Wise Installation Studio/Express 7.0 SP1 and Wise Package Studio 7.0 SP3.
Case 1: If you do not have nested include scripts, this only appears to happen if you specify the include scripts as relative paths. Change the line
'Include Script include.wse'
'Include Script <full path to include.wse>'
Case 2: If you have nested include scripts, you will need to make a copy of the include script.
Applies To Wise Package Studio 7.0, Wise Package Studio 7.0 SP1 Wise Package Studio 7.0 SP2 Wise Installation Studio 7.0
Logged in Littlebuggy (Altiris - Lindon, Plymouth) database
Imported Document Id
This is machine translated content
Login to Subscribe
Please login to set up your subscription.
Didn't find the article you were looking for? Try these resources.