I'm not so sure how to start this, but I will try my best so you can help me out. We have some computers with software already installed, but not all. I want to write a script that would check on each machine if the software already install then skip, but if not then install the software. How would I do that from windows 2003 server R2 via gpo? If you know where I can get further information or you have experience before, please post here. Thank you,
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
"This is a job for.......Windows Installer!"

An MSI can be authored to check for file, folder or registry entry presence and set a property accordingly. The package can then check the properties value and branch accordingly. The same can be done in script (I have presumed you meant a scripting language - but lots of people refer to 'packaging' as 'scripting'), of course but that will involve you in building the script, accounting for uninstall, recording the install state and so on. MSI does all that out of the box.
Answered 02/17/2009 by: VBScab
Red Belt

Please log in to comment
0
You could use WMI or VB Script to query the registry on each machine for the values\keys in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall...
Answered 02/18/2009 by: ditch_nz
Purple Belt

Please log in to comment
0
Just add the software (MSI packages) to a GPO and make sure the GPO applies to the computer(s), then these applications will be deployed to the computers by default. No need to check if installed or not as it will be handled by the group policy.
Answered 02/19/2009 by: AngelD
Red Belt

Please log in to comment
0
Strictly speaking, GP checks whether the policy has been applied, not whether the product has been installed. The Windows Installer engine does the latter. Of course, in practise, they're the same thing but the distinction is important.
Answered 02/19/2009 by: VBScab
Red Belt

Please log in to comment
0
Good point Ian!
Answered 02/19/2009 by: AngelD
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity