Windows Installer Editor Reference
227
Organizing Your Installation Into Releases
5. If a runtime-specific dialog box appears, complete it and click OK.
6. Click OK on the Runtime Details dialog box.
The runtime is added to the Prerequisites page. To edit or delete it, use the right-
click menu.
7. If necessary, add a Windows Installer or .NET Framework runtime, or a prerequisite
file. See:
Adding a Windows Installer or .NET Framework Runtime
on page 222
Adding a Prerequisite File
on page 224
8. If a prerequisite file or runtime requires a restart, you might need to edit the
WiseScript to make the restart run smoothly. We recommend adding two Pause
actions for 1000 milliseconds after a prerequisite or runtime that requires a restart.
This works better than one Pause action for 2000 milliseconds. Adding the Pause
actions prevents the WiseScript from trying to start the next prerequisite or runtime
while the computer is shutting down.
9. During installation, any runtimes you selected at the top of the Prerequisites page
run first, and then the prerequisite files and runtimes run in the order that they are
listed. To rearrange the order, select an item in the lower pane and click Move Up or
Move Down at the right of the page.
For each prerequisite file and runtime that you add in the lower pane, script is added to
the WiseScript that creates the installation’s .EXE. You can edit this script to enhance
the functionality of the prerequisites.
See
Editing the WiseScript That Creates the Installation .EXE
on page 227.
Editing the WiseScript That Creates the Installation .EXE
If you select an option on the Build Options page to create an .EXE, a WiseScript project
file (.WSE) is generated, which is used to compile the .EXE. After you add prerequisite
files or runtimes to an installation on the Prerequisites page, you can edit this WiseScript
to enhance the functionality of the prerequisites.
You can also edit this WiseScript if you select Install the .MSI into an SVS layer on
the Build Options page. In this case, you might edit this WiseScript to change the .MSI
command line by changing the MSICMDLINE variable or to set the value of properties.
Warning
Make sure the .EXE options on the Build Options page are set correctly before you edit
the WiseScript. If you change the .EXE options after you edit the WiseScript, you will
lose all the changes you made to the script.
To edit the WiseScript
1. Select Installation Expert > Prerequisites page.
2. Add prerequisites as needed.
See
Adding Prerequisites to a Release
on page 221.
After you edit the WiseScript, you cannot add or edit prerequisite files and runtimes
on the Prerequisites page. You also cannot edit any of the Install the .MSI into an
SVS layer options on the Build Options page. To enable these options, click Reset
Script at the right of the page.