|
| | |||||||
| Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna |
| | LinkBack | Thread Tools |
| |||
| 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. |
| |||
| 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...[color=blue] >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.[/color] |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Could not install custom action. The object was not found. | JL Gilkey | Microsoft Office | 0 | 12-26-2008 06:50 AM |
| Re: Installshield Wizard DLL Custom Action Failed | Julio | Windows XP | 0 | 04-07-2008 05:50 PM |
| custom action, error 2869, want to create sql express db and init registry entry | rmgalante@galaware.com | Windows Vista | 2 | 09-19-2007 12:13 AM |
| My PC is failing WGA when it didn't before! | Johnathan RUss | Windows Vista | 20 | 08-26-2007 08:10 AM |
| Custom Keyboard action? | Donny | Windows Vista | 2 | 04-11-2007 10:00 AM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |