/build/static/layout/Breadcrumb_cap_w.png

Trying to configure a batch to idenitfy if a piece of software exists, and to upgrade

Hi there,

Got a weird scenario.

I am trying to deploy thin-print 8.6 software to our network (using Manage Engine Desktop Central for the deployment). I managed to pull out the .msi that was encapsulated within the .exe file which is all fine and dandy. I can deploy the package just fine if the software does not exist. The problem I'm running into is that some systems on our network are using an older version of thinprint that we need to upgrade the the 8.6 version. Other systems already have the newest version installed, and some systems may have been missed for one reason or another. My goal with the batch file is as follows:

1. Identify if an older version of the software exists and upgrade silently
2. If current version is installed, do nothing.
3. Identify if the software is installed - if not - install silently

I figure I can accomplish Item 1 by finding a unique file or folder for it's default install, and then calling msiexec /fo <filename>.msi /quiet /noresetart /qn

I'm not sure if that will work or not. I'm also not sure if this will take care of Item 2 either.

As I'm new to creating batch files of this magnitude assistance would be wonderful!

0 Comments   [ + ] Show comments

Answers (2)

Posted by: jmaclaurin 12 years ago
Third Degree Blue Belt
0
Query the registry for the GUID of the apps in question.

32bit
REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | FIND /i "{GUID}" >NUL
64bit
REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | FIND /i "{GUID}" >NUL
Posted by: Arminius 12 years ago
Second Degree Green Belt
0
If the MSI was designed correctly, it should have upgrade codes in it to handle the upgrade automatically. I assume you want to take out all user interaction; otherwise #2 is handled somewhat by the MSI when it sees the product GUID already exists and you get the options to reinstall, repair, or remove.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ