Indigo Rose Software
  #1  
Old 08-09-2007
crewsr crewsr is offline
Forum Member
 
Join Date: Jan 2006
Posts: 28
custom action .exe switch syntax

I'm trying to get an custom action to run a .exe file and use some switches to install some 3rd party drivers our software uses. From the command line the syntax is like so:
setup.exe /S /v"/qn ADDLOCAL=USB_Driver,Parallel_Driver"
This causes the drivers to be installed silently and to only install the drivers.

I've tried different syntax with the switches, but they never work... at best the executable runs as if no switches were specified...
"/S /v\"/qn ADDLOCAL=USB_Driver,Parallel_Driver\""
/S "/v\"/qn ADDLOCAL=USB_Driver,Parallel_Driver\""
Can anyone shed some light on this?

Last edited by crewsr; 08-09-2007 at 12:26 PM.
Reply With Quote
  #2  
Old 08-09-2007
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Is the installer that you are running a Windows Installer (perhaps the setup.exe is a bootstrapper for a msi file)? If so, that may cause it not to work. You cannot have two Windows Installer installers running at the same time.

Perhaps you should consider running the 3rd party installer from a custom bootstrapper script rather than from the installer itself.
Reply With Quote
  #3  
Old 08-13-2007
crewsr crewsr is offline
Forum Member
 
Join Date: Jan 2006
Posts: 28
OK, turns out there are actually two .exe-wrapped MSI packages that need to be installed after my main product; the sentinel.exe and vcredist_x86.exe. I can launch either of these as expected, but since they are MSI's behind the scenes, they cannot be launched concurrently. If I specify the wait for return parameter on either .exe:
File.Run("path\\filename.exe","switches",1,1)
the files won't execute and Application.GetLastError returns 1013.

Any thoughts?
Reply With Quote
  #4  
Old 08-13-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
I suspect you need to pass a command line switch to those external setup launchers to make them wait for the MSI installation to complete before returning.

Telling the File.Run action to wait for the launcher to finish isn't enough unless the launcher actually waits for the install it launched.
__________________
--[[ Indigo Rose Software Developer ]]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TrueUpdate 2.0 Update (v2.0.6.0) Released Brett TrueUpdate 2.0 0 10-31-2006 02:10 PM
:: Custom Action Bill Stoker AutoPlay Media Studio 5.0 2 08-24-2005 07:45 AM
INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0 Support AutoPlay Media Studio 4.0 Examples 0 10-03-2002 09:38 AM
SUF6.0.0.2 -- installer hangs. jassing Setup Factory 6.0 4 12-20-2001 12:28 AM


All times are GMT -6. The time now is 04:54 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software