hmm maybe i use the wrong element. but what i want is to install ASP.NET v2.0 or register it only, if its not installed or registered and after this i want to set the mappath to the virtual directory:
- if ASP.NETv1.x is not installed and ASP.NET v2.0 is not installed --> c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i --> c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -s W3SVC/1/ROOT/VirtualDir - if ASP.NET v1.x is installed but ASP.NET v2.0 isnt installed --> c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ir --> c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -s W3SVC/1/ROOT/VirtualDir - if ASP.NET v2.0 is installed (ASP.NET v1.x can be installed or not) --> c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -s W3SVC/1/ROOT/VirtualDir the follow code is getting the path to ASP.NET v2.0 regiis exe -------------------- <Property Id="FRAMEWORKBASEPATH"> <RegistrySearch Id="FindFrameworkDir" Root="HKLM" Key="SOFTWARE\Microsoft\.NETFramework" Name="InstallRoot" Type="raw"/> </Property> <Property Id="ASPNETREGIIS"> <DirectorySearch Path="[FRAMEWORKBASEPATH]" Depth="4" Id="FindAspNetRegIis"> <FileSearch Name="aspnet_regiis.exe" MinVersion="2.0.5"/> </DirectorySearch> </Property> ------------------------------ and this following code is searching in registry which ASP.NET Version is installed ------------------------------ <Property Id="ASPNET1"> <RegistrySearch Id="ASPNET1InstalledComponents" Root="HKLM" Key="SOFTWARE\Microsoft\ASP.NET\1.1.4322.0" Type="raw" Name="Path" /> </Property> <Property Id="ASPNET2"> <RegistrySearch Id="ASPNET2InstalledComponents" Root="HKLM" Key="SOFTWARE\Microsoft\ASP.NET\2.0.50727.0" Type="raw" Name="Path" /> </Property> ---------------------------------- Do you maybe know a other way without custom actions? but it works with ExeCommand like i said in my first post, but the prompt is visible if it starts to install the ASP.NET... and i hoped i can get it with QtExec invisible (background) -- 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-tp4896460p4906114.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