This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Custom Action New EXE
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 01, 2013
02:42 PM
Custom Action New EXE
Afternoon,
I was wondering if I might ask for some opinions as to how I might implement a New EXE custom action.
Here's what my command line looks like, if I were to run it, from the command line.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Caspol.exe -lg > C:\Caspol.txt
I "think" the CA is launching the executable, because I "see" a dos box pop up momentarily.
And I see what I "think", is the output of Caspol.exe.
But I can't seem to figure out how to code the redirection part.
I want to redirect the output of Caspol.exe -lg, into a .txt file somewhere, so that I might open it later and search it for a string.
I've tried a number on constructs on the command line of the New EXE custom action.
But I haven't been able to figure out the correct way of redirecting the output to a text file.
Has anyone been successful in redirecting output via the Executable custom action ?
If so, might I ask for a pointer or perhaps an example ?
Thanks you so much.
I was wondering if I might ask for some opinions as to how I might implement a New EXE custom action.
Here's what my command line looks like, if I were to run it, from the command line.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Caspol.exe -lg > C:\Caspol.txt
I "think" the CA is launching the executable, because I "see" a dos box pop up momentarily.
And I see what I "think", is the output of Caspol.exe.
But I can't seem to figure out how to code the redirection part.
I want to redirect the output of Caspol.exe -lg, into a .txt file somewhere, so that I might open it later and search it for a string.
I've tried a number on constructs on the command line of the New EXE custom action.
But I haven't been able to figure out the correct way of redirecting the output to a text file.
Has anyone been successful in redirecting output via the Executable custom action ?
If so, might I ask for a pointer or perhaps an example ?
Thanks you so much.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 02, 2013
12:52 PM
David, from Installshield suggested the following, which worked perfectly.
Choose "New EXE (With a path referencing a directory)
Working directory:
Choose "New EXE (With a path referencing a directory)
Working directory:
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 02, 2013
02:22 PM
I'd look at the Quiet Execution Custom Action found in WiX. It will make your flashing dos box go away, redirect the stderr and stdout to the windows installer log and mitigate a bunch of other risks that aren't obvious upon first glance.
It's just a type 1 DLL custom action so it's really easy to integrate with InstallShield based MSI's.
It's just a type 1 DLL custom action so it's really easy to integrate with InstallShield based MSI's.