I have seen a previous thread in the archives that suggests the following wix source for trying to run .NET’s asp_regiis.exe utility:

 

<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>

 Then build the command line in a property:

 <CustomAction Id="AspNetAssign" Property="CONFIGWEBSITEASPNET"
 Value="&quot;[ASPNETREGPATH]&quot; -ga [DOMAIN]\UA_Quotes" />

 Define the action that runs the command line:

 <CustomAction Id="CONFIGWEBSITEASPNET" BinaryKey="wixca"
 DllEntry="CAQuietExec" Execute="deferred" Return="check"/>

 

Then schedule both custom actions in InstallExecuteSequence

 

…..

 

I schedule just after InstallInitialize, however when my msi runs, just FRAMEWORKBASEPATH is evaluated successfully, there is not even a mention of ASPNETREGPATH in the verbose log. At the point at which I think it is doing the FileSearch all I see is:

MSI (c) (60:08) [10:14:41:482]: PROPERTY CHANGE: Adding FRAMEWORKBASEPATH property. Its value is 'C:\WINNT\Microsoft.NET\Framework\'.

MSI (c) (60:08) [10:14:41:482]: Note: 1: 1325 2: aspnet_regiis.exe
MSI (c) (60:08) [10:14:41:482]: Note: 1: 1325 2: aspnet_regiis.exe
MSI (c) (60:08) [10:14:41:482]: Note: 1: 1325 2: aspnet_regiis.exe
MSI (c) (60:08) [10:14:41:482]: Note: 1: 1325 2: aspnet_regiis.exe
MSI (c) (60:08) [10:14:41:482]: Note: 1: 1325 2: aspnet_regiis.exe
MSI (c) (60:08) [10:14:41:498]: Note: 1: 1325 2: aspnet_regiis.exe

And when the AspNetAssign custom action runs I see:

 

MSI (s) (38:F8) [09:49:09:180]: Executing op: CustomActionSchedule(Action=""> CONFIGWEBSITEASPNET,ActionType=1025,Source=BinaryData,Target=CAQuietExec,CustomActionData="[ASPNETREGPATH] aspnet_regiis.exe" -ga \UA_Quotes)

 

Any ideas why there is no mention of ASPNETREGPATH in the msi’s log file and why the command line I need to execute isn’t getting the variables it requires to run successfully?

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to