How to Import a Wise Script Into the Package

This article describes how to compile and import a Wise script to the Windows Installer package using PACE Suite - MSI Editor.

a)    Wise script (.WSE)
b)    Symantec Wise Package Studio or Flexera WiseScript Package Editor
c)    PACE Suite
d)    Windows Installer package

In case if you have already compiled the script, prerequisites "a)" and "b)" are not needed and corresponding instruction steps "1)" – "3)" could be skipped.


Step-by-step instruction:

  1. Launch WiseScript Editor, which can be found at one of the following locations:
    a.   "Program Files Folder\Symantec\Wise Package Studio\WiseScript Editor\Wise32.exe"
    b.   "Program Files Folder\WiseScript Package Editor\WiseScript Package Editor\Wise32.exe"
  2. Open your Wise script file (.WSE), selecting Open… from the File menu.
  3. Once the script is opened, compile it into EXE, selecting Compile from the File menu. Find the compiled EXE at the same location with the opened Wise script.
  4. Launch MSI Editor.
  5. Select Open… from MENU.
  6. Choose an MSI package, to which you want to import the compiled Wise script, and click Open.
  7. Switch to the Custom Actions tab and select Add -> Custom action to create a new custom action that will run your compiled script.
  8. Select the Launch an EXE type and click Next >.
  9. Click New binary.
  10. Click on the Upload button, located at the end of the 'Data' field.
  11. Choose the compiled Wise script (.EXE) and click Open.
  12. Enter a name for the new binary item, which will contain the selected script, and click Ok.
  13. Enter the "/s" value to the "Command line" field for executing script in the silent mode and click Next >.
  14. Select the "Deferred" from the Execution mode field for launching the compiled script in the deferred block. Tick the Run in system context option to execute the script in the system context. Choose the A synchronous execution that ignores exit code and continues option from the Return processing option field for launching the script synchronously with the installation. In this case, it ignores exit code and continues anyway. After that, click Next >.
  15. Select Run after InstallInitialize from the Execution sequence (recommended) field and NOT Installed from the drop-down list of the Execution sequence condition field to run the script only one time during installing the package after the InstallInitialize action. Click Finish to add Custom action to the MSI package.
  16. Once the new Custom Action is added, save your package selecting Save… from MENU.Screenshot_11.jpg


Article is closed for comments.
Powered by Zendesk