Thanks for your replies.
OK I decided to create a script and give the users a starter script that calls the editing exe as an admin. However this isn't working.
Starter.exe:
RunAswait("domain_admin","domain.com","password",1,"c:Reg_editor.exe")
Sleep(1000)
Reg_editor.exe
$ToolsPath=RegRead("HKEY_LOCAL_MACHINESYSTEMControlSet001ControlSession ManagerEnvironment","USER_SCADE_TOOLS_PATH")
if ($ToolsPath=("")) Then
MsgBox(4096, "Error","Environment Variable USER_SCADE_TOOLS_PATH not defined for " & @UserName & " on machine " & @ComputerName)
Else
regwrite("HKEY_LOCAL_MACHINESOFTWAREEsterel TechnologiesCustomStudioExtensionsCUSTOM_SCADE_TOOLS","PathName","REG_SZ",$ToolsPath)
RegWrite("HKEY_LOCAL_MACHINESOFTWAREEsterel TechnologiesStudio 2Work InterfacesCUSTOM_SCADE_TOOLS","PathName","REG_SZ","ETCUST.DLL")
Sleep(5000)
EndIf
When I run Starter.exe it successfully starts reg_editor.exe but nothing is changed. I believe that the problem lies with Reg_editor or there is a permissions issue.