That worked, with a full path, thank you. I didn't know you could refer
to other things than actual Properties in a CustomAction.
<CustomAction Id="SetDirectory" Property="WebsiteDirectory"
Value="[INSTALLDIR][USER_WEBSITENAME]" Execute="immediate" />
<InstallExecuteSequence>
<Custom Action="SetMyDirectory" Before="CostFinalize" />
</InstallExecuteSequence>
From: Michal Peled [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 06, 2008 12:31 PM
To: dB.; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] How do I change a directory name below
INSTALLDIR?
Use a custom action after your custom UI that'll look something like
that:
<CustomAction Id="change_dir1_name" Property="MyDir1"
Value="[my_user_input]"/>
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dB.
Sent: Sunday, January 06, 2008 7:24 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How do I change a directory name below INSTALLDIR?
How can I change the directory name under INSTALLDIR from a property
value?
<DirectoryRef Id="INSTALLDIR">
<Directory Id="MyDir1" Name="DirectoryOne">
...
</Directory>
<Directory Id="MyDir2" Name="DirectoryTwo">
...
</Directory>
</DirectoryRef>
I am fetching a property from a custom UI and I'd like to change the
"DirectoryOne" and "DirectoryTwo" values to [SOMEPROPERTY].One and
[SOMEPROPERTY].Two. Possible?
Using a property directly in Name doesn't work, it doesn't get resolved.
(Using wix3).
Thx
dB.
-dB.
dblock.org <http://www.dblock.org/> / foodcandy.com
<http://www.foodcandy.com/>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users