Windows Installer Editor Reference
257
Advanced Installations
To install Web settings from a file
This procedure is performed by end users. If you will let your end users use this feature,
you must provide them with this information.
1. Run the installation with the following command line:
msiexec.exe /i "PathToMsi.msi" WISE_CONFIG_OUTPUT_PATH="PathToWebSettingsFile.xml"
where PathToMsi.msi is the full path to the installation and
PathToWebSettingsFile.xml is the full path to where the XML should be created.
The default Web site settings are written to the XML file that is specified in the
command line. The installation itself is not performed and a Setup Canceled dialog
box appears.
2. Edit the XML file to set the desired options and then save the changes.
Follow the guidelines at the beginning of the XML file. Only edit settings that are
commented.
3. On the destination computer, run the installation with the following command line:
msiexec.exe /i "PathToMsi.msi" WISE_CONFIG_INPUT_PATH="PathToWebSettingsFile.xml"
where PathToMsi.msi is the full path to the installation and
PathToWebSettingsFile.xml is the full path to the edited XML file.
The installation uses information in the XML file to configure the Web settings. Web
dialog boxes do not appear during installation.
Configuring a Microsoft SQL Server During
Installation
Use the SQL Server Scripts page to create or configure Microsoft SQL Server databases.
You might use this page if the application you are installing is a database application and
depends on certain database content and configuration. This page eliminates the need
to require end users to configure databases manually.
On this page, you specify a connection string and SQL statements, which are executed
during installation. Therefore, you have the ability to do any configuration that is
possible with SQL statements.
You can generate SQL statements in the following ways:
z
Type or paste SQL statements.
z
Import SQL statements from a file.
z
Specify a database to recreate, and the necessary SQL statements are generated
automatically.
To configure an installation to run a SQL script
1. Select Installation Expert > SQL Server Scripts page.
See
Tips for Using the SQL Server Scripts Page
on page 258.
2. From Current Feature, select a feature or condition. (Because any item you add
must be assigned to a specific feature, you cannot add an item when All Features
is selected.)