Karthika K wrote:
> Hi All,
>  
> I have a console application which installs custom controls to a
> toolbox. I want to run this application from a setup (wix file).
> How can I use InstallUtil.exe for this purpose? I had the following
> customaction element:
>  
> <CustomAction Id= 'Managed_Install' Directory= 'TestDir' ExeCommand=
> '"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\installUtil.exe"
> /LogToConsole=false InstallToolboxControls.exe -Install' Return='check'/>
>

to run a custom exe within the setup you need to include the exe as a
binary and than reference to it in the custom action. Note that the
ExeCommand just contains the command line parameter and not the
executable file itself.

Example:

<Binary Id='MyExe' SourceFile="\PATH\TO\MyExe.exe" />
<CustomAction Id='MyID' BinaryKey='MyExe'
  ExeCommand='-Param1 -Param2' Return='check' />

Hope that helps,
Frank

-------------------------------------------------------------------------
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to