Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We want to use this simple command in a batch file: msiexec /package "\path\package.msi" /quiet /norestart

We want to deploy it to all users and their machines. We want it to be installed only once, and we suspect that if we keep only this command inside the batch script (and not add some IFs and ELSEs) then some unexpected things might happen, such as recurring of installations each time a user logs on etc.

What will practically happen if we keep just this command in the script, and a user who already has this package installed logs on, and the script executes?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

If it's an MSI, you're better off using Group Policy Software Deployment rather than a batch. It does exactly what you're looking for without having to test for previous installs.

As for your actual question:

What will practically happen if we keep just this command in the script, and a user who already has this package installed logs on, and the script executes?

If you don't test for the installation in your script, it will keep reinstalling.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.