I'm just grasping at straws here, but could it be that in the instances where
the folder doesn't get removed, that the folder was still considered "in use"
from the process that did the file deletions for the CA, and the folder removal
is attempted before the CA process was completely ended and released the folder.
Can you move your CA earlier in the sequence before RemoveFiles to try and
alleviate the problem?

Jim Williams

-----Original Message-----
From: Adam Langley [mailto:alang...@winscribe.com] 
Sent: Tuesday, March 17, 2009 1:16 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] fold not being removed on uninstall: sporadic

Its Synchronous, as it checks the return result...

Adam Langley
Senior Developer
Tel: +64 9 486 9010
alang...@winscribe.com
www.winscribe.com
 
 


-----Original Message-----
From: Jim Williams [mailto:jimwilliam...@comcast.net] 
Sent: Tuesday, 17 March 2009 4:41 p.m.
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] fold not being removed on uninstall: sporadic

Is your custom action synchronous or asynchronous?  If asynchronous, perhaps
your custom action isn't finishing in time before the attempt to delete the
folders is done.

Jim Williams

-----Original Message-----
From: Adam Langley [mailto:alang...@winscribe.com] 
Sent: Monday, March 16, 2009 7:35 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] fold not being removed on uninstall: sporadic

I have a WiX generated installer which copies some simple files into a directory
structure under ProgramFiles.
The issue is, _sometimes_ (about 50% of the time), uninstallation fails to
remove these folders - with no errors in the log file.

My WiX looks like this:

      <Directory Id="ProgramFilesFolder">
        <Directory Id="CompanyFolder" Name="Company Folder">
          <Directory Id="INSTALLLOCATION" Name="Application Folder">
            <Component Id="ProductComponent" Guid="<GUID>">

With only files underneath.
The only slightly out of the ordinary thing that I am doing is running an exe
installer as a CA which extracts files within this directory structure aswell -
however there is an equivalent uninstall custom action which removes all these
files before the MSI tries to delete anything from the system.

I end up with an empty folder structure:

C:\Program Files\Company Folder\Application Folder\

Remaining on my system, about 50% of the time.

Can anyone point out why this might be happening?

Thanks

Adam Langley
Senior Developer
Tel: +64 9 486 9010
www.winscribe.com
 
 


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to