0

How can I make a batch file that automatically installs java,office and adobe stuff without gui, instead of that I want to let whole proces take place inside the command prompt. For example I want to have a bar inside the command prompt telling me how far the install process is. How do I make that, I can't find it on the internet. Here is a example of what I already have:

@echo off
echo Installing application...
msiexec.exe /passive /i "%~dp0skypesetup.msi"
echo Install failed.
pause

Here I have the msi file if you wanna help me: http://www.skype.com/go/getskype-msi

Does anyone knows how to make a program with percent bar inside the command promt?

Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
  • Run `msiexec.exe /?` and you get displayed a list of options. Instead of `/passive` it is better to use `/quiet`. As far as I know Microsoft installer does not support a progess bar in console window. Best for silent (quiet) installations is always contacting the producing company of the software and ask how to install the software quiet with or without customizations as there are most likely not two software products with identical installer scripts (options). And finally such questions are better asked on [Super User](http://superuser.com/) as not about programming, just using right options. – Mofi Aug 31 '14 at 20:08

2 Answers2

2

For the external GUI you can check MsiSetExternalUI function (follow the links). For installing silently the basic msiexec.exe command line is:

msiexec.exe /I "C:\MsiFile.msi" /QN /L*V "C:\msilog.log"

Quick explanation:

/I is for install 
/QN is silent mode
/L*V is verbose logging

Some links:

Community
  • 1
  • 1
Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
0

Stupid me :( , I'v searched a lot and finally found it. I thought I had to use msi but I can also do it with .exe files. Stupid me. Here's the code if someone wants it or needs it:

@ECHO OFF
echo Do you want to install ccleaner
pause
ccleaner.exe /S /L=1043
echo You've succesfully installed ccleaner
pause