Problems with Deployment of Branch 3.0
hey guys i am trying to push this install using command file for some reason my software will not install
CLS
Echo This will uninstall Branch Utility components.
Echo Be sure the new BranchUtils.msi file(s) are in this batch file path.
REM The product code for Branch 3.0
call msiexec.exe /x {30993C1B-4A1E-4B12-960F-53DD10C09578} /passive REM The product code for Branch 3.1.4
call msiexec.exe /x {4F7D91F9-676C-4D59-99D1-D354B99032FB} /passive REM The product code for Branch 4.0.1
call msiexec.exe /x {005BD5EA-7F5E-4D52-8E62-6FB6CCFB323F} /passive REM The product code for Branch 4.0/5.0.1/5.1
call msiexec.exe /x {F0CF4BA2-8F47-43DB-B0BE-28A5002E7097} /passive REM The product code for Branch 5.2
call msiexec.exe /x {3AEF5018-9EE3-4FF3-BCD9-F4207F7A511F} /passive REM The product code for Branch 5.2.1
call msiexec.exe /x {B4A5ACD8-A180-4BE9-BC05-30DA43C93315} /passive REM The product code for IG for 5.1
call msiexec.exe /x {369AD8F9-F6CB-4793-87AB-BF7419A9C782} /passive REM The product code for Branch 6.0
call msiexec.exe /x {3AEF5018-9EE3-4FF3-BCD9-F4207F7A511F} /passive Echo Uninstall is Complete.
Echo Installing the new Branch Suite MSI version...
call msiexec.exe /i BranchSuiteUtils.msi /passive
Echo done!
005BD5EA-7F5E-4D52-8E62-6FB6CCFB323F
Answers (1)
Can you try this..
CLS
Echo This will uninstall Branch Utility components.
Echo Be sure the new BranchUtils.msi file(s) are in this batch file path.
GoTo CheckPreviousVersion01
:CheckPreviousVersion01
Reg Query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{30993C1B-4A1E-4B12-960F-53DD10C09578}"
CLS
If %ErrorLevel%==0 GoTo UninstallPreviousVersion01
GoTo CheckPreviousVersion02
:UninstallPreviousVersion01
REM Uninstalling Branch 3.0
Start /Wait msiexec.exe /x {30993C1B-4A1E-4B12-960F-53DD10C09578} /qb!
:CheckPreviousVersion02
Reg Query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{4F7D91F9-676C-4D59-99D1-D354B99032FB}"
CLS
If %ErrorLevel%==0 GoTo UninstallPreviousVersion02
GoTo CheckPreviousVersion03
:UninstallPreviousVersion02
REM Uninstalling Branch 3.1.4
Start /Wait msiexec.exe /x {4F7D91F9-676C-4D59-99D1-D354B99032FB} /qb!
:CheckPreviousVersion03
Reg Query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{005BD5EA-7F5E-4D52-8E62-6FB6CCFB323F}"
CLS
If %ErrorLevel%==0 GoTo UninstallPreviousVersion03
GoTo CheckPreviousVersion04
:UninstallPreviousVersion03
REM Uninstalling Branch 4.0.1
Start /Wait msiexec.exe /x {005BD5EA-7F5E-4D52-8E62-6FB6CCFB323F} /qb!
:CheckPreviousVersion04
Reg Query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{F0CF4BA2-8F47-43DB-B0BE-28A5002E7097}"
CLS
If %ErrorLevel%==0 GoTo UninstallPreviousVersion04
GoTo CheckPreviousVersion05
:UninstallPreviousVersion04
REM Uninstalling Branch 4.0/5.0.1/5.1
Start /Wait msiexec.exe /x {F0CF4BA2-8F47-43DB-B0BE-28A5002E7097} /qb!
:CheckPreviousVersion05
Reg Query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{3AEF5018-9EE3-4FF3-BCD9-F4207F7A511F}"
CLS
If %ErrorLevel%==0 GoTo UninstallPreviousVersion05
GoTo CheckPreviousVersion06
:UninstallPreviousVersion05
REM Uninstalling Branch 5.2/6.0
Start /Wait msiexec.exe /x {3AEF5018-9EE3-4FF3-BCD9-F4207F7A511F} /qb!
:CheckPreviousVersion06
Reg Query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{B4A5ACD8-A180-4BE9-BC05-30DA43C93315}"
CLS
If %ErrorLevel%==0 GoTo UninstallPreviousVersion06
GoTo CheckPreviousVersion07
:UninstallPreviousVersion06
REM Uninstalling Branch 5.2.1
Start /Wait msiexec.exe /x {B4A5ACD8-A180-4BE9-BC05-30DA43C93315} /qb!
:CheckPreviousVersion07
Reg Query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{369AD8F9-F6CB-4793-87AB-BF7419A9C782}"
CLS
If %ErrorLevel%==0 GoTo UninstallPreviousVersion07
GoTo InstallNewVersion
:UninstallPreviousVersion07
REM Uninstalling Branch 5.1
Start /Wait msiexec.exe /x {369AD8F9-F6CB-4793-87AB-BF7419A9C782} /qb!
:InstallNewVersion
Echo Uninstall is Complete.
Echo Installing the new Branch Suite MSI version...
Start /Wait msiexec.exe /i "%~dp0BranchSuiteUtils.msi" /qb!
Echo done!
Comments:
-
i am not using this as batch file i am using this script as commmand file - brighstarcuit 12 years ago
-
Do you mean .cmd? - jagadeish 12 years ago
-
yes - brighstarcuit 12 years ago
-
You can use the above code in .cmd - jagadeish 12 years ago
-
You will have to add @ECHO OFF in the begining of the script - jagadeish 12 years ago