Computing.Net > Forums > Windows XP > Batch file to install programs

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file to install programs

Reply to Message Icon

Name: kiwi_hk
Date: March 16, 2009 at 00:09:10 Pacific
OS: Windows XP pro
CPU/Ram: 1G
Product: Compaq / Dx2000mt
Subcategory: Configurations
Comment:

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.

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: kiwi_hk
Date: March 31, 2009 at 23:17:03 Pacific
Reply:

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?


0

Response Number 2
Name: chestertime
Date: March 31, 2009 at 23:19:17 Pacific
Reply:

how about:

IF NOT EXIST filename command


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


0

Response Number 3
Name: LEoH
Date: April 1, 2009 at 23:09:41 Pacific
Reply:

Hey,
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.
LEoH


0

Response Number 4
Name: LEoH
Date: April 1, 2009 at 23:13:00 Pacific
Reply:

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.


0

Response Number 5
Name: kiwi_hk
Date: April 6, 2009 at 01:49:39 Pacific
Reply:

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?


0

Related Posts

See More



Response Number 6
Name: kiwi_hk
Date: April 6, 2009 at 01:52:35 Pacific
Reply:

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?


0

Response Number 7
Name: kiwi_hk
Date: April 6, 2009 at 02:08:16 Pacific
Reply:

I think it's like this, seems to be working.

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


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Batch file to install programs

Batch file to install msi and check errorlvl www.computing.net/answers/windows-xp/batch-file-to-install-msi-and-check-errorlvl/178657.html

Using BATCH file to backup data www.computing.net/answers/windows-xp/using-batch-file-to-backup-data/66927.html

Batch file to edit text file www.computing.net/answers/windows-xp/batch-file-to-edit-text-file/156973.html