Can't seem to get ExecWait MsiExec to work with a variable.
the following works all day ..
ExecWait 'MsiExec /x{64A3A4F4-B792-11D6-A78A-00B0D0170970} /qn'
the following cmd -
ExecWait 'MsiExec /x"$uninst-key" /qn'
generates the following log output ....
MSI (s) (A8:68) [12:12:48:084]: Machine policy value 'Debug' is 0
MSI (s) (A8:68) [12:12:48:084]: ******* RunEngine:
******* Product: {64A3A4F4-B792-11D6-A78A-00B0D0170670}
******* Action:
******* CommandLine: **********
MSI (s) (A8:68) [12:12:48:084]: Machine policy value 'DisableUserInstalls' is 0
MSI (s) (A8:68) [12:12:48:084]: MainEngineThread is returning 1605
MSI (s) (A8:B4) [12:12:48:084]: User policy value 'DisableRollback' is 0
MSI (s) (A8:B4) [12:12:48:084]: Machine policy value 'DisableRollback' is 0
MSI (s) (A8:B4) [12:12:48:084]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (A8:B4) [12:12:48:084]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (A8:B4) [12:12:48:084]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (A8:B4) [12:12:48:084]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2
MSI (s) (A8:B4) [12:12:48:084]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2
MSI (s) (A8:B4) [12:12:48:084]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (A8:B4) [12:12:48:084]: Restoring environment variables
MSI (c) (88:28) [12:12:48:084]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (88:28) [12:12:48:084]: MainEngineThread is returning 1605
=== Verbose logging stopped: 7/4/2016 12:12:48 ===
Any help would be greatly appreciated.
ExecWait 'MsiExec /x "$uninst-key" /qn'
4 posts
Try removing the double quotes around $uninst-key? (provided it doesn't have spaces).
tried that too, didn't work. the docs suggested using the quotes around the variable.
https://blogs.msdn.microsoft.com/cja...windows-vista/ says that 1605 is ERROR_UNKNOWN_PRODUCT.
Use Process Monitor and compare the working and non-working scenarios...
Use Process Monitor and compare the working and non-working scenarios...