Search code examples
wixwindows-installercustom-action

Pack .EXE in Wix Installer and execute after installation


I'm creating an installer for my application using the wix toolset.

I need to include an .EXE file and execute it during/after the installation process (the .EXE shall not be installed to the application folder). The .EXE also has a dependency on a .DLL file, which came with the .EXE file.

How can I accomplish this?

Greets


Solution

  • This should work ...

    <CustomAction Id         ="echo_test"                     
                  Directory  ="INSTALLLOCATION"
                  ExeCommand ='NOTEPAD.EXE echo_test.txt'
                  Execute    ="immediate"
                  Return     ="asyncNoWait"
                        />
    

    Taken from: Call command line after installation in Wix