gingerpantman Posted June 17, 2015 Share Posted June 17, 2015 (edited) Hi all,Im trying to run and exe with commandsrun (@ProgramFilesDir & "\LANDesk\LDClient\sdmcache\ldms\Packages\3M\Software\setup.exe" /s /f1"C:\temp\3M\Software\RFIDResponse.iss")The below works but the above failsrun (@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 June 17, 2015 by gingerpantman Link to comment Share on other sites More sharing options...
UEZ Posted June 17, 2015 Share Posted June 17, 2015 Try ShellExecute Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted June 17, 2015 Share Posted June 17, 2015 Run it as a CMD with @ComSpec Just an example not probably the right combination of quotes to pass the cmd properly.Run(@ComSpec & " /k " & @ProgramFilesDir & "\LanDesk\LDClient\sdmcache\....") Link to comment Share on other sites More sharing options...
AdamUL Posted June 17, 2015 Share Posted June 17, 2015 Watch your quotes. Give this a try.Run('"' & @ProgramFilesDir & '\LANDesk\LDClient\sdmcache\ldms\Packages\3M\Software\setup.exe" /s /f1"C:\temp\3M\Software\RFIDResponse.iss"') Adam Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 17, 2015 Moderators Share Posted June 17, 2015 (edited) 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 June 17, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now