thx for reply!
i tried the folowing code:
----------------------
<?define ASPNETREGIISv2 = "-"?>
<Property Id="ASPNETREGIIS" Value="$(var.ASPNETREGIISv2)">
<DirectorySearch Path="[FRAMEWORKBASEPATH]" Depth="4"
Id="FindAspNetRegIis">
<FileSearch Name="aspnet_regiis.exe" MinVersion="2.0.5"/>
</DirectorySearch>
</Property>
<?if $(var.ASPNETv1) = "-" AND $(var.ASPNETv2) = "-" ?>
<Property Id="QtExecCmdLineNoASPInstalled" Value="$(var.ASPNETREGIISv2)
-i" />
<CustomAction Id="MakeAllApp20" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="immediate" Return="check"/>
<InstallExecuteSequence>
<Custom Action="MakeAllApp20" After="InstallFinalize">ASPNETREGIIS AND
NOT Installed</Custom>
</InstallExecuteSequence>
<?endif?>
------------------------------------
and i tried the same with AssignToProperty="yes" in the follow Code:
--------------------------------------
<?define ASPNETREGIISv2 = "-"?>
<Property Id="ASPNETREGIIS" Value="$(var.ASPNETREGIISv2)">
<DirectorySearch Path="[FRAMEWORKBASEPATH]" Depth="4"
Id="FindAspNetRegIis" AssignToProperty="yes">
<FileSearch Id="FileSearchASPNETREGIIS" Name="aspnet_regiis.exe"
MinVersion="2.0.5"/>
</DirectorySearch>
</Property>
<?if $(var.ASPNETv1) = "-" AND $(var.ASPNETv2) = "-" ?>
<Property Id="QtExecCmdLineNoASPInstalled" Value="$(var.ASPNETREGIISv2)
-i" />
<CustomAction Id="MakeAllApp20" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="immediate" Return="check"/>
<InstallExecuteSequence>
<Custom Action="MakeAllApp20" After="InstallFinalize">ASPNETREGIIS AND
NOT Installed</Custom>
</InstallExecuteSequence>
<?endif?>
----------------------------------------
now only the defined value ( - ) will be set and not the Value of the
Property which should be like:
c:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe
but the definition of the Value parameter is:
"Sets a default value of the property. The value will be overwritten if the
Property is used for a search."
and i use this Property for a search... why the value isnt set in the
variable $(var.ASPNETREGIISv2) and how can i manage that this property value
is refer to the Property "QtExecCmnLineNoASPInstalled" value?
Thanks
--
View this message in context:
http://n2.nabble.com/To-set-property-with-the-value-of-another-property-use-a-CustomAction-with-Property-and-Value-attrib-tp4896460p4900161.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users