Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 01-01-2007, 10:04 PM
microbert
Newsgroup Contributor
 
Posts: n/a
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 01-01-2007, 10:04 PM
  #2 (permalink)  
Old 01-01-2007, 10:05 PM
DMB
Newsgroup Contributor
 
Posts: n/a
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]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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

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


Similar Threads
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?

All times are GMT -8. The time now is 06:14 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0