Good morning,
Just a quick question, how exactly to install a .cmd in post installation. (this .cmd is located in a directory with other files necessary for its installation.)
Thank you for your help
The normal answer for running a standalone CMD or PS script is simple. From Post-Setup, you Add / File the single script.
But in this case, you need a set of other files to be included.
1. Add / Directory the script's folder which includes all the files.
2. Add / Command a new command line which executes the script (cmd /c \path\MyScript.cmd), using the path provided by Step 1.
If you allow the folder's path to stay under \Windows\Setup, then your folder will be removed when Post-Setup is completed. To keep the folder after Post-Setup, change both the Destination folder and the cmd /c's filename to a different path.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.