Error 1720 & Info 1402 System Error 6
Hi,
I have added a MST to a vendor MSI which amongst other things needs to remove a Component which the MSI doesn't. This requires a process to be stopped during the uninstall, I've added the VB below as a CustomAction
On Error Resume Next
strComputer="."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = 'DocGen7.exe'" )
For Each objProcess in colProcess
objProcess.Terminate()
Next
I now get the following error during uninstallation:
MSI (s) (18:E4) [13:16:41:653]: Product: M3 Land and Property Live -- Error 1720.There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action script error , : Line , Column ,
Error 1720.There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action script error , : Line , Column ,
Action ended 13:16:41: InstallExecute. Return value 3.
Info 1402.Could not open key: UNKNOWN\Products\D355D98A04E09164785BD81D531CD01E\Usage. System error 6. Verify that you have sufficient access to that key, or contact your support personnel.
The process is stopped as expected but the install then fails and rolls back. My MST works without this CustomAction if I manually stop the process. I'm running as local admin. Any ideas appreciated.
I have added a MST to a vendor MSI which amongst other things needs to remove a Component which the MSI doesn't. This requires a process to be stopped during the uninstall, I've added the VB below as a CustomAction
On Error Resume Next
strComputer="."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = 'DocGen7.exe'" )
For Each objProcess in colProcess
objProcess.Terminate()
Next
I now get the following error during uninstallation:
MSI (s) (18:E4) [13:16:41:653]: Product: M3 Land and Property Live -- Error 1720.There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action script error , : Line , Column ,
Error 1720.There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action script error , : Line , Column ,
Action ended 13:16:41: InstallExecute. Return value 3.
Info 1402.Could not open key: UNKNOWN\Products\D355D98A04E09164785BD81D531CD01E\Usage. System error 6. Verify that you have sufficient access to that key, or contact your support personnel.
The process is stopped as expected but the install then fails and rolls back. My MST works without this CustomAction if I manually stop the process. I'm running as local admin. Any ideas appreciated.
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Posted by:
tmpamlrs
14 years ago
Hi,
to answer your questions first. I tried Deferring the CustomAction as well as not, both the same result. Not sure how to set it to run in the system context, is this down to the InstallExecuteSequence?
I would like to get my original method working but what I've done as a workaround is change the CA to an Asynchronous exe and used taskkill. Which does work!
to answer your questions first. I tried Deferring the CustomAction as well as not, both the same result. Not sure how to set it to run in the system context, is this down to the InstallExecuteSequence?
I would like to get my original method working but what I've done as a workaround is change the CA to an Asynchronous exe and used taskkill. Which does work!
Posted by:
anonymous_9363
14 years ago
In order to run outside the logged-in user's context, CAs *must* be in the deferred sequence. You set the context in your authoring tool's UI. If you're editing the tables directly with InstEdit/Orca, then refer to this MSDN article for details.
Posted by:
vanthana
12 years ago
Posted by:
anonymous_9363
12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.