Help with ICE64 please

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with ICE64 please

Paul McLaughlin
Hello.
 
Wow, I'm learning that WiX is cool, but ICE is very confusing.  I would have to think that with WiX's simplicity, it would attract a significant population that does not have Windows Installer experience (self included!) that probably makes these ICE errors especially bewildering.
 
Anyway, the following WiX XML gives the following error with light.exe:
 
error LGHT0204 : ICE64: The directory MyCompanyName is in the user profile but is not listed in the RemoveFile table.
 
 
So, what WiX XML do I need to put it in the RemoveFile table and why?
 
 
 
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
 <Product Id="9D9B2995-C2AD-4df0-AF5C-003066CABA43" Name="Product Name" Language="1033" Version="1.0.0.0" Manufacturer="Manufacturer Name" UpgradeCode="F735EEA3-3421-4324-A907-BA01F5AB4681">
  <Package Id="FDDFF53B-8B84-4083-A04E-4BCA53BE7A90" Description="This is a description." Comments="We need a better description." InstallerVersion="200" Compressed="yes" />
  <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
  <Directory Id="TARGETDIR" Name="SourceDir">
   <Directory Id="DesktopFolder" Name="TheDesktopFolder">
    <Directory Id="MyCompanyName" Name="CompanyXYZ">
     <Directory Id="INSTALLDIR" Name="AppName">
      <Component Id="CompProgram" Guid="472DADD7-BA14-4733-9C90-B7B973BF3C1D" >
       <RegistryKey Root="HKCU" Key="Software\CompanyXYZ\AppName">
        <RegistryValue Value="Why ICE38, why?" Type="string" KeyPath="yes" />
       </RegistryKey>
       
       <File Id="readme" Name="readme.txt" DiskId="1" Source="readme.txt" Vital="yes" />
       <RemoveFolder Id='INSTALLDIR' On='uninstall' />
      </Component>
     </Directory>
    </Directory>
   </Directory>
  </Directory>
  <Feature Id="MyFeature" Title="Install Product Feature" Level="1">
   <ComponentRef Id="CompProgram" />
  </Feature>
 </Product>
</Wix>

 
Thank you very much for your insight.
 


Climb to the top of the charts! Play the word scramble challenge with star power. Play now!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|

Re: Help with ICE64 please

Alexander Shevchuk

Your product is installed into %DesktopFolder%\CompanyXYZ\AppName.  On uninstall <RemoveFolder Id=”INTALLDIR”…> instructs to remove the AppName folder, but who will remove the CompanyXYZ folder?  You can safely add to the main component which will be always installed with your app <RemoveFolder Id=”MyCompanyName”…> element to remove the CompanyXYZ folder because it will be removed only if it is empty (think of the situation when you have another product installed at %DesktopFolder%\CompanyXYZ\AppName2, for example).

 

Hope, this helps.

 

Alex

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Paul McLaughlin
Sent: Friday, February 01, 2008 4:22 PM
To: [hidden email]
Subject: [WiX-users] Help with ICE64 please

 

Hello.
 
Wow, I'm learning that WiX is cool, but ICE is very confusing.  I would have to think that with WiX's simplicity, it would attract a significant population that does not have Windows Installer experience (self included!) that probably makes these ICE errors especially bewildering.
 
Anyway, the following WiX XML gives the following error with light.exe:
 
error LGHT0204 : ICE64: The directory MyCompanyName is in the user profile but is not listed in the RemoveFile table.
 
 
So, what WiX XML do I need to put it in the RemoveFile table and why?
 
 
 
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
 <Product Id="9D9B2995-C2AD-4df0-AF5C-003066CABA43" Name="Product Name" Language="1033" Version="1.0.0.0" Manufacturer="Manufacturer Name" UpgradeCode="F735EEA3-3421-4324-A907-BA01F5AB4681">
  <Package Id="FDDFF53B-8B84-4083-A04E-4BCA53BE7A90" Description="This is a description." Comments="We need a better description." InstallerVersion="200" Compressed="yes" />
  <Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
  <Directory Id="TARGETDIR" Name="SourceDir">
   <Directory Id="DesktopFolder" Name="TheDesktopFolder">
    <Directory Id="MyCompanyName" Name="CompanyXYZ">
     <Directory Id="INSTALLDIR" Name="AppName">
      <Component Id="CompProgram" Guid="472DADD7-BA14-4733-9C90-B7B973BF3C1D" >
       <RegistryKey Root="HKCU" Key="Software\CompanyXYZ\AppName">
        <RegistryValue Value="Why ICE38, why?" Type="string" KeyPath="yes" />
       </RegistryKey>
       
       <File Id="readme" Name="readme.txt" DiskId="1" Source="readme.txt" Vital="yes" />
       <RemoveFolder Id='INSTALLDIR' On='uninstall' />
      </Component>
     </Directory>
    </Directory>
   </Directory>
  </Directory>
  <Feature Id="MyFeature" Title="Install Product Feature" Level="1">
   <ComponentRef Id="CompProgram" />
  </Feature>
 </Product>
</Wix>

 
Thank you very much for your insight.
 


Climb to the top of the charts! Play the word scramble challenge with star power. Play now!


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users