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   [ - ] Hide 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.
Answer this question or Comment on this question for clarity


Query the registry for the GUID of the apps in question.

REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | FIND /i "{GUID}" >NUL
REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | FIND /i "{GUID}" >NUL
Answered 09/14/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
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.
Answered 09/14/2011 by: Arminius
Second Degree Green Belt

Please log in to comment