# ---- Windows Installer XML (WiX) configuration ---
# --- general --------------------------------------
# $P  - project name
# $Pp - path to project directory
# $Pn - project name
# --- compile --------------------------------------
# $I  - input full name
# $Ip - input path
# $In - input name
# $Ie - input extension
# $O  - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R  - release/debug setting for compiler
# --- build ----------------------------------------
# $T  - target full name
# $Tp - target path
# $Tn - target name
# $O  - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R  - release/debug setting for linker

[Settings]

Target = 
Category&01 = DEFAULT TEST CONFIGURATION
Working Directory =.
Command Line Arguments =
Category&02 = COMPILER OPTIONS
Warning Level = 0|1|2|3
Verbose Output = 0|1|2|3
Warnings As Errors = no|yes
Suppress Schema Validation = no|yes
Include Search Path = 
Compiler Options = 
Preprocessor =
Category&03 = LINKER OPTIONS
XML Output = no|yes
Suppress Admin = no|yes
Suppress Adv = no|yes
Suppress Files = no|yes
Suppress Layout = no|yes
Suppress Default UI = no|yes
Libraries = 
Excluded Files = Excludes

Category&04 = DECOMPILER OPTIONS
Decompiler Options = 

[SettingsInfo]
Target = Provides a space for you to specify an output file and location of the program that the linker creates.
Working Directory = Provides a space for you to specify the directory in which executing occurs. If you do not specify a directory, executing occurs in the directory where the executable is located.
Command Line Arguments = Provides a space for you to specify command-line arguments you want to pass to the program at startup.
Libraries = Provides a space for you to specify an object file or standard library (either static or import) to pass to the linker. Separate file names with a space.
Excluded Files = This will exclude the file(s) included in this UE project group from the build.
Compiler Options = Provides a space for you to specify an additional compiler options.
Linker Options = Provides a space for you to specify an additional linker options.
Warning Level = Set the warning level. 0: show all, 3: show none.
Verbose Output = Sets the level of verbose output. 0: most output, 3: none.
Warnings As Errors = Treat warnings as errors.
Suppress Schema Validation = Suppress schema validation of documents - performance boost.
Include Search Path = Add to include search path.
Preprocessor = -d<name>=<value>  define a parameter for the preprocessor.
XML Output = Output xml instead of MSI format.
Suppress Admin = Suppress default admin sequence actions.
Suppress Adv = Suppress default adv sequence actions.
Suppress Files = Suppress files: do not get hash, version, ... info for files.
Suppress Layout = Suppress layout.
Suppress Default UI = Suppress default UI sequence actions.

[SettingsReps]

Warning Level = @-w%s
Verbose Output = @-v%s
Warnings As Errors = no=|yes=-ws
Suppress Schema Validation = no=|yes=-ss
Include Search Path = @-I%s
XML Output = no=|yes=-xp
Suppress Admin = no=|yes=-sadmin
Suppress Adv = no=|yes=-sadv
Suppress Files = no=|yes=-sf
Suppress Layout = no=|yes=-sl
Suppress Default UI = no=|yes=-sui

[Variables]

CPATH =C:\WiX
COPT = -nologo $(Compiler Options) $(Preprocessor) $(Verbose Output) $(Warning Level) $(Warnings As Errors) $(Suppress Schema Validation)
LOPT = -nologo $(XML Output) $(Suppress Admin) $(Suppress Adv) $(Suppress Files) $(Suppress Layout) $(Suppress Schema Validation) $(Suppress Default UI) $(Warning Level) $(Warnings As Errors)
DOPT = $(Decompiler Options)

[Environment]

PATH = $(CPATH);%PATH%

[General]

TargetExt = .msi
ReleaseOut = Release
DebugOut = Debug
UseFullPaths = 0
UseDosNames = 0
Excludes = $(Excluded Files)

[MakeCommands]

run = Run Installation
test = Test Installation
makef = Show Makefile
decompile = Decompile Installation

[Run Installation]

Title = Run $T
Cmd0 = $(Command Line Arguments)
Depends = $T
ShowWindow = 1
DisplayConsole = 0

[Decompile Installation]

Title = Decompile $T
Cmd0 = dark $(DOPT) $T
Depends = $T
ShowWindow = 1
DisplayConsole = 1

[Test Installation]

Title = Test $T
Cmd0 = msiexec /i $T
Depends = $T
ShowWindow = 1
DisplayConsole = 0

[Show Makefile]

Title=Show makefile
Cmd0=uestudio $(UESMAKEFILE)
ShowWindow=1
DisplayConsole=0

[InsertFiles]

group0 = $(Libraries)

[FileGroups]

FGO = .wixobj;
FGL = .wixlib;

[GroupFormats]

FGO = %s
FGL = %s

[Build]

Out = $T
Depends = $FGO
DebugFlag = -notidy
Cmd0 = light $(LOPT) $R -out $T $FGO $FGL

[.WXS]

Out = $In.wixobj
Cmd0 = candle $(COPT) $R -out $O $I
