学習目的で、WiX v3.7 を使用して Windows アプリケーションのインストーラー プロジェクトを作成しようとしています (VS2012 にはセットアップ プロジェクトと展開プロジェクトが含まれていないため)。Wix ツールセットは VS に統合されており、新しい WiX シングル インストーラー セットアップ プロジェクトを作成しています。インストーラーは常に正常にコンパイルされ (アイコン拡張子の警告を除く)、完璧に動作し、デスクトップ ショートカットを配置する必要がありますが、Windows 7 Professional x64 Service Pack 1 で適切なスタート メニュー ショートカットを配置できません。Web を検索して試しました。私が見るほとんどすべてですが、これまでのところ成功していません。product.wxs ファイルは次のとおりで、"my_guid" 文字列はプロジェクト内の適切な GUIDS に置き換えられます。明らかにポイントが欠けていますが、どこにあるのかわかりません。レジストリ キーも作成されないため、何らかの理由で最後のフラグメントが実行されない可能性があります。
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="my_guid" Name="WixSingleSetupExample" Language="1055" Version="1.0.0.0" Manufacturer="Can Yucel" UpgradeCode="my_guid">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate />
<Feature Id="ProductFeature" Title="WixSingleSetupExample" Level="1">
<ComponentGroupRef Id="ProductComponents" />
<ComponentRef Id="ApplicationShortcut" />
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="DesktopFolder" Name="Desktop" />
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="WixSingleSetup"/>
</Directory>
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="WixSingleSetupExample" />
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
<Component Id="ProductTextFile">
<File Source="blankText.txt" KeyPath="yes">
<Shortcut Id="desktopShortcut" Advertise="yes" Directory="DesktopFolder" Name="WixSingleSetup Help" WorkingDirectory="INSTALLFOLDER" Icon="icon1.txt" IconIndex="0">
<Icon Id="icon1.txt" SourceFile="blankText.txt"/>
</Shortcut>
</File>
</Component>
</ComponentGroup>
</Fragment>
<Fragment>
<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="my_guid">
<Shortcut Id="ApplicationStartMenuShortcut"
Name="WixSingleSetup Help"
Description="Setup Example"
Target="blankText.txt"
WorkingDirectory="INSTALLFOLDER"
Icon="icon2.txt"
IconIndex="0">
<Icon Id="icon2.txt" SourceFile="blankText.txt"/>
</Shortcut>
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software/Microsoft/WixSingleSetup" Name="installed" Type="integer" Value="1" KeyPath="yes" />
</Component>
</DirectoryRef>
</Fragment>
</Wix>