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!
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)
Please log in to answer
Posted by:
jmaclaurin
13 years ago
Posted by:
Arminius
13 years ago
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.
so that the conversation will remain readable.