Update:  Action fails under Vista, succeeds under Windows 7...

On Fri, Mar 19, 2010 at 12:40 PM, Stryder Crown <stryde...@gmail.com> wrote:

> and as a follow up on this:
>
> Do all managed custom actions require elevation under Vista?  I have one
> defined as
> <CustomAction Id="MyCA"
>                  BinaryKey="CustomActions.dll"
>                  DllEntry="MyExampleCA"
>                  Execute="immediate"
>                  Return="check"
>                  HideTarget="no"
>                  Impersonate="yes" />
>
> And it does absolutely nada under vista with UAC turned on.
>
> On Fri, Mar 19, 2010 at 11:04 AM, Stryder Crown <stryde...@gmail.com>wrote:
>
>> Getting all three to work together isn't...well, working.  Hoping somebody
>> might have a suggestion as to how this could work better...
>>
>> I've got a complete handle on the actual service installation and start up
>> (and tear down) and can even have the user enter account information to run
>> the service as via an install dialog.
>>
>> But, if the account information isn't correct, when the service is
>> installed (and started) I get the 'insufficient privileges' dialog box with
>> only 'retry' and 'cancel' buttons.  The user has no opportunity (at that
>> point) to re-enter the account information (user name and password).
>>
>> So, I thought I'd be clever and execute a custom action that uses
>> SSPI/Logon to validate the users information at the installer dialog, before
>> the service is installed.  And this works too!  Except under UAC conditions
>> (Vista/windows 7).  If I have UAC disabled, I have no problems.  So, this
>> means I have to elevate the custom action...but since we're talking UAC, I
>> have to defer it to InstallInitialize/InstallFinalize...At which point
>> there's no dialog entry available.  And at that point, I can't even get a
>> dialog going from the Custom Action (via winforms/WPF) from which I would've
>> set the verified and set the Properties being used by the ServiceInstall
>> element.
>>
>> So, any ideas?  Did any of that make sense?  Anybody else out there try to
>> tackle User Authentication/Impersonation during an install?  I'm about to
>> see if I can't push the custom action back to the end of the installation
>> process, and update the service at that point, but I'm not feeling too
>> confident (or proud) of this sort of hackery.
>>
>> Stryder
>>
>
>
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to