Ok, I will go that route. THANK YOU for your quick responses!
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of K-ballo
Sent: Wednesday, February 14, 2007 2:42 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to use a Property Value to create anotherProperty
You cannot set a property to the value of another property in that way. That is
necessary to prevent creating circular references. What you should do is call a
CustomAction that will set the value of VDDIR property after MAINDIR has been
set. You would have to do something like this:
<CustomAction Id="SetVDDIR" Property="VDDIR" Value="[MAINDIR]webmain"/>
<Custom Action="SetVDDIR" After="AppSearch"/>
K-ballo.-
Nick Hennemann escribió:
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
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