LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Launch After Installation Distribution Problems

I have a question in using the the Launch after Installation option in LabWindows 8.0.  I need to execute some *.msi installation files and a *.bat file after my main application is installed.  When the installer trys to launch the *.msi file I get an Error 193:  Failed to perform action ag3325b_MS.msi, and this continues for each *.msi file.  When the *.bat file launches, I don't get an error, but the execution in the *.bat file does nothing.  Does anyone have any ideas?  I'm not sure if this option only works for *.exe file or what.  I've selected the Launch and Wait option for both types of files.
 
Thanks for your help.
0 Kudos
Message 1 of 3
(3,080 Views)
Hi,

The option is only valid for files that don't need the Windows shell to provide a launch application: .exe and .bat files.  This means if you need to run an .msi you install, you will need to also install a "launcher" .bat file that takes the path to the .msi files as a command line input and calls msiexec.exe on the files.  You may find the %dest command line variable helpful for specifying the installed location of the .msi files (see the Edit Installer Dialog Box - Files Tab help for more info).

As far as the .bat file issues, it is likely related to assumptions your batch file is making about the working directory (which is the directory setup.exe resides in), or other aspects of the target system.

I hope this helps.

Mert A.
National Instruments
Message 2 of 3
(3,068 Views)
Thanks Mert!  That did the trick. 
 
I appreciate your help!
 
Mark
 
 
0 Kudos
Message 3 of 3
(3,055 Views)