Hi All,
We have been having a bit of an issue packaging ArcGIS Pro. Everything works as expected/described in any related ESRI documentation yet this matter with licencing settings via silent install parameters just not playing nice if we try to upgrade from an earlier version.
If we install our packaged ArcGIS Pro on a freshly imaged Windows desktop - it is all good, whatever we set for licensing in the silent install parameters - that is just there pre-configured at the first start.
But if we try deploying the package to an existing Pro installation - again everything is fine but the licencing settings under Computer\HKEY_CURRENT_USER\SOFTWARE\ESRI\ArcGISPro\Licensing just not reflecting those values we would like to see. Whilst under the Computer\HKEY_LOCAL_MACHINE\SOFTWARE\ESRI\ArcGISPro\Licensing we can see the registry reflections of our prefered settings coming out from the silent install parameters.
We tried just deleting all ESRI related registry settings both from HKCU and HKLM with a script prior the installation of the MSI's - that did not help either and the previous versions licence settings just turn up again under Computer\HKEY_CURRENT_USER\SOFTWARE\ESRI\ArcGISPro\Licensing section - we have no idea where those are being restored from - and why...
Unfortunately, we do need to change licencing regime from concurrent to named user as well as having a new licence server URL. We are installing the ArcGIS Pro per-machine using the following silent install command:
msiexec.exe /i "c:\arcgistemp\ArcGISPro.msi" ALLUSERS=1 ACCEPTEULA=YES SOFTWARE_CLASS=Viewer CHECKFORUPDATESATSTARTUP=0 ADMIN_SETTINGS_PATH="\\XXXXXXXXXXXXXXXXXXXXX" AUTHORIZATION_TYPE=NAMED_USER LOCK_AUTH_SETTINGS=FALSE ARCGIS_CONNECTION=TRUE PORTAL_LIST="https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ESRI_LICENSE_HOST=xyzxyzxyzxyz LICENCE_URL=”https://xyzxyzxyzxyzxyz”
We do not lock the licensing using LOCK_AUTH_SETTINGS - but if that solves our problem, we might just introduce that. But in general - we are really not sure where are those previously used licensing values are coming into the HKCU entry - and we are also not sure why our settings only honored in the HKLM yet not propagating adequately to the HKCU.
If anyone could shed some light, give us some pointers - that would be very much appreciated.
Thank you
Tamas
HKEY Current User is stored in the users profile. If you looked in HKCU registry when different users are logged into the same computer you will see different registry settings.
When you run an MSI install with ALL User = 1 the installation cannot, overwrite individual HKCU registry settings because it is running as the System account.
By design, HKCU overrides HKEY_LOCAL_MACHINE.
In regards to your installation package, one way to get around some of the installer flags is to use Orca to edit the MSI directly. Most or all the flags you may set at the Command Line can be found in the Properties Table within your MSI (turns out an MSI is just a database file ;-).
1. If you are seeing many users with HKCU values within their registry it is because you have Per User installations. This is Bad since it causes the issues you describe and make managed deployments difficult.
2. We need a script to iterated through all users in HKEY_USERS and deleted HKEY_USERS\<unique user GUID Here>\Software\ESRI\ArcGISPro\Licensing. An example of is idea can be found at recursion - Registry - HKEY_USERS Recursively Delete Key (VBS) - Stack Overflow