View Full Version : Executing shell Commands in InstallShield X
rtand1
06-11-2004, 03:31 PM
Is there a way that I can execute shell commands from inside installshield?
Thanks,
Rob
GatorBadMan
06-11-2004, 04:34 PM
One way is to create a VBScript and instantiate the Wscript.shell object to issue any shell commands. Here's a quick example for you - [this one will stop the WWW NT service]
Set objShell = CreateObject("WScript.Shell")
objShell.run "net stop w3svc"
vadimk
06-15-2004, 05:07 PM
Also you can use installscript, just get the value of the environment variable COMSPEC and run the command
%COMSPEC% /c <your command>
One thing you should know is that you can't just use %COMSPEC% as an argument for LaunchApp you have to first get the value of it.
Powered by vBulletin® Version 4.2.2 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.