Wix Module
Contains tasks to create msi installers using the WiX toolset
Types
Type | Description |
Functions and values
Function or value | Description |
Full Usage:
Wix.Candle parameters wixScript
Parameters:
Params
-
Function used to override parameters for candle tool
wixScript : string
-
The Wix setup script path
Returns: string
|
|
Full Usage:
Wix.HarvestDirectory setParams directory outputFile
Parameters:
HeatParams -> HeatParams
-
Function used to manipulate the Heat default parameters.
directory : string
-
The path to the directory that will be harvested by Heat.
outputFile : string
-
The output file path given to Heat.
|
|
Full Usage:
Wix.Light parameters outputFile wixObj
Parameters:
Params
-
Function used to override parameters for light tool
outputFile : string
-
The output file path
wixObj : string
|
|
|
Example
|
Full Usage:
Wix.attachServiceControlToComponent comp fileFilter serviceControls
Parameters:
DirectoryComponent
-
The directory component instance
fileFilter : Component -> bool
-
The file filter
serviceControls : seq<ServiceControl>
-
The service controls instance
Returns: DirectoryComponent
|
|
Full Usage:
Wix.attachServiceControlToComponents components fileFilter serviceControls
Parameters:
seq<DirectoryComponent>
fileFilter : Component -> bool
serviceControls : seq<ServiceControl>
Returns: seq<DirectoryComponent>
|
|
Full Usage:
Wix.attachServiceInstallToComponent comp fileFilter serviceInstalls
Parameters:
DirectoryComponent
-
The directory component instance
fileFilter : Component -> bool
-
The file filter
serviceInstalls : seq<ServiceInstall>
-
The service installs instance to attach
Returns: DirectoryComponent
|
|
Full Usage:
Wix.attachServiceInstallToComponents components fileFilter serviceInstalls
Parameters:
seq<DirectoryComponent>
fileFilter : Component -> bool
serviceInstalls : seq<ServiceInstall>
Returns: seq<DirectoryComponent>
|
|
Full Usage:
Wix.bulkComponentCreation fileFilter directoryInfo architecture
Parameters:
FileInfo -> bool
-
The files to filter
directoryInfo : DirectoryInfo
architecture : Architecture
-
The platform architecture
Returns: seq<DirectoryComponent>
|
Creates WiX component with directories and files from the given DirectoryInfo The function will create one component for each file best practice and set the GUID to "*", which will make WiX produce consistent Component Guids if the Component's target path doesn't change. This is vital for major upgrades, since windows installer needs a consistent component guid for tracking each of them. You can use the getComponentIdsFromWiXString function for getting all created component refs and adding them to features.
|
Full Usage:
Wix.bulkComponentCreationAsSubDir fileFilter directoryInfo architecture
Parameters:
FileInfo -> bool
-
The files to filter
directoryInfo : DirectoryInfo
-
The directory information
architecture : Architecture
-
The platform architecture
Returns: Dir
|
Creates WiX component with directories and files from the given DirectoryInfo The function will create one component for each file best practice and set the GUID to "*", which will make WiX produce consistent Component Guids if the Component's target path doesn't change. This is vital for major upgrades, since windows installer needs a consistent component guid for tracking each of them. The components are embedded into the passed in root directory.
|
Full Usage:
Wix.bulkComponentTreeCreation fileFilter directoryFilter directoryInfo architecture
Parameters:
FileInfo -> bool
-
The files to filter
directoryFilter : DirectoryInfo -> bool
-
The directories to filter
directoryInfo : DirectoryInfo
-
The directory information
architecture : Architecture
-
The platform architecture
Returns: seq<DirectoryComponent>
|
Creates a WiX directory and component hierarchy from the given DirectoryInfo The function will create one component for each file best practice and set the GUID to "*", which will make WiX produce consistent Component Guids if the Component's target path doesn't change. This is vital for major upgrades, since windows installer needs a consistent component guid for tracking each of them. You can use the getComponentRefs function for getting all created component refs and adding them to features. You can use attachServiceControlToComponents or attachServiceInstallToComponents to attach ServiceControl or ServiceInstall to the directory component hierarchy
|
|
Example
|
Full Usage:
Wix.generateComponentRef setParams
Parameters:
ComponentRef -> ComponentRef
-
Function to override the default component ref parameters
Returns: ComponentRef option
|
|
Full Usage:
Wix.generateCustomAction setParams
Parameters:
CustomAction -> CustomAction
-
Function used to manipulate the WiX default parameters.
Returns: CustomAction
|
Generates a customAction based on the given parameters, use toString on it when embedding it Be careful to make Id unique. FileKey is a reference to a file Id which you added by using getWixDirTag or getWixFileTag Set impersonate to no if your action needs elevated privileges, you should then also set execute as "deferred" ExeCommand are the parameters passed to your executable
Example
|
Full Usage:
Wix.generateCustomActionExecution setParams
Parameters:
CustomActionExecution -> CustomActionExecution
-
Function used to manipulate the WiX default parameters.
Returns: CustomActionExecution
|
Generates a custom action execution based on the given parameters, use toString on it when embedding it Condition in sample makes execute only on install
Example
|
|
Generates a feature based on the given parameters, use toString on it when embedding it You can pass other features into InnerContent for making a hierarchy
Example
|
Full Usage:
Wix.generateMajorUpgradeVersion setParams
Parameters:
MajorUpgrade -> MajorUpgrade
-
Function used to manipulate the WiX default parameters.
Returns: MajorUpgrade
|
Example
|
Full Usage:
Wix.generateRegistryKey setParams
Parameters:
RegistryKey -> RegistryKey
-
Function used to manipulate the WiX default parameters.
Returns: RegistryKey
|
Generates a registry key based on the given parameters, use toString on it when embedding it You can pass other registry keys and values into RegistryKeys or RegistryValues for making a hierarchy
Example
|
Full Usage:
Wix.generateRegistryValue setParams
Parameters:
RegistryValue -> RegistryValue
-
Function used to manipulate the WiX default parameters.
Returns: RegistryValue
|
Example
|
Full Usage:
Wix.generateServiceControl setParams
Parameters:
ServiceControl -> ServiceControl
-
Function to override the default service control parameters
Returns: ServiceControl
|
|
Full Usage:
Wix.generateServiceInstall setParams
Parameters:
ServiceInstall -> ServiceInstall
-
Function to override the default service install parameters
Returns: ServiceInstall
|
|
|
Example
|
|
Example
|
Full Usage:
Wix.generateUpgradeVersion setParams
Parameters:
UpgradeVersion -> UpgradeVersion
-
Function used to manipulate the WiX default parameters.
Returns: UpgradeVersion
|
Example
|
Full Usage:
Wix.generateWiXScript fileName
Parameters:
string
-
Pass desired fileName for your wiXScript file
|
Generates WiX Template with specified file name (you can prepend location too) You need to run this once every build an then use fillInWiXScript to replace placeholders
Example
|
Full Usage:
Wix.getComponentIdsFromWiXString wiXString
Parameters:
string
-
The directory string which was generated by getWixDirTag
Returns: string
|
Example
|
Full Usage:
Wix.getComponentRefs elements
Parameters:
seq<DirectoryComponent>
-
Sequence of directory component elements
Returns: seq<ComponentRef option>
|
|
Full Usage:
Wix.getFileIdFromWiXString wiXString fileRegex
Parameters:
string
-
The directory string which was generated by getWixDirTag
fileRegex : string
-
Regex which matches the file name
Returns: string
|
Example
|
Full Usage:
Wix.getFilesAsWiXString files
Parameters:
seq<string>
-
The files to get
Returns: string
|
|
Full Usage:
Wix.getWixDirTag fileFilter asSubDir directoryInfo
Parameters:
FileInfo -> bool
-
The file filter
asSubDir : bool
-
The sub directory
directoryInfo : DirectoryInfo
-
The directory information
Returns: string
|
Creates recursive WiX directory and file tags from the given DirectoryInfo The function will create one component for each file best practice and set the GUID to "*", which will make WiX produce consistent Component Guids if the Component's target path doesn't change. This is vital for major upgrades, since windows installer needs a consistent component guid for tracking each of them. You can use the getComponentIdsFromWiXString function for getting all created component refs and adding them to features.
|
Full Usage:
Wix.setComponentsNeverOverwrite components
Parameters:
string
-
The component string
Returns: string
|
Take a component string and set "neverOverwrite" Tag This is useful for config files, since they are not replaced on upgrade like that
|