我正在使用 Inno Setup 为我的应用程序创建安装程序。使用 [图标] 在 Windows 8 开始屏幕上创建快捷方式可以正常工作。但现在我想使用 VisualElementsManifest 自定义图块。
我相信我遵循了这里的所有步骤:“如何自定义桌面应用程序的开始屏幕磁贴” 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]
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";
编译安装程序并运行它.. 不走运。