Hi Rob,

I have the same experience with Repair and Remove buttons.
But I think it is due to MsiRunningElevated property.

If you check the logs you will see that during first installation
this property is set after you confirm the elevation prompt (from
the server side - 'MSI (S)' is in the beginning of the line).
But when you check the uninstallation log you will see that the
MsiRunningElevated property is set early on the client side ( 'MSI
-(C)' ) even before displaying the PrepareDlg dialog.

I think it has something to do with the 'Managed Installation' term.
see point #4 in
http://msdn2.microsoft.com/en-us/library/aa369519.aspx

Regards

Stefan

Rob Hamflett wrote:
> Hopefully I'm just being stupid and have missed something obvious, but I'm 
> having problems with 
> decorating a button with the Shield icon (for Vista UAC).  I have 
> [EMAIL PROTECTED]"elevated", and on my final "Install" button I have 
> [EMAIL PROTECTED]"yes".  This works.  I have the same thing on my "Repair" 
> and "Remove" 
> buttons but they don't show the shield icon.  Is there something I've missed? 
>  I've posted the code 
> below in case it helps.
> 
> This shows the shield graphic:
> <Control Id="Install" Type="PushButton" X="$(var.VerifyReadyDlg_Install_X)" 
> Y="243" 
> Width="$(var.VerifyReadyDlg_Install_Width)" Height="17" Default="yes" 
> Text="[ButtonText_Install]" 
> ElevationShield="yes">
>    <Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 
> 1]]></Publish>
>    <Publish Event="SpawnDialog" 
> Value="OutOfRbDiskDlg"><![CDATA[OutOfDiskSpace = 1 AND 
> OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT 
> PROMPTROLLBACKCOST)]]></Publish>
>    <Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace = 1 AND 
> OutOfNoRbDiskSpace = 0 
> AND PROMPTROLLBACKCOST="D"]]></Publish>
>    <Publish Event="EnableRollback" Value="False"><![CDATA[OutOfDiskSpace = 1 
> AND OutOfNoRbDiskSpace 
> = 0 AND PROMPTROLLBACKCOST="D"]]></Publish>
>    <Publish Event="SpawnDialog" Value="OutOfDiskDlg"><![CDATA[(OutOfDiskSpace 
> = 1 AND 
> OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND 
> PROMPTROLLBACKCOST="F")]]></Publish>
> </Control>
> 
> This doesn't:
> <Control Id="Repair" Type="PushButton" X="236" Y="243" Width="56" Height="17" 
> Default="yes" 
> Text="[ButtonText_Repair]" ElevationShield="yes">
>    <Publish Event="ReinstallMode" Value="ecmus"><![CDATA[OutOfDiskSpace <> 
> 1]]></Publish>
>    <Publish Event="Reinstall" Value="All"><![CDATA[OutOfDiskSpace <> 
> 1]]></Publish>
>    <Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace <> 
> 1]]></Publish>
>    <Publish Event="SpawnDialog" 
> Value="OutOfRbDiskDlg"><![CDATA[OutOfDiskSpace = 1 AND 
> OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT 
> PROMPTROLLBACKCOST)]]></Publish>
>    <Publish Event="EndDialog" Value="Return"><![CDATA[OutOfDiskSpace = 1 AND 
> OutOfNoRbDiskSpace = 0 
> AND PROMPTROLLBACKCOST="D"]]></Publish>
>    <Publish Event="EnableRollback" Value="False"><![CDATA[OutOfDiskSpace = 1 
> AND OutOfNoRbDiskSpace 
> = 0 AND PROMPTROLLBACKCOST="D"]]></Publish>
>    <Publish Event="SpawnDialog" Value="OutOfDiskDlg"><![CDATA[(OutOfDiskSpace 
> = 1 AND 
> OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND 
> PROMPTROLLBACKCOST="F")]]></Publish>
> </Control>
> 
> 
> Rob
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> WiX-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
Stefan Pavlik | [EMAIL PROTECTED]
Whitestein Technologies s.r.o. | www.whitestein.com
Panenska 28 | 811 03 Bratislava | Slovak Republic
Main +421 2 5443-5502 | Direct +421 2 5930-0735

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to