Jump to content

Calling an Exe with switches


Recommended Posts

Hi all,

Im trying to run and exe with commands

run (@ProgramFilesDir & "\LANDesk\LDClient\sdmcache\ldms\Packages\3M\Software\setup.exe" /s /f1"C:\temp\3M\Software\RFIDResponse.iss")

The below works but the above fails

run (@ProgramFilesDir & "\LANDesk\LDClient\sdmcache\ldms\Packages\3M\Software\setup.exe"

 

I know the setup command and switches work fine as i can do them in CMD, any ideas?

 

Also i would like to change the C:\temp\3M\Software\RFIDResponse.iss path to the same path as the exe @ProgramFilesDir & "\LANDesk\LDClient\sdmcache\ldms\Packages\3M\Software\setup.exe Is there an easier way to do this or do i just have to repeat the @programfilesdir  ?

 

Edited by gingerpantman
Link to comment
Share on other sites

  • Moderators

gingerpantman, as I mentioned in your previous thread (really wasn't a need to open a new thread, since this is the same install), ShellExecute or ShellExecuteWait is your best bet for these kinds of installs. Certainly no need to run it from command prompt. I would do something like this:

 

ShellExecuteWait(@ProgramFilesDir & "\LANDesk\LDClient\sdmcache\ldms\Packages\3M\Software\setup.exe", '/s /f1 "C:\temp\3M\Software\RFIDResponse.iss"')

 

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...