I do not understand why I need to package binary streams for using InstallUtil 
in my Setup.

Since our setup installs an entire .NET-solution, the framework needs to be 
installed on the target system, and therefore InstallUtil is present on the 
target system.

So I thought I just could use a filesearch for the InstallUtil.exe and use that 
in a custom action to execute with the parameter of our Mmc-SnapIn.

<Property Id="FRAMEWORKBASEPATH">
      <RegistrySearch Id="FindFrameworkDir" Root="HKLM"  
Key="SOFTWARE\Microsoft\.NETFramework" Name="InstallRoot" Type="raw" />
</Property>
<Property Id="INSTALLUTILPATH">
      <DirectorySearch Id="FindInstallUtil" Path="[FRAMEWORKBASEPATH]" 
Depth="1">
            <FileSearch Id="FindInstallUtil" Name="installutil.exe" MinVersion 
"2.0.50727"/>
      </DirectorySearch>
</Property>

<InstallExecuteSequence>
      <Custom Action="RegMmc" After="InstallFinalize">NOT Installed</Custom>
</InstallExecuteSequence>

<CustomAction Id="RegMmc"  Impersonate="yes" Return="check" Execute="immediate" 
Property="INSTALLUTILPATH"  ExeCommand="[EWS.MMC.dll]" />

With this I do only get an error message that a program needed to run did not 
end properly, what am I doing wrong?

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