Thanks Bob, do you have an idea of the syntax needed were I to do that as obviously here the value of one property is required for the DirectorySearch’s path

 


From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: 07 October 2006 03:54
To: Simon Burgess
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Invoke asp_regiis.exe

 

Simon Burgess wrote:

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>


MSI doesn't guarantee a particular order for evaluating AppSearch records (which is what *Search elements turn into). So if FindAspRegExe happens before FindFrameworkDir, it won't have a FRAMEWORKBASEPATH value to start from. I'd suggest nesting the DirectorySearch and FileSearch elements under RegistrySearch.


-- 
sig://boB
http://bobs.org




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