I have found similar issues listed on StackOverflow but I've not been able to get those suggested fixes to work. Please see the code section below. I'm new at this and I'm not sure what I'm missing. I was trying to follow the examples on in the WIX documentation. Thank you for your help.
<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>
<Feature Id="MainApplication">
but it doesn't work. – Yokoyokohama