ICE64: The directory ApplicationProgramsFolder is in the user profile but is not listed in the RemoveFile table
Asked Answered
J

1

8

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>
Jefferson answered 18/6, 2014 at 15:54 Comment(0)
J
8

I had a co-worker look at the code and he found I was not utilizing the ApplicationShortcut component. Adding the following to the Component Group resolved my issue:

<ComponentRef Id="ApplicationShortcut" />
Jefferson answered 19/6, 2014 at 19:11 Comment(1)
I added the line inside <Feature Id="MainApplication"> but it doesn't work.Yokoyokohama

© 2022 - 2024 — McMap. All rights reserved.