Do you have InstallShield or another robust MSI Editor? You should be able to add your existing properties, and that registry setting, into it via a TRANSFORM file and then just deploy that.
On Wed, Aug 10, 2016 at 9:29 AM, Jason Sandys <[email protected]> wrote: > No, you do not have to add a wait. Your 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. > > > > For the HKCU edit, you need to create a separate package/application > targeted at users that performs this update. You can make it dependent upon > the first application/package. > > > > For the HKLM edit, you need to set it to modify > *HKEY_LOCAL_MACHINE\SOFTWARE\Laserform\LFormInet*. If using an > application then choose the option that says to run the process as a 32-bit > process on 64-bit clients. If using a package then just the reg key path > change is sufficient as programs already always run as 32-bit. > > > > J > > > > *From:* [email protected] [mailto:listsadmin@lists. > myitforum.com] *On Behalf Of *Radu Bogdan > *Sent:* Wednesday, August 10, 2016 6:06 AM > *To:* [email protected] > *Subject:* [mssms] Install multiple applications > > > > 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/ <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" > > > > Do I also need to specify a WAIT between each lines ? > > > > > > > >

