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

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
technotika
Posts: 10
Joined: 02 Jun 2011 06:22

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

#1 Post by technotika » 27 Jan 2015 18:54

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

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

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

#2 Post by penpen » 28 Jan 2015 05:06

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

crobertson
Posts: 20
Joined: 25 May 2012 12:34

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

#3 Post by crobertson » 02 Feb 2015 19:35

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.

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

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

#4 Post by Ed Dyreen » 02 Feb 2015 20:13

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

Post Reply