Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am new to windows batch file. Here is my first attempt in batch file. Here is my requirement:

I should have batch file. When executes, it should read the XML config file for the software list to be installed and the location of destination.

When I execute the batch script, it should install all the software mentioned in the XML config file, without user intervention.

All the software are .exe extension

For now, I have started with installing one software like below:

set tool=\\igdb001\didc0005\50_Tools\SW\TotalCommander\02_Installation
echo installing the tool commander 
start /w %tool%\tcm801x64.exe /silent
echo finished installing 

It is prompting for user to choose the option during installation. How should automate it?

share|improve this question
you need a setup that will allow silent install...... ".msi" files allow silent installs. Depends on the application, there might be a msi inside the compiled exe file.... try extracting exe with 7-zip –  Logman Sep 2 '13 at 3:05

1 Answer 1

This is for a silent install of Total Commander:

EXTRACT your "tcm801x64.exe" file (with TC or 7-zip), and modify the "install.inf" file contained within the "tcm801x64.exe" file. Set the following:


(0=interactive setup, 1=unattended setup)

Once you have modified the install.inf according to your needs and packed it back into the file tcm801x64.exe, you simply launch tcm801x64.exe and TC will install in unattended mode without asking the user any questions.


You can also create your own MSI instead of using a self extracting archive. Advance Installer has a free "simple" version that allows you to create window installer application (msi). Simple but easy and gives you a lot more control and power installing applications. Create the MSI and then you can use active directory to assign and install applications and not work with scripts.

share|improve this answer
Thanks for the reply Logman. I do not want to modify the exe files since it is been widely used across Business units. I need to modify my batch file script such that it should install the exe tool with out prompting for user. I was just looking at msiexe command. not sure whether I can use this to install .exe. ( superuser.com/questions/602081/…). I tired executing this " msiexec /i \\igdb001\didc0005\50_Tools\SW\TotalCommander\02_Installation\tcm801x64.exe /qn " however it is not doing anything. it just returns to command prompt. –  Pari Sep 2 '13 at 4:16
msiexec can open only .msi packages. And the only reason that "[auto]" is there, is for exactly what you want. You will not be able to install it silently without a msi or modifying the inf file. –  Logman Sep 2 '13 at 4:25
Thanks Logman. I just tried setting auto=1 in install.inf file and executing exe file, it installs with out user intervention in the destination directory which is specified in install.inf file. my requirement here is, it should install in the desired location which I mention in batch file. Can I do this without modifying the destination directory in install.inf file. I did not understand "You will not be able to install it silently without a msi" What is this msi option. I know msi is microsoft installer, there would be file with .msi extension. how can i acheive my task with msi. –  Pari Sep 2 '13 at 6:07
Ok. reading all your comments above clearly, I understood that the setup which ends with .msi extension, allow silent installtion otherwise it prompts user for interaction unless we set auto=1 in install.inf file. that is the reason we have 2 options 1. with msi 2.setting auto 1 in install.inf. this sounds good. I can talk to my manager and deal with option 2 by setting auto =1. how about changing the default destination directory. –  Pari Sep 2 '13 at 6:32
I have one more question here.I have extracted the .exe using 7zip.however i want to pack it back the directory with .exe where by clicking on .exe file, should install the software. I tried with 7 Zip GUI to create a self-extracting archive. Choosing the SFX option when creating a 7z archive. this more or less work like unzipping the folder. –  Pari Sep 2 '13 at 8:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.