I think I get the idea now... I have to apply SQL statements to the
installer database itself to do the insertion using the
MsiDatabaseOpenView and MsiView* methods. Oh, fun!

At any rate, the code is currently at
http://svn.ali.as/cpan/trunk/Perl-Dist-WiX/share/ClearFolderCA/ClearFolderCA/ClearFolderCA.cpp

(Yes, I'll be nice and post a pointer to the completed code when I'm
done.)

--Curtis

On Mon, 20 Apr 2009 08:44 -0600, "Curtis Jewell"
<lists.wix-us...@csjewell.fastmail.us> wrote:
> On Thu, 16 Apr 2009 22:58 -0700, "Rob Mensching" <r...@wixtoolset.org>
> wrote:
> > 1. MSI SDK says the RemoveFolders only removes a folder if it is empty.  
> > You need a CustomAction to recurse all of the directories and add them 
> > to the RemoveFolders table plus add the files to RemoveFiles table.
> 
> Well, I'm getting started writing that CustomAction. It's still 80%
> psuedocode and only 20% C, but here's what I have so far. (I know I
> can't append to strings like that in C, I'll rewrite that in proper RTL
> calls myself when I get to my Visual Studio machine.)
> 
> I would prefer to have it run after the MSI has deleted the files it
> knows about already. (why make extra work?)
> 
> What XML code would be required to put the CA in at that point, and what
> MSI SDK functions would I use to do what is asked for in the HELP
> comments?
> 
> I know I'm asking for a lot at the moment, but even if you only point
> out the first steps, or point me to examples, I can work with that and
> ask more detailed questions as needed later.
 

--
Curtis Jewell
swords...@csjewell.fastmail.us

%DCL-E-MEM-BAD, bad memory
-VMS-F-PDGERS, pudding between the ears

[I use PC-Alpine, which deliberately does not display colors and
pictures in HTML mail]
--
Curtis Jewell
swords...@csjewell.fastmail.us

%DCL-E-MEM-BAD, bad memory
-VMS-F-PDGERS, pudding between the ears

[I use PC-Alpine, which deliberately does not display colors and pictures in 
HTML mail]


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to