Old 18th July 2016, 02:52   #1
superted
Junior Member
 
Join Date: Dec 2015
Posts: 2
ExecWait 'MsiExec /x "$uninst-key" /qn'

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.
superted is offline   Reply With Quote
Old 18th July 2016, 06:31   #2
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 907
Try removing the double quotes around $uninst-key? (provided it doesn't have spaces).

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 18th July 2016, 14:57   #3
superted
Junior Member
 
Join Date: Dec 2015
Posts: 2
tried that too, didn't work. the docs suggested using the quotes around the variable.
superted is offline   Reply With Quote
Old 18th July 2016, 15:32   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,358
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...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump