Use this procedure with a Post Install custom execute to run a
.exe
distribution after your package installs.
-
In the
Root
property, select
[System (32-bit)].
-
Set the
Executable Path
to the name of the command prompt executable.
cmd.exe
-
In the
Arguments
property, provide the arguments to pass in a string to command prompt and then run one of the following commands:
/c <file.exe>
The
/c
flag carries out the command specified and then terminates.
Replace
<file.exe>
by the full path to your .exe
file.
For example, when installing
ExeInstalledByPackage.exe
to the
Temp
target root directory, the path argument would be
%Temp%\ExeInstalledByPackage.exe
.
Pass the
/noMutex
flag if you are running an NI installer executable.
-
Click
OK.
-
Build all packages by selecting
.
-
When your package installer is run after the installation is executed, the executable will run.
Note
Use
Add Folder without Discover
to add an executable to your package as an input item if the folder containing the executable also includes Microsoft .DLLs.