![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | SetupIterateCabinet failing from Custom Action .dll I use Visual Studio 2005 to deploy my application. I have a Custom Action .dll that's called during the Install phase. (The entry point is the standard Install( MSIHANDLE ).) I'm installing a .CAB file and am calling SetupIterateCabinet() from this Custom Action .dll and it is returning ERROR_ACCESS_DENIED. Appears as though Custom Action .dll's are not run with the UAC elevated privileges of the .msi file. I tried adding a .manifest to give the .dll elevated privileges, but then Windows XP barks that there is an unrecognized token. I need this .msi file to run under both Windows XP, Windows 2000, and Windows Vista. Because this is a Custom Action .dll there is no way I can wrap the function in a COM object and call it with the CoCreateInstanceAsAdmin() (or whatever it is called). Is there some other method I can use to insure that the Custom Action runs with the appropiate privileges so that the SetupIterateCabinet() call will succeed? Thanks! -Mike. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: SetupIterateCabinet failing from Custom Action .dll Wrong newsgroup. You need to consult your MSDN. "microbert" <microbert@discussions.microsoft.com> wrote in message news:66DB7FE5-5D4B-4C9B-B3EB-DB7B77236191@microsoft.com... >I use Visual Studio 2005 to deploy my application. > > I have a Custom Action .dll that's called during the Install phase. (The > entry point is the standard Install( MSIHANDLE ).) > > I'm installing a .CAB file and am calling SetupIterateCabinet() from this > Custom Action .dll and it is returning ERROR_ACCESS_DENIED. > > Appears as though Custom Action .dll's are not run with the UAC elevated > privileges of the .msi file. > > I tried adding a .manifest to give the .dll elevated privileges, but then > Windows XP barks that there is an unrecognized token. I need this .msi > file > to run under both Windows XP, Windows 2000, and Windows Vista. > > Because this is a Custom Action .dll there is no way I can wrap the > function > in a COM object and call it with the CoCreateInstanceAsAdmin() (or > whatever > it is called). > > Is there some other method I can use to insure that the Custom Action runs > with the appropiate privileges so that the SetupIterateCabinet() call will > succeed? > > Thanks! > > -Mike. |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Setup project Custom Action fails under Vista | .NET General | |||
| !Error 2738. Could not access VZScript run time for custom action | Software | |||
| winrm invoke a custom action | PowerShell | |||
| Custom Keyboard action? | Vista General | |||
| MSI Custom Action DLL does not have administrator rights | Vista General | |||