2014-11-02 62 views
6

根據這一 http://wix.tramontana.co.hu/tutorial/user-interface/ui-wizardry
維克斯* .msi安裝圖標和標識

我已經創建了下面的代碼

<?xml version="1.0" encoding="utf-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 
    <Product Id="*" Name="Installer" Language="1033" Version="0.0.1.4" Manufacturer="my" UpgradeCode="*"> 
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> 
    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> 
    <MediaTemplate EmbedCab="yes" /> 
    <!--icon for Add/Remove Programs--> 
    <Icon Id="WINDOWS.ico" SourceFile="..\WINDOWS.ico" /> 
    <Property Id="ARPPRODUCTICON" Value="WINDOWS.ico" /> 
    <Feature Id="ProductFeature" Title="Installer" Level="1" Description="The complete installation" Display="expand" ConfigurableDirectory="INSTALLFOLDER"> 
     <ComponentRef Id="ProgramMenuDir" /> 
     <ComponentGroupRef Id="ExportReleaseComponentGroup" />   
    </Feature> 
    <!--Internal tools--> 
    <Feature Id="Internal_Calibration_tools" Title="Internal Calibration tools" Level="1000" Description="Internal tools"> 
     <ComponentGroupRef Id="group_Internal_Calibration_tools" /> 
    </Feature> 
    <UIRef Id="WixUI_Mondo"></UIRef> 
    <UIRef Id="WixUI_ErrorProgressText" /> 
    <WixVariable Id="WixUIExclamationIco" Value="..\Import\WINDOWS_32px.ico" /> 
    <WixVariable Id="WixUIInfoIco" Value="..\Import\WINDOWS_32px.ico" /> 
    <WixVariable Id="WixUINewIco" Value="..\Import\WINDOWS_16px.ico" /> 
    <WixVariable Id="WixUIUpIco" Value="..\Import\WINDOWS_16px.ico" /> 
    </Product> 
    <Fragment> 
    <Directory Id="TARGETDIR" Name="SourceDir"> 
     <Directory Id="ProgramFiles64Folder"> 

但我仍然無法看到的圖標改變。
enter image description here

enter image description here


在引導一切正常,所有的圖標發生了變化。

回答

3

如果您想要更改頂部橫幅圖像,您需要創建一個493×58位圖作爲對話標題和文本的背景層。

所以在產品元素加入這一行:

<WixVariable Id="WixUIBannerBmp" Value="$(var.ImagesDir)\[YOUR BITMAP HERE].bmp" /> 

你會發現你需要更改默認的UI維克斯here