我发现StackOverflow上列出了类似的问题,但我无法使这些建议的修复工作.请参阅下面的代码部分.我是新来的,我不确定我错过了什么.我试图按照WIX文档中的示例进行操作.谢谢您的帮助.
<Fragment> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLFOLDER" Name="MedusaPerf" /> </Directory> <Directory Id="ProgramMenuFolder"> <Directory Id="ApplicationProgramsFolder" Name="MedusaPerf"/> </Directory> </Directory> </Fragment> <Fragment> <DirectoryRef Id="ApplicationProgramsFolder"> <Component Id="ApplicationShortcut" Guid="*"> <Shortcut Id="ApplicationStartMenuShortcut" Name="MedusaPerf" Description="MedusaPerf multi-query stress test tool." Target="[#MedusaPerfApp.exe]" WorkingDirectory="INSTALLFOLDER"/> <RemoveFolder Id="RemoveProgramFilesFolder" Directory="ProgramFilesFolder" On="uninstall"/> <RemoveFolder Id="RemoveApplicationProgramsFolder" Directory="ApplicationProgramsFolder" On="uninstall"/> <RegistryValue Root="HKCU" Key="Software\Microsoft\MedusaPerf" Name="installed" Type="integer" Value="1" KeyPath="yes"/> </Component> </DirectoryRef> </Fragment>