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"

Do I also need to specify a WAIT between each lines ?





Reply via email to