I am adding an addendum to my previous post.10.11.3.601 which we were installing is leaving behind a remnant that prevents the next version from installing.
Below is my updated removal script that gets rid of the additional component. Additionally, it was required to force a reboot after removal and before installation of the new version, hence the 1641 return code.
The script will need to be updated for each new version to remove the codemeter software. I highlighted the sections below.
We only allow installation and removal of this product when no user is logged in.
New script for 10.11.3.601:
:: Custom UnInstall Script for ZoomText
:: January 26, 2017
"C:\Program Files (x86)\InstallShield Installation Information\{F7F20305-1476-4421-B909-BB5B90D1F222}\setup.exe" -runfromtemp -l0x0009 -ir -niuninst
::Set log file
set msi_log_file_path="%TEMP%\%~n0_Custom.log"
::Delete the current log file
if exist %msi_log_file_path% del /Q %msi_log_file_path%
echo ========================== %Date% %Time% =========================== >> %msi_log_file_path%
setlocal
set counter=10
:Loop1
if %counter% gtr 0 (
Echo Loops Remaining %counter% >> %msi_log_file_path%
set /A counter = %counter% - 1
ping -n 31 127.0.0.1 >nul
goto :Loop2
)
Echo Key 1 Never Deleted! >> %msi_log_file_path%
Exit /B 1603
:Loop2
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Ai Squared\ZoomText Xtra\10.1\Settings\Reader"
echo EL %errorlevel% >> %msi_log_file_path%
if %ERRORLEVEL% EQU 0 (
goto :Loop1
)
echo Target key 1 deleted. >> %msi_log_file_path%
ping -n 31 127.0.0.1 >nul
set counter=10
MsiExec.exe /x {719F0615-851A-417F-9D33-2855FA2E89D0} /q
:Loop3
if %counter% gtr 0 (
Echo Loops Remaining %counter% >> %msi_log_file_path%
set /A counter = %counter% - 1
ping -n 31 127.0.0.1 >nul
goto :Loop4
)
Echo Key 2 Never Deleted! >> %msi_log_file_path%
Exit /B 1603
:Loop4
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{719F0615-851A-417F-9D33-2855FA2E89D0}"
echo EL %errorlevel% >> %msi_log_file_path%
if %ERRORLEVEL% EQU 0 (
goto :Loop3
)
echo Target key 2 deleted. >> %msi_log_file_path%
ping -n 31 127.0.0.1 >nul
Exit /B 1641
For version 10.11.7.601:
:: Custom UnInstall Script for ZoomText
:: January 26, 2017
"C:\Program Files (x86)\InstallShield Installation Information\{F7F20305-1476-4421-B909-BB5B90D1F222}\setup.exe" -runfromtemp -l0x0009 -ir -niuninst
::Set log file
set msi_log_file_path="%TEMP%\%~n0_Custom.log"
::Delete the current log file
if exist %msi_log_file_path% del /Q %msi_log_file_path%
echo ========================== %Date% %Time% =========================== >> %msi_log_file_path%
setlocal
set counter=10
:Loop1
if %counter% gtr 0 (
Echo Loops Remaining %counter% >> %msi_log_file_path%
set /A counter = %counter% - 1
ping -n 31 127.0.0.1 >nul
goto :Loop2
)
Echo Key 1 Never Deleted! >> %msi_log_file_path%
Exit /B 1603
:Loop2
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F7F20305-1476-4421-B909-BB5B90D1F222}"
echo EL %errorlevel% >> %msi_log_file_path%
if %ERRORLEVEL% EQU 0 (
goto :Loop1
)
echo Target key 1 deleted. >> %msi_log_file_path%
ping -n 31 127.0.0.1 >nul
set counter=10
MsiExec.exe /x {3C40446D-C306-4D9A-8AD2-F9D07E7B781B} /q
:Loop3
if %counter% gtr 0 (
Echo Loops Remaining %counter% >> %msi_log_file_path%
set /A counter = %counter% - 1
ping -n 31 127.0.0.1 >nul
goto :Loop4
)
Echo Key 2 Never Deleted! >> %msi_log_file_path%
Exit /B 1603
:Loop4
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3C40446D-C306-4D9A-8AD2-F9D07E7B781B}"
echo EL %errorlevel% >> %msi_log_file_path%
if %ERRORLEVEL% EQU 0 (
goto :Loop3
)
echo Target key 2 deleted. >> %msi_log_file_path%
ping -n 300 127.0.0.1 >nul
Exit /B 1641