I have a simple application that I need to install, another old one which I need to uninstall it first and I need to make a registry change along with it. I chose to batch the process, and here’s what I have:
REM Check if 32-bit command-prompt launched on 64-bit OS
IF "%PROCESSOR_ARCHITEW6432%"=="AMD64" SET REGPATH=%SystemRoot%\SysWOW64\REGEDIT.EXE
%REGPATH% /s "%~dp0change.reg"
So from what I understand so far (at least this is what someone explain it to me) it is possible that the registry edit won’t work if run through ConfigMgr though for two reasons. First, you are trying to modify a value specific to a user and second because you are trying to modify a value in the 32-bit section of the Software hive.
Anyone have other experiences using something like this ?
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Hi,
I have a simple application that I need to install, another old one which I need to uninstall it first and I need to make a registry change along with it. I chose to batch the process, and here’s what I have:
Uninstall:
msiexec /uninstall {19ED22B4-4058-4BB6-AFBB-357D6383534E} /quiet
Install:
Msiexec /q /i "\\fileserver\Source$ \Laserform_Intranet_Client_2.3\LFormInetClient.msi" SQLSERVER="Server" WEBSERVER="http://Server/LformInet/Default.aspx" DMSID="MHODMA"
Update registry key:
regedit.exe /s "%~dp0change.reg"
The two registry keys looks like this:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Laserform\LFormInet]
"SQL Server"="Server"
"URL"="http://Server/LformInet/"
"DBTYPE"="SQL"
"SQL ServerLive"="Server"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Laserform\LFormInet]
"SQL Server"="Server"
"DBTYPE"="SQL"
"ClientVer"="5.1.33"
In the end the .bat file should look like this:
msiexec /uninstall {19ED22B4-4058-4BB6-AFBB-357D6383534E} /quiet
Msiexec /q /i "\\fileserver\Source$ \Laserform_Intranet_Client_2.3\LFormInetClient.msi" SQLSERVER="Server" WEBSERVER="http://Server/LformInet/Default.aspx" DMSID="MHODMA"
REM Check if 32-bit command-prompt launched on 64-bit OS
IF "%PROCESSOR_ARCHITEW6432%"=="AMD64" SET REGPATH=%SystemRoot%\SysWOW64\REGEDIT.EXE
%REGPATH% /s "%~dp0change.reg"
So from what I understand so far (at least this is what someone explain it to me) it is possible that the registry edit won’t work if run through ConfigMgr though for two reasons. First, you are trying to modify a value specific to a user and second because you are trying to modify a value in the 32-bit section of the Software hive.
Anyone have other experiences using something like this ?
Thank you.
Share this post
Link to post
Share on other sites