Post
by Hendrik_Ambrosius » 14. Jan 2017, 08:40
Two thoughts:
There is no need to import the license assignments because the system automatically creates license demands after detecting installations that are subject to licensing. Even if software has been installed manually. What needs to be imported is the license inventory (the licenses you purchased). They will be automtically assigned to the license demands raised by the system. None of those changes trigger a software install!
If you are afraid of software being reinstalled unintentionally add these lines to the setup.inf of affected packages at the beginning of the [product] section:
; Sample for Adobe
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AC76BA86-7AD7-1031-7B44-A90000000001},DisplayName") == "1" & DoesRegKeyExist ("HKLM,SOFTWARE\Adobe\Reader\9.0\Setup,Date") == "0" Then "Skip-Inst" EndIf
; Sample for Firefox
If DoesRegKeyExist ("HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox (3.0.4),DisplayName") == "1" & DoesRegKeyExist ("HKLM,SOFTWARE\Mozilla\Firefox\3.0.4\Setup,Date") == "0" Then "Skip-Inst" EndIf
...and add this section at the very end of your script:
[Skip-Inst]
ErrorLogMsg Manual install found, skipping setup!
Exit
Of course you just keep one of the sample lines and modify it for each package.
The first section of the IF statement is anything that is already on the client of the manual setup (e.g. a regkey or file - file checking would be DOESFILEEXIST) to identify the software has already been installed manually.
The second section is the Empirum package´s product key. See the Developername and Productname variables in the setup.inf. If this key is present the software has been installed through a setup.inf.
Whats happens after the change?
If software is already installed manually and the Empirum setup starts for the first time it will skip the setup, finish the script (status goes to green) and there will be an entry in the SetupErrorLog to notify the admin that the setup has actually been skipped.
If you reinstall a softwarepackage on that client (e.g. because the installation is broken) it will always run the setup in reinstall mode because now there is an Empirum package product key (second part of the IF query above).
If it´s a client with no manual installation it will always run the setup.
So even if somebody accidently orders a services that initiates a software installation the client setup will not be harmed!
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.