Skip to content

Some generic Custom Action functions for WiX Windows Installer

License

Notifications You must be signed in to change notification settings

manasmahajan4/Generic-WiX-Functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Generic-WiX-Functions

I had to solve some difficult problems in Wix Installer. Since WiX does not provide all utilities, I created some to do that for me.

QuiteCmd() This function executes a command line in the background without a pop-up dialog. The output is also captured in the logs. This is a deferred Custom Actions so please treat it as such.

To use this function:

  1. Create an Immediate Custom Action which assigns the CustomActionData properties for the custom action which calls this function.
  2. Sequence the immediate custom action before the intended deferred custom action. Done.

Example:

To define the Custom Actions:

<CustomAction Id="PrepareMyCmdCall" Property="MyCmdCall" Value="CMDFILENAME=myExecutable.exe;CMDEXEPARAMS=-example params -p [SOMEPROPERTY];CMDDIRECTORY=C:\fooTest\[SOMEFILENAME]" />
<CustomAction Id="MyCmdCall" Return="check" Execute="deferred" BinaryKey="CustomActions.CA.dll" DllEntry="QuietCmd" />

Sequencing:

<InstallExecuteSequence>
        <Custom Action="PrepareMyCmdCall" Before="MyCmdCall">REMOVE ~= "ALL"</Custom>
        <Custom Action="MyCmdCall" After="SomeCustomAction">REMOVE ~= "ALL"</Custom>
</InstallExecuteSequence>

About

Some generic Custom Action functions for WiX Windows Installer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages