Hide Command prompt window
Average Rating: 4 based on 1 votes
I am running a vbscript through msi using the Action: Execute commandline from path.where property is set as [WindowsFolder]system32\cscript.exe and vbs file in commandline.(that vbfile is present in the machine where package is goin to install).But problem is with silent installation.On installing package ,the cmd window will pop up and go.Can any one suggest a method to hide this cmd window popping up during package installtion?
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
Posted by:
Anjana
13 years ago
Posted by:
spartacus
13 years ago
ORIGINAL: Anjana
I am running a vbscript through msi using the Action: Execute commandline from path.where property is set as [WindowsFolder]system32\cscript.exe and vbs file in commandline.(that vbfile is present in the machine where package is goin to install).But problem is with silent installation.On installing package ,the cmd window will pop up and go.Can any one suggest a method to hide this cmd window popping up during package installtion?
If the VBS file is consistent across all machines to which you plan to deploy the package, why not import the contents of the script and construct a Type 6 or type 38 custom action ? That way you eliminate the need for cscript.exe and the command window. There are a few caveats to this depending on the contents of your script, for example any code which uses the WScript object (e.g. wscript.sleep) will not work in a custom action.
Alternatively You might want to try out the method using wixca.dll, which I posted here
Spartacus
Posted by:
mazessj
13 years ago
Posted by:
angrymidget
10 years ago
When editing a script, you can click the "View raw XML editor" link under the Scheduling section. If you change the type=policy field to type=hidden, the entire script will run in silent mode.
<config name="Blah Blah script that does whatever" type="hidden" id="106" version="1393522756" description="Whatever this script does.">
If you need to export the script as a resource to another Org on the KACE appliance, you will have to change it back from hidden to policy as it will not show up in the list of available resources.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.