Set PRODUCT_CODE={5FB7E3F6-F079-46F4-871F-C6ATB6AE7CE8}
Set REG_KEY="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%PRODUCT_CODE%"
reg query %REG_KEY% /v DisplayName > nul 2>&1
If %ERRORLEVEL% == 0 (
%windir%\system32\msiexec.exe /x %PRODUCT_CODE% /qb
Echo Uninstall called for app with product code: %PRODUCT_CODE%
) ELSE (
Echo App with Product code %PRODUCT_CODE% is NOT INSTALLED
)
|