Hi folks,

I know this issue is frequently asked and discussed, however in my case I
didn't manage to find the solution even after a lot of googling. The problem
is this: I have a Custom Action DLL that modifies keys under HKLM and it is
run during uninstall.

It's been defined as a deferred action with the NoImpersonate bit as
recommended:

<CustomAction Id='MyAction' FileKey='customdll' DllEntry='MyUninstallFunc'
Return='asyncNoWait' Impersonate='no'/>

and it is invoked in the InstallExecuteSequence as recommended:

<InstallExecuteSequence>

<Custom Action='MyAction' After='InstallInitialize'>Installed</Custom>

</InstallExecuteSequence>
Inspite of this the uninstall custom action fails, and the code that
attempts to access the registry gets error 5 (access denied). It only works
if I run "msiexec /x setup.msi" inside an Administrator command prompt.

Please let me know what else I need to do/look at for fixing this.

Regards,
Charu
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to