RMS200479: Modification of Registry Entries on 64-bit Operating Systems

Since RayManageSoft is a 32-bit application, on a 64-bit system registry changes will be redirected during a package installation.

For example, on a 64-bit system "HKLM/Software/" as specified below will be redirected to "HKLM/Software/WOW6432Node/".

mceclip2.png

More information regarding the redirection for 32-bit applications can be found on the following page by Microsoft: 

https://docs.microsoft.com/en-us/windows/desktop/WinProg64/registry-redirector

 

Option 1:

The best option to get the 64-bit and 32-bit registry entries modified is by creating an MSI package which only contains registry information and is suitable for both 32/64-bit operating systems. It is possible to deploy this MSI package using RayManageSoft without any additional effort.

 

Option 2:

Calling "C:\Windows\SysNative\cmd.exe" within a 32-bit process creates a new process in the 64-bit context. Hence, another option is the usage of "C:\Windows\SysNative\cmd.exe“ in "Run Commands" of a RayManageSoft package. It can either be called by a custom script or directly by any registry modification command.

Just make sure to adjust the architecture target of the "Run Command" to apply only on a 64-bit system. Calling "C:\Windows\SysNative\cmd.exe" on a 32-bit system will result in an error.

mceclip1.png

 

Make sure to add the script in the files and folders part of the package and then call it by a run command as given below.

Example:

C:\Windows\SysNative\cmd.exe /c "<run the script>"

 

It is also possible to extend the script in order to call the "C:\Windows\SysNative\cmd.exe" when needed (if it is a 64-bit system). If this is the case, the script needs to be started in "Run Commands" as given below.

Example:

cmd.exe /c "<run the script>"

 

Calling a registry modification command such as "reg add" directly is the simplest option and can be specified in "Run Commands" as given below. In this case, the proper registry modification needs to specified for each architecture.. 

Example: 

C:\Windows\SysNative\cmd.exe /c "reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion /v Test /t REG_DWORD /d 52 /f"

 

 

More information on the file system redirector and SysNative can be found here:

https://docs.microsoft.com/en-us/windows/desktop/winprog64/file-system-redirector

Comments

Powered by Zendesk