]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Set an icon for the MSI package's entry in Add/Remove Programs.
authorSimon Tatham <anakin@pobox.com>
Sun, 20 Mar 2016 16:01:36 +0000 (16:01 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 20 Mar 2016 16:01:36 +0000 (16:01 +0000)
It would be nicer if we could also make this show up as the icon for
the .msi file itself when viewed in Explorer, but apparently nothing
can change that. But at least this still gives us _some_ use for the
cardboard-box icon :-)

windows/installer.wxs

index 7be97778ad69eaac925bb0697520fe320c091841..175de46dd221f7f61abc0593fbdf22f54bcc9cb3 100644 (file)
     <WixVariable Id="WixUIDialogBmp" Value="msidialog.bmp" />
     <WixVariable Id="WixUIBannerBmp" Value="msibanner.bmp" />
 
+    <!--
+        Set the icon that will show up in Add/Remove Programs.
+
+        http://www.codeproject.com/Articles/43564/WiX-Tricks says that
+        for some weird reason the Id of this icon has to end in .exe.
+    -->
+    <Icon Id="installericon.exe" SourceFile="puttyins.ico" />
+    <Property Id="ARPPRODUCTICON" Value="installericon.exe" />
+
   </Product>
 </Wix>