Hi ! here is my Code: ------------------------------------------- <Property Id="ASPNETREGIIS"> <DirectorySearch Path="[FRAMEWORKBASEPATH]" Depth="4" Id="FindAspNetRegIis"> <FileSearch Name="aspnet_regiis.exe" MinVersion="2.0.5"/> </DirectorySearch> </Property> <?if $(var.ASPNETv1) = "-" AND $(var.ASPNETv2) = "-" ?> <CustomAction Id="MakeAllApp20" Directory="TARGETDIR" ExeCommand="[ASPNETREGIIS] -i" Return="check"/> <InstallExecuteSequence> <Custom Action="MakeAllApp20" After="InstallFinalize">ASPNETREGIIS AND NOT Installed</Custom> </InstallExecuteSequence> <?endif?> ------------------------------------------- this code works fine but by installing the commandprompt is visible and thats not what i want... so i used the QtExec Command to hide it like this code: ------------------------------------------- <Property Id="ASPNETREGIIS"> <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="[ASPNETREGIIS] -i" /> <CustomAction Id="MakeAllApp20" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="immediate" Return="check"/> <InstallExecuteSequence> <Custom Action="MakeAllApp20" After="InstallFinalize" /> </InstallExecuteSequence> <?endif?> --------------------------------------------------- but there is a warning after built: Warning 2 The 'ASPNETREGIIS' Property contains '[ASPNETREGIIS]' in its value which is an illegal reference to another property. If this value is a string literal, not a property reference, please ignore this warning. To set a property with the value of another property, use a CustomAction with Property and Value attributes. i runned the msi file and looked into the logfile and the [ASPNETREGIIS] is empty like the warning told it. How to fix this? and why it doesnt work like the code with ExeCommand=[ASPNETREGIIS] ? Thanks Erich Nurr -- 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-tp4896460p4896460.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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users