LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Launch a "setup.exe" with LabVIEW app? No luck with System Exec.vi

I've got an application that I'm trying to update with a separate LabVIEW application (the "Updater"). It's the "Check for Updates" capability you see on other major apps.
 
Here's the glitch: When the Updater tries to launch "setup.exe" using "System Exec.vi", The installer seems to catch the attempt and pops a dialog titled "Windws XP Setup" saying "Please go to the Control Panel to install and configure system components".  The install does not begin and the installer closes (if it was ever open!).
 
Running the same installer by double-clicking the "setup.exe" file from windows runs just fine.
 
Here's the question: "How can a LabView app launch an installer?" 
0 Kudos
Message 1 of 5
(3,601 Views)
Do you know the appropriate command line including optional switches?  Can you get the correct behavior from the command line prompt?
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 5
(3,593 Views)
Could you show the code.

Look at the path where you want to run the code.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 5
(3,583 Views)
Hmmm. Thank you for the kick in the right direction. Running from the command prompt brings up a language dialog, and then a Windows Installer dialog showing command line switches.
 
I still would like this app to behave as if it is running from a windows environment (just like when you double-click on the 'setup.exe' file from Windows Explorer.  I'm guessing I can get it to work with command line switches - but I'm curious if there's a way to make it windows-aware upon launch?
0 Kudos
Message 4 of 5
(3,574 Views)
Just to complete this thread - I solved the problem by using the .NET 2.0 Process Start method. Diagram pic attached. Works great!

Message Edited by Wiredup on 10-09-2007 09:32 AM

0 Kudos
Message 5 of 5
(3,477 Views)