Hi Bob,

Yes, I saw I needed to do such things, as I wrote in the initial message.
I have two workarounds (at least I interpret them as workarounds): registry 
search and/or standard custom actions (type 51 and 35), both of them working.
But I would like to understand first why the directory property is OK if the 
directory contains an installed file and why not if the directory contains only 
subfolders.
Any MSI documentation links for me to understand why the directory property is 
OK if I have a component with a file as KeyPath installed in that directory and 
not OK otherwise ?

Regards,
Adrian


----- Original Message ----
From: Bob Arnson <[EMAIL PROTECTED]>
To: Adrian Gantoi <[EMAIL PROTECTED]>
Cc: wix-users@lists.sourceforge.net
Sent: Sunday, October 7, 2007 8:11:04 PM
Subject: Re: [WiX-users] Customizable folder name written in registry - lost 
(reverted to default) on Repair

Adrian Gantoi wrote: 
My problem is that on "Repair" , the registry entry is set to the default name 
of TDIR, even if this folder was customized at install time.

You need to persist customizations and load them back during repair and 
uninstallation. "Normal" things like files will be repaired and uninstalled 
normally because MSI records them. So your subdirectory's file is repaired 
normally but the directory property isn't. The typical approach is to write it 
to the registry and use RegistrySearch to load it.


-- 
sig://boB
http://joyofsetup.com/


      
____________________________________________________________________________________
Check out the hottest 2008 models today at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to