Hi,

For information, my WSX File is generated by the build of my JavaFX application.

I just have then to customize this WSX file : what was made.

"I thought WiX reported an error for that, maybe it's not fatal"

For me, I have no error reported by WIX and I confirm that the cleanup is 
correctly applied during the uninstall of my application.

"the problem is that the cleanup component is not in a feature therefore 
nothing about the component will be used"

I added the cleanup component in the feature : is it correct ?

     <DirectoryRef Id="APPLICATIONFOLDER">    
                <Directory Id="MyFirstSubDir" Name="app">
                                <Directory Id="MySecondSubDir" Name="resources" 
/>
                        </Directory>
         
            <Component Id="CleanupMainApplicationFolder" Guid="*" Win64="yes">
                <RegistryValue Root="HKLM"
                                   Key="SOFTWARE\IBACK\MyApp"
                                   Name="Path" Type="string" 
Value="[APPLICATIONFOLDER]"
                                   KeyPath="yes" />
                <!-- We need to use APPLICATIONFOLDER variable here or 
RemoveFolderEx
                     will not remove on "install". But only if WiX 3.6 is used. 
-->
                     
                  <util:RemoveFolderEx On="uninstall" 
Property="APPLICATIONFOLDER" />            
            </Component>
 
           <Component Id="MyFileId" Guid="2C4E4CD9-4635-42B6-A88A-099E952B95E8" 
Win64="yes">
                 <File Id="MyFileId" Name="_dt.xsl" 
Source="app\resources\_dt.xsl" KeyPath="yes" Hidden="yes" />
            </Component>
 
            <Component Id="MyFileCopyId" 
Guid="5fae2556-299f-44dc-af2a-9afa3948e8a2" Win64="yes">
                <CopyFile Id="MyFileCopyId" FileId="MyFileId" 
DestinationDirectory="APPLICATIONFOLDER" /> 
                <RemoveFile Id="MyFileRemoveId" Name="_dt.xsl" On="install" 
Directory="MySecondSubDir" />
            </Component>
        </DirectoryRef>        
            
        <Feature Id="MyFeature">
                <ComponentRef Id="CleanupMainApplicationFolder" />
                <ComponentRef Id="MyFileId" />
                <ComponentRef Id="MyFileCopyId" />
        </Feature>


The removeFile is always not ok !

Fabrice


-----Message d'origine-----
De : Phil Wilson [mailto:phildgwil...@gmail.com] 
Envoyé : jeudi 9 octobre 2014 16:59
À : General discussion about the WiX toolset.
Objet : Re: [WiX-users] Problem with <removeFile> in my WXS configuration file !

I'll repeat myself - the problem is that the cleanup component is not in a 
feature therefore nothing about the component will be used. When I build that 
source I see an ICE21 error that tells you exactly that problem.
---------------
Phil Wilson


On Wed, Oct 8, 2014 at 11:36 PM, Fabrice MAUPIN <fmau...@iback.fr> wrote:
> " Does that WiX build ok?"
>
> Yes.
>
> The problem is the remove of file which do not work.
>
> Any ideas ?
>
>
> -----Message d'origine-----
> De : Phil Wilson [mailto:phildgwil...@gmail.com] Envoyé : mercredi 8 
> octobre 2014 17:19 À : General discussion about the WiX toolset.
> Objet : Re: [WiX-users] Problem with <removeFile> in my WXS configuration 
> file !
>
> Does that WiX build ok? It looks like your cleanup component is not actually 
> in a feature, it's not in MyFeature, so it won't be used. I thought WiX 
> reported an error for that, maybe it's not fatal.
> ---------------
> Phil Wilson
>
>
> On Wed, Oct 8, 2014 at 7:28 AM, Fabrice MAUPIN <fmau...@iback.fr> wrote:
>> Hello everybody,
>>
>>
>>
>> During the install of my application (Windows 7 Pro x64)  I would like :
>>
>>
>>
>> ** copy a file in the installation directory
>>
>> ** remove a file from a subdirectory
>>
>>
>>
>> It's ok for the copy of the file - no problem.
>>
>>
>>
>> On the other hand, the remove of a file do not work.
>>
>>
>>
>> This is my WXS file :
>>
>>
>>
>> <?xml version="1.0" encoding="utf-8"?>
>>
>> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
>>
>>      xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>
>>
>>     <Product Id="4bfe096a-c739-4a71-89e5-4f18444e95e4" Name="MyApp"
>>
>>              Language="1033" Version="0.0.9"
>>
>>              Manufacturer="XXXX"
>>
>>              UpgradeCode="c41ccffc-7dc9-49a3-ae7d-4254919a1bde">
>>
>>         <Package Description="deploy MyApp" Comments="None"
>>
>>                  InstallerVersion="200" Compressed="yes"
>>
>>                  InstallScope="perMachine" Platform="x64"/>
>>
>>         <Media Id="1" Cabinet="simple.cab" EmbedCab="yes" />
>>
>>
>>
>>         <!-- We use RemoveFolderEx to ensure application folder is 
>> fully
>>
>>              removed on uninstall. Including files created outside of 
>> MSI
>>
>>              after application had been installed (e.g. on AU or user 
>> state).
>>
>>
>>
>>              Hovewer, RemoveFolderEx is only available in WiX 3.6,
>>
>>              we will comment it out if we running older WiX.
>>
>>
>>
>>              RemoveFolderEx requires that we "remember" the path for 
>> uninstall.
>>
>>              Read the path value and set the APPLICATIONFOLDER 
>> property with the value.
>>
>>         -->
>>
>>         <Property Id="APPLICATIONFOLDER">
>>
>>             <RegistrySearch Key="SOFTWARE\XXXX\MyApp"
>>
>>                             Root="HKLM" Type="raw"
>>
>>                             Id="APPLICATIONFOLDER_REGSEARCH"
>> Name="Path" />
>>
>>         </Property>
>>
>>
>>
>>         <DirectoryRef Id="APPLICATIONFOLDER">
>>
>>              <Directory Id="MyFirstSubDir" Name="app">
>>
>>                            <Directory Id="MySecondSubDir" Name="resources"
>> />
>>
>>                     </Directory>
>>
>>
>>
>>             <Component Id="CleanupMainApplicationFolder" Guid="*"
>> Win64="yes">
>>
>>                 <RegistryValue Root="HKLM"
>>
>>                                    Key="SOFTWARE\XXXX\MyApp"
>>
>>                                    Name="Path" Type="string"
>> Value="[APPLICATIONFOLDER]"
>>
>>                                    KeyPath="yes" />
>>
>>                 <!-- We need to use APPLICATIONFOLDER variable here 
>> or RemoveFolderEx
>>
>>                      will not remove on "install". But only if WiX 
>> 3.6 is used. -->
>>
>>
>>
>>                   <util:RemoveFolderEx On="uninstall"
>> Property="APPLICATIONFOLDER" />
>>
>>             </Component>
>>
>>              <Component Id="MyFileId" Guid="." Win64="yes">
>>
>>                  <File Id="MyFileId" Name="_dt.xsl"
>> Source="app\resources\_dt.xsl" KeyPath="yes" />
>>
>>             </Component>
>>
>>             <Component Id="MyFileCopyId" Guid="." Win64="yes">
>>
>>                 <CopyFile Id="MyFileCopyId" FileId="MyFileId"
>> DestinationDirectory="APPLICATIONFOLDER" />
>>
>>                 <RemoveFile Id="MyFileRemoveId" Name="_dt.xsl" On="install"
>> Directory="MySecondSubDir" />
>>
>>             </Component>
>>
>>         </DirectoryRef>
>>
>>
>>
>>         <Feature Id="MyFeature">
>>
>>              <ComponentRef Id="MyFileId" />
>>
>>              <ComponentRef Id="MyFileCopyId" />
>>
>>         </Feature>
>>
>>
>>
>>         <?include bundle.wxi ?>
>>
>>         <UI/>
>>
>>         <Icon Id="DesktopIcon.exe" SourceFile="MyApp.ico" />
>>
>>         <Icon Id="StartMenuIcon.exe" SourceFile="MyApp.ico" />
>>
>>
>>
>>     </Product>
>>
>> </Wix>
>>
>>
>>
>> So after the copy of the "_dt.xsl" file, I wish that this file is 
>> removed from "app/resources".
>>
>>
>>
>> Unfortunately it crosses nothing !
>>
>>
>>
>> Any ideas ?
>>
>>
>>
>> Thanks you in advance.
>>
>>
>>
>> Fabrice
>>
>>
>>
>> ---
>> Ce courrier électronique ne contient aucun virus ou logiciel malveillant 
>> parce que la protection avast! Antivirus est active.
>> http://www.avast.com
>> ---------------------------------------------------------------------
>> -
>> -------- Meet PCI DSS 3.0 Compliance Requirements with EventLog 
>> Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI 
>> DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download 
>> White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with 
>> EventLog Analyzer 
>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.
>> clktrk _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ----------------------------------------------------------------------
> -------- Meet PCI DSS 3.0 Compliance Requirements with EventLog 
> Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI 
> DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download 
> White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with 
> EventLog Analyzer 
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.
> clktrk _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ---
> Ce courrier électronique ne contient aucun virus ou logiciel malveillant 
> parce que la protection avast! Antivirus est active.
> http://www.avast.com
>
>
> ----------------------------------------------------------------------
> -------- Meet PCI DSS 3.0 Compliance Requirements with EventLog 
> Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI 
> DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download 
> White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with 
> EventLog Analyzer 
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.
> clktrk _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 
3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready 
for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 
Requirement 10 and 11.5 with EventLog Analyzer 
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce 
que la protection avast! Antivirus est active.
http://www.avast.com


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to