Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to remotely install software by using a batch file and psexec. During the installation process it asks me to install extra software which I don't need. If I don't install this extra software the whole install process will hang forever.

the switches i use : setup.exe /S /v /qn

This will hang up on the installation of the extra software in that setup.exe package How do I skip installing the extra software?

share|improve this question

migrated from Apr 27 '13 at 17:26

This question came from our site for professional and enthusiast programmers.

What's that \\drive1\etc command line? Is that the step you want to skip? Can you not just delete it from the batch file? I'm afraid I'm not understanding your question. – Nate Hekman Apr 26 '13 at 15:22
everything before .exe is the path to install.exe. i will make it short – USER Apr 26 '13 at 15:23
But I don't understand what that .exe has to do with your question. – Nate Hekman Apr 26 '13 at 15:29
Reading between the lines (including in the full path of the exe from earlier revisions of the question) - the OP is running that setup.exe which is a PowerShape installer, on a remote PC (using psexec). The powershape installer is trying to install something else (from googling, probably the VC Redistributable package). This secondary install is failing. OP, there's a mention of this problem here:… – Vicky Apr 26 '13 at 15:41
@USER Things that you need to know: 1- Exists different kinds of "setups.exe" (Setup builders) and not all have the same switches. 2 - Setups have their packages, so you need to found the package name. 3- You are using a MSI setup installer so you can use the switch to install only the desired packages. 4- your question have any relation with Batch files. – ElektroStudios Apr 26 '13 at 16:42

Setup.exe /s /v /qn indicates an InstallShield setup.exe. On a clean (virtual) machine:

  1. Navigate to %TEMP% and clean it out
  2. Run the setup.exe interactively
  3. Look in %TEMP% for GUID directories to grab the installer.

Now you should have a FOO.MSI file. Use the commandline:

msiexec /I foo.msi REBOOT=R /qn

To install it. Realize that the MSI might have additional checks to make sure that the list of prerequistes that setup.exe was going to install are in fact installed. You'll have to figure out how to get each of these on the machine via psexec. It's not as simple as it sounds since you are basically decomposing setup.exe and reimplementing it.

BTW, this question is off topic since you aren't developing the installer you are trying to install someone elses.

share|improve this answer

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.