Try this... the user will see a UAC prompt, same as if the application
was manually launched. There's no way around this, but our users have
never complained.

        <Fragment>
                <CustomAction Id="SetElevatedAppTarget"
Property="WixShellExecTarget" Value="[#ElevatedApp.exe]" />
                <CustomAction Id="LaunchElevatedApp" BinaryKey="WixCA"
DllEntry="WixShellExec" Impersonate="yes" />
                <UI Id="Activation">
                        <Publish Dialog="NitroExitDialog" Control="Finish" 
Event="DoAction"
Value="SetElevatedAppTarget">
                                <![CDATA[NOT Installed]]>
                        </Publish>
                        <Publish Dialog="NitroExitDialog" Control="Finish" 
Event="DoAction"
Value="LaunchElevatedApp">
                                <![CDATA[NOT Installed]]>
                        </Publish>
                </UI>
        </Fragment>
        


On Thu, Jul 8, 2010 at 4:29 PM, Thomas Due <t...@scanvaegt.dk> wrote:
>>> So what is the conclusion? That what I am trying is basically impossible?
>
>> MSI will not launch an elevated process except as a deferred custom
>> action and you can't use those from the UI.
>
> I read that as a "yes".
>
> So, what is my options then? I will of course attempt the solution that 
> Palbinder Sandher suggested, but is that really the only solution?
>
> I have run out of time on the subject for the time being, so I have to resign 
> to the fact that people have to run the application manually on Windows Vista 
> and 7.
> But since I will be returning to the subject, I just want to know If the 
> custom action described in the manual is the only (possibly) way?
>
> In any event, thank you for your time.
>
> Med venlig hilsen / Best regards,
> Thomas Due - Software Developer
> Tel: +45 8678 5500 Fax: +45 8678 5210
> Johann Gutenbergs vej 5-9, Aarhus N, Denmark
> t...@scanvaegt.dk | www.scanvaegt.dk
>
>
> This e-mail and its attachments are intended for the named addressee only and 
> may contain information that is confidential and privileged. Unauthorized use 
> can instigate a claim for damages and constitute a criminal offence. If you 
> received this in error, please contact the sender and delete the material.
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to