Hi, I do not like to answer
to myself, but I think I found a way to discover is ASP.NET is registered on a
machine through a registry-key. Who only needs to check
if ASP.NET-2.0 is registered to the local IIS can do it like this: <Property Id="ASPNETREGISTERED">
<RegistrySearch Id="ASPNETREG" Root="HKLM" Key="Software\Microsoft\ASP.NET\2.0.50727.0" Name="AssemblyVersion" Type="raw"/> </Property> <Condition Message='This setup requires
ASP.NET registered for Microsoft.NET 2.0'>
<![CDATA[ASPNETREGISTERED]]> </Condition> In my case this was not enough,
our setup needs to check if registration has happened, and if not, it should be
done during setup, therefore following code was needed: <!-- Check for registered aspnet --> <Property Id="ASPNETREGISTERED">
<RegistrySearch Id="ASPNETREG" Root="HKLM" Key="Software\Microsoft\ASP.NET\2.0.50727.0" Name="AssemblyVersion" Type="raw"/> </Property> <Property Id="FRAMEWORKBASEPATH">
<RegistrySearch Id="FindFrameworkDir" Root="HKLM" Key="SOFTWARE\Microsoft\.NETFramework" Name="InstallRoot" Type="raw" /> </Property> <Property Id="ASPNETREGPATH">
<DirectorySearch Id="FindAspRegExe" Path="[FRAMEWORKBASEPATH]" Depth="1">
<FileSearch Id="FindAspNetReg" LongName="aspnet_regiis.exe" MinVersion="2.0.50727"/>
</DirectorySearch> </Property> <!--Launch aspnet_regiis -i for safety...--> <CustomAction Id="LaunchReg" Impersonate="yes" Return="asyncWait" Execute ="immediate" Directory="WinDir" ExeCommand='"[ASPNETREGPATH]" -i' TerminalServerAware="yes"/> <InstallExecuteSequence>
<Custom Action="LaunchReg" After="LaunchConditions">NOT Installed AND NOT
ASPNETREGISTERED</Custom> </InstallExecuteSequence> Oliver Friedrich |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users