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.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Is your CA in the deferred sequence and is it set to execute in System context?
Answered 10/28/2010 by: VBScab
Red Belt

Please log in to comment
0
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!
Answered 10/28/2010 by: tmpamlrs
Senior Yellow Belt

Please log in to comment
0
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.
Answered 10/29/2010 by: VBScab
Red Belt

Please log in to comment
0
Hi,
I have application i.e. legacy application, first i did repackager for .irp file generation. after .irp file generation, created .ism and .msi file . I made change in the registry data and build application. finally i got the .exe file. now i install the application on test machine i am getting following error. can any one pls help me on this. thanks in advance.

Error Message:Error 1402. Coud not open key: HKEY_LOCAL_MACHINE32\Software\Classes\CLSID\{8802116A-1E30-4134-A02A-18B9114500EBF}\..\ProxyStubClsid32. Verify that you have sufficient access to that key or contact your support personnel
Answered 01/03/2012 by: vanthana
Yellow Belt

Please log in to comment
0
Verify that you have sufficient access to that key What is is it about the message that you don't understand?
Answered 01/04/2012 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity