locked
Problem while registering assembly using custom actions RRS feed

  • Question

  • Hello all:

    I have an installer that calls a merge module with a custom action. In customaction, based on certain criteria, it register and install some files in the GAC.

    It works fine on XP and earlier versions but on vista, user access control, does not let it  proceed and it fails while registering my assembly with an error that says "Access to the registry key HKEY_CLASSES_ROOT/Record is denied". If I look at the stack it fails at Microsoft.Win32.RegistryKey.CreateSubkey method. I use System.Runtime.InteropServices.RegistrationServices.registerassembly method to register my assembly and that in tunrs calls this Microsfot.win32.registrykey.createsubkey.

    I f I turn off user account control everything works fine, I understand that this is what is intended in vista but I am not sure how to make my custom action work around this problem.

    Can some put some light on this issue?

    Regards,

    Vivek Vishist

    Thursday, November 2, 2006 6:31 PM

All replies