Prev Previous Post   Next Post Next

SetupIterateCabinet failing from Custom Action .dll

Posted: 10-27-2006, 02:46 AM
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.
Reply With Quote

Responses to "SetupIterateCabinet failing from Custom Action .dll"

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create custom profiles for windows Movie Maker(with custom bitrate, FPS, resolution) mistral Windows XP Movie Maker 2 01-05-2007 05:50 PM
MSI Custom Action DLL does not have administrator rights Robert Tonsing Windows Vista 2 06-14-2006 06:32 PM
Custom Views & Custom Forms in Public Folders Lisa Kansas City Mac Office Power Point 1 09-16-2005 11:24 PM
Photo Story 3 for Windows -- Error 28000.Generic custom action Alon Windows XP Photos 6 11-03-2004 06:42 PM
CS quit suddenly in the middle of making Action sets Action sets, Ramón_G_Castañeda@adobeforums.com Mac Photoshop 3 05-02-2004 07:06 AM