Post installation of a .cmd file

lemegapro

Member
Messages
40
Reaction score
2
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.

View attachment 12222
 
Back
Top