Batch file to install programs

Compaq / Dx2000mt
March 16, 2009 at 00:09:10
Specs: Windows XP pro, 1G
Hi looking for a batch file to install some .exe or .msi programs silently but want the batch file to check if the program is installed or not before starting.


See More: Batch file to install programs

Report •

March 31, 2009 at 23:17:03
I am using this in the batch file when users login

"\\server\netlogon\program\program.msi" /qnr

But how to check if the program is already installed it will not execute again?

Report •

March 31, 2009 at 23:19:17
how about:

IF NOT EXIST filename command

where filename is the path to the properly installed software's

Report •

April 1, 2009 at 23:09:41
You could use an old tool ZIP2EXE.exe to convert a zip
archive containing the installed program to an exe. Then use
the following VBS script to run the Self Extractor invisibly.

'Start Of Script

'Author: LEoH
'Program: UH

'Run Program Invisibly.
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "(Your Self Extracting EXE's
Name).exe" & Chr(34), 0
Set WshShell = Nothing

'Start Of Script

Change "(Your Self Extracting EXE's Name).exe" to the files
name. Remove the brackets.
This will open the exe invisibly. It can also be used to run
almost any type of file invisibly. Just make sure the program
ends or you will have to kill the task to exit the program.

Save this file as whatever you want but make sure its
extension is .vbs or else it wont work.

Hope this helps.

Report •

Related Solutions

April 1, 2009 at 23:13:00
Sorry. I forgot. You can remove the credits and lines at the
beginning. I add them to all my files. I don't care if they aren't
there. They aren't Necessary, I just copied the entire contents
of the .vbs file i made just encase i forgot how to do it.

Report •

April 6, 2009 at 01:49:39
I don;t understand, my file is *.exe or *.msi already, I just want a silent install in the background, but couldn't do it with software deployment assigning using GPO because it's gaves me invalid H:drive and failes when it try to install before the users logins.

Your programs converts a zip file to a *.exe?

Report •

April 6, 2009 at 01:52:35
HOw do i uses the IF NOT EXIST filename command

to check in the C:programs have this file, if it has then stops and won't install the program and if not exist install the program?

Report •

April 6, 2009 at 02:08:16
I think it's like this, seems to be working.

IF NOT EXIST "C:\Program Files\.....exe" "\\server\......"

Report •

Ask Question