Jump to content

Batch File Help Please


Charlicon
 Share

Recommended Posts

Hi everyone,

My boss has asked me to write a batch file to allow us to install multiple software packages with no user interaction, I know the command to install a single application using the Windows Installer file & the MSFT file, how would I go about creating a batch file that will run one command and as soon as the application is installed run the next command within the file.

The command I am using to install a single application is currently as follows

Microsoft Windows XP [Version 5.1.2600]

© Copyright 1985-2001 Microsoft Corp.

C:Documents and SettingsNoel>MSIEXEC /I WINDOWS INSTALLER FILE GOES HERE TRANS

FORMS=MSFT FILE NAME GOES HERE /QB

If I perform this command and attempt to repeat the command for a sceond application immediatly after I get an error message saying that an install is currently in operation, I then have to waite and rerun the command.

Any help would be greatly appreciatted as I have no real idea on how to start this.

Thanks

Link to comment
Share on other sites

start /wait MSIEXEC /I WINDOWS INSTALLER FILE GOES HERE TRANS 

FORMS=MSFT FILE NAME GOES HERE /QB 



start /wait MSIEXEC /I WINDOWS INSTALLER FILE GOES HERE TRANS 

FORMS=MSFT FILE NAME GOES HERE /QB

this works for me, the

start /wait
commant tells Windows to run the application MSIEXEC, and stop the batch file untill MSIEXEC is closed.
Link to comment
Share on other sites

Thanks,

I found out a way to do it, basically I wrote a batch file for the indiviual apps being installed and then wrote another batch file and using the CALL command called each batch file in turn, this allows for me to easily modify the parameters of any installation as needed.

Thanks Again

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...