Page 1 of 1

Batch to kill installer process to move on with the script..

Posted: 27 Jan 2015 18:54
by technotika
Hi Guys
I'm trying to make a batch file that makes a long install process, a lot more streamlined. Basically I want the batch to call a silent installer, then copy a xml file to save GUI config, the set folder permissions, and finally copy documentation.
Most of this is done but I'm stuck on the silent installer part. At the end it comes up with a "Click Close" dialogue box which stops the batch running until it's pressed. I've tried sleeping the batch for minutes then calling another batch to "kill" the installer.exe process and continue, but this adds too much time and also isn't reliable.
I was hoping for perhaps a better way of doing this. Any ideas greatly appreciated....thanks! :o

Re: Batch to kill installer process to move on with the scri

Posted: 28 Jan 2015 05:06
by penpen
A silent installer performs a silent install, which is the installation of a software program that requires no user interaction: If you have to click "Ok." at the end it is no silent installer.
Maybe it is an installer that supports a silent install if you use the appropriate command line argument (but who could say this without knowing the installer).

penpen

Re: Batch to kill installer process to move on with the scri

Posted: 02 Feb 2015 19:35
by crobertson
I did this several times when a program has a switch for silent install, then I learned to make a shortcut to the program and put the switches in the shortcut.

Re: Batch to kill installer process to move on with the scri

Posted: 02 Feb 2015 20:13
by Ed Dyreen
technotika wrote:Hi Guys
I'm trying to make a batch file that makes a long install process, a lot more streamlined. Basically I want the batch to call a silent installer, then copy a xml file to save GUI config, the set folder permissions, and finally copy documentation.
Most of this is done but I'm stuck on the silent installer part. At the end it comes up with a "Click Close" dialogue box which stops the batch running until it's pressed. I've tried sleeping the batch for minutes then calling another batch to "kill" the installer.exe process and continue, but this adds too much time and also isn't reliable.
I was hoping for perhaps a better way of doing this. Any ideas greatly appreciated....thanks! :o
Programs are packed using installers like MSI or NSIS installer. Try to figure out what installer you are dealing with. Most of the time you can visually identify it. CMenu.EXE, can identify some installers too. If that fails write a script to have it click the buttons you want clicked. Google >> yourProgram+Silent+Install+Switches