This has worked for me for a couple of major .NET 2.0 releases of our
product now. Been in use for about a year.

<Property Id="DOTNET20PATH">
    <RegistrySearch Id="DotNetSearch" Root="HKLM"
Key="Software\Microsoft\.NETFramework" Name="InstallRoot"
Type="directory" />
</Property>


<CustomAction Id="ASPNET_REGIIS_PATH" Property="ASPNET_REGIIS_PATH"
Value="[DOTNET20PATH]v2.0.50727"/>
<CustomAction Id="ASPNET_REGIIS_SET" Property="ASPNET_REGIIS_SET"
Value="&quot;[ASPNET_REGIIS_PATH]\ASPNET_REGIIS.exe&quot; -sn
W3SVC/[SITE_ID]/Root/E3Container" HideTarget="yes"/>
<CustomAction Id="caASPNET_REGIIS_SET" Execute="deferred" Return="check"
ExeCommand="[ASPNET_REGIIS_SET]" Directory="TARGETDIR"/>

And in the InstallExecuteSequence

<Custom Action="ASPNET_REGIIS_PATH"
Before="ASPNET_REGIIS_SET"><![CDATA[&WebRole = 3]]></Custom>
<Custom Action="ASPNET_REGIIS_SET"
Before="caASPNET_REGIIS_SET"><![CDATA[&WebRole = 3]]></Custom>
<Custom Action="caASPNET_REGIIS_SET"
Before="InstallFinalize"><![CDATA[&WebRole = 3]]></Custom>


The &WebRole = 3 says to only run these actions on our WebRole feature.

HTH
Chad


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jay H. Cho
Sent: Tuesday, September 16, 2008 8:00 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom action questoin

Hi

Anyone know how to execute aspnet_regiis from wix?

Thank you.
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to