Hi,
I would like to create a simple script to set a system variable with three options. I have the following batch script, but I would like to have something more pro:
REM At the end of the next line, use "Viewer" for ArcView, "Editor" for ArcEditor and "Professional" for ArcInfo.
SET ESRI_SOFTWARE_CLASS=Viewer
"C:\Program Files (x86)\ArcGIS\Desktop10.3\Bin\arcmap.exe"
I can't figured out how to do it. If someone could help me, I'll be very happy.
Regards, M.
Set Software Class
6 posts
Do you want ESRI_SOFTWARE_CLASS to be set globally for all processes or just in the installer so arcmap.exe can access it if it is started by the installer?
Hi Anders, thanks for your help.
I have Arcgis already installed in several PC´s, used by different users. None of them have Admin rights, exept myself. We have several Viewer (arcview) licences but only one Editor (arceditor) license, so we need to switch from Viewer to Editor license depending on the job or the edition to do. Arcgis has a tool to make this switch but you have to be admin... 🙁
I've found the batch script that I've added previously, but I'm trying to create a single screen app that lets the users to choose the type of license to run: basic, advance or professional (this last not available yet in the office). This is not an installation script, but I think NSIS can manage it. Hope to be more clear...
Regards, M.
I have Arcgis already installed in several PC´s, used by different users. None of them have Admin rights, exept myself. We have several Viewer (arcview) licences but only one Editor (arceditor) license, so we need to switch from Viewer to Editor license depending on the job or the edition to do. Arcgis has a tool to make this switch but you have to be admin... 🙁
I've found the batch script that I've added previously, but I'm trying to create a single screen app that lets the users to choose the type of license to run: basic, advance or professional (this last not available yet in the office). This is not an installation script, but I think NSIS can manage it. Hope to be more clear...
Regards, M.
UPDATE... The app can run Arcgis after the license selection, but this is not really necesary. Only need the three options as radio buttons: viewer, editor and professional and the "SET ESRI_SOFTWARE_CLASS=/user_choice/" after the selection. Thx again, M.
UPDATE 2... a global statement should be fine 🙂
UPDATE 2... a global statement should be fine 🙂
You would use nsDialogs or InstallOptions to create a custom page.
To set ESRI_SOFTWARE_CLASS for new processes you would write to HKCU or HKLM and send a message to Explorer (HKLM is the machine part of the registry and you need to be admin to write there). There should be more information about setting environment variables on the NSIS wiki and here on the forum.
Please try to come up with something on your own. I might be able to provide some more help tomorrow. Good luck 😉
To set ESRI_SOFTWARE_CLASS for new processes you would write to HKCU or HKLM and send a message to Explorer (HKLM is the machine part of the registry and you need to be admin to write there). There should be more information about setting environment variables on the NSIS wiki and here on the forum.
Please try to come up with something on your own. I might be able to provide some more help tomorrow. Good luck 😉
I'll do. Thanks Anders...