我使用Inno安裝程序爲我的應用程序創建安裝程序。 使用[圖標]在windows 8上創建快捷方式工作正常。 但是現在我想使用VisualElementsManifest來自定義拼貼。.VisualElementsManifest.xml使用Inno Setup忽略開始屏幕瓦片
我相信我跟所有的步驟在這裏:「如何自定義開始屏幕像素塊的桌面應用程序」 http://msdn.microsoft.com/en-us/library/windows/apps/dn393983.aspx#create_the_customization_xml_file
然而,當我編譯我的安裝程序並運行它,在VisualElementsManifest被忽略。 該圖塊顯示在啓動屏幕上,並且帶有Inno Setup iss文件(IconFilename)中定義的常規圖標。採取
按照下列步驟爲MyApp.exe中創建自定義瓷磚:
<Application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<VisualElements
BackgroundColor="#E82C2A"
ShowNameOnSquare150x150Logo="off"
ForegroundText="light"
Square150x150Logo="logo.MyApp.150x150.png"
Square70x70Logo="logo.MyApp.70x70.png"/>
</Application>
文件在同一目錄MyApp.exe將保存爲MyApp.visualelementsmanifest.xml。
配置Inno Setup的:
[Setup]
AppName=MyApp
AppVersion=0.1
DefaultDirName={pf}\MyApp
SetupIconFile=MyApp.ico
[Files]
Source: "MyApp.exe"; DestDir: "{app}"
Source: "MyApp.exe.manifest"; DestDir: "{app}"
Source: "MyApp.ico"; DestDir: "{app}"
Source: "logo.MyApp.150x150.png"; DestDir: "{app}"
Source: "logo.MyApp.70x70.png"; DestDir: "{app}"
Source: "MyApp.visualelementsmanifest.xml"; DestDir: "{app}"
[Icons]
Name: "{group}\appfolder\MyApp"; Filename: "{app}\MyApp.exe";
Name: "{commonprograms}\MyApp"; Filename: "{app}\MyApp.exe";
Name: "{commondesktop}\MyApp"; Filename: "{app}\MyApp.exe";
編譯並運行安裝程序..沒有運氣。
所以我注意到;)tnx –
它也適用於我。當然,圖像僅顯示在*開始*屏幕上。不在*應用*之一上。從這種風格你只會看到'BackgroundColor'屬性,而在* Apps *屏幕上只會看到更多內容。如果將應用程序固定到* Start *屏幕,則應該看到圖像。如果沒有,您提供了錯誤的圖像... – TLama