Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change icon in UAC prompt of signed installer (WiX)?

I'm creating an msi package with WiX 3.5 (VS2010) and everything is fine, except that I don't know how to set my icon in UAC prompt. I already have a signing certificate and know how to sign with "signtool.exe" to get the publisher information and app description on UAC prompt, but I can't change the default icon and can't find any info on how to do this.

My WiX script contains lines:

<Icon Id="MyApp.ico" SourceFile="$(var.SolutionDir)Libraries\Images\MyApp.ico" />
<Property Id="ARPPRODUCTICON" Value="MyApp.ico" />

but I guess this works only for Add/Remove programs menu.

Here is how my UAC looks now (sorry for Russian):UAC prompt with default icon

like image 818
ptkvsk Avatar asked Jun 15 '12 15:06

ptkvsk


1 Answers

MSI files don't have an icon like an executable does, so you can't customize the icon on this dialog. What you're seeing is the icon for the calling process (I think) which is msiexec.exe and is used to execute MSI files.

like image 65
saschabeaumont Avatar answered Sep 24 '22 17:09

saschabeaumont