User Guide

211
About Command Lines
WFWI.EXE Command Line Option Example
The following example shows how to compile an installation from the command line.
WFWI.EXE C:\Installers\MyApp.wsi /c /s /p CURRENT_FILES="E:\Test Development" /o C:\MyAppInstaller.msi
The preceding command line does this:
! Invokes the executable.
! Specifies the .WSI to compile (C:\Installers\MyApp.wsi).
! Sets it to compile (/c).
! Sets all error messages to be suppressed (/s).
! Sets the property CURRENT_FILES (/p CURRENT_FILES="E:\Test Development").
! Sets the output location (/o C:\MyAppInstaller.msi).
If you set multiple properties, separate property value pairs with spaces. Enclose values
with double quotes.
Automating the Build Process
You can use WFWI.exe command line options in conjunction with other processes to
create an automated build process.
Enter the following command line statement into a batch file or any other program that
has the ability to run command line statements, such as Scheduled Tasks in the Control
Panel:
WFWI.EXE "C:\Development\Sample.wsi" /c /o "C:\Sample.msi" /s
where:
! WfWI.exe is the path to the Wise executable
! "C:\Development\Sample.wsi" is the path to the project file you want to compile
! "C:\Sample.msi" is the pathname where the output file will be compiled
/p name=value Set property values. The property name and value must
immediately follow the /p. You can use as many property
name and value switches as you like in a command line. Do
not enter any spaces in the name=value construction, unless
they are enclosed in double quotes.
/o path Specifies the compiled output file. You cannot specify a
relative path; specify an absolute path. The path must
immediately follow the /o.
/F Has the same effect as clearing the Don’t update or
recompress files when saving checkbox on the Product
Details Page on page 100.
/s Causes the compile to be silent. If you don’t include this, error
or informational dialogs might appear that require user
intervention. (Not available in the Visual Studio integrated
editor.)
/l log file name The /l followed by a log file name makes an additional compile
log file, in addition to compile.log, which is created
automatically.