Have you tried:
<Property Id='VDDIR' Value="[MAINDIR]webmain" />
I think that should resolve to what you want.
On 2/14/07, Nick Hennemann <[EMAIL PROTECTED]> wrote:
*I have the following Property "MAINDIR" and it is populated correctly
from the registry….*
<Property Id=*'MAINDIR'*>
<RegistrySearch Id='AppInstallRegistrySearch' Type='raw'
Root='HKLM' Key='Software\OurSoftwareCompany\SoftwareName' Name='Install
Directory' />
</Property>
And then I have another property call "VDDIR" and I use the "MAINDIR"
property to help build the path for my virtual directory….however I can see
that instead of the path being built by replacing the MAINDIR property with
it's value it simply is leaving the path with "[MAINDIR]" . Here are the
properties as reported in the MSI log:
*Property(S): MAINDIR = C:\PROGRA~1\SoftwareDir\*
*Property(S): VDDIR = [MAINDIR]webmain*
* *
<Property Id='VDDIR'>*[MAINDIR]*webmain</Property>
*How do I use the value from one Property in another one? Any help would
be greatly appreciated. It appears that maybe it is defining the property
of VDDIR before it is getting the value of MAINDIR...if so how can I ensure
that MAINDIR is populated first. TIA.*
----------------------------------------------------------------------------------------------------------------------------------------
*Here is an excerpt from the WiX tutorial that shows how to do it, but I
can't seem to make it work. Anyone able to get this to work? *
<*Property* Id="*INSTALLDIR*">
<*IniFileSearch* Id='AcmeFoobarIniFile' Type='directory'
Name='SampleRegistry.ini' Section='Sample' Key='InstallDir' />
</*Property*>
There might be cases when simply knowing the directory is not enough: you
have to look into the directory and make sure a given file exists there. *
Depth = n* can be used to instruct the installer to look *n* levels deeper
than the specified *Path.* Zero or a missing *Depth* attribute means only
to look in the specified folder, not below it. We use square brackets in *
Path* to tell the installer to use the *value* of the
*INSTALLDIR*property—bracketed names will be looked up and if found, replaced
with their
actual value. If not found, the string will remain unchanged.
<*Property* Id="FILEEXISTS">
<*DirectorySearch* Id="CheckFileDir" Path="[*INSTALLDIR*]" Depth="0">
<*FileSearch* Id="CheckFile" Name="Lookfor.txt" />
</*DirectorySearch*>
</*Property*>
NOTICE: This electronic mail message and any files transmitted with it are
intended exclusively
for the individual or entity to which it is addressed. The message, together
with any attachment, may contain confidential and/or privileged
information. Any unauthorized review, use, printing, saving, copying, disclosure
or distribution is strictly prohibited. If you have received this message in
error, please immediately
advise the sender by reply email and delete all copies.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users