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: how to retrieve error message of iscab.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
‎Mar 19, 2008
12:02 PM
how to retrieve error message of iscab.exe
hi how can i get the message return by iscab.exe ?
iscab.exe "C:\RBM\Spartan\Install\Released\cd\install\Basecab\data1.cab" -i"
C:\RBM\Spartan\Install\Released\cd\Setup\Client_local.ini" -x > "c:\testtest.txt"
Error: Item not found in the collection: 'WrtBlk32x.dll'
i tried passing
> "c:\testtest.txt"
though the text file was created, it doesn't contain any text inside. I'm expecting that
Error: Item not found in the collection: 'WrtBlk32x.dll'
will be created in testtest.txt file.
thanks.
iscab.exe "C:\RBM\Spartan\Install\Released\cd\install\Basecab\data1.cab" -i"
C:\RBM\Spartan\Install\Released\cd\Setup\Client_local.ini" -x > "c:\testtest.txt"
Error: Item not found in the collection: 'WrtBlk32x.dll'
i tried passing
> "c:\testtest.txt"
though the text file was created, it doesn't contain any text inside. I'm expecting that
Error: Item not found in the collection: 'WrtBlk32x.dll'
will be created in testtest.txt file.
thanks.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 19, 2008
12:21 PM
Perhaps it's using stderr instead of stdout? If so, perhaps try this (with the extra bit at the end):
iscab zzz.cab -i zzz.ini -x > C:\test.txt 2>&1
iscab zzz.cab -i zzz.ini -x > C:\test.txt 2>&1
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 19, 2008
09:49 PM
Cool!!!! It works!!!! Thanks so much
by the way what is the purpose of adding 2>&1 at the end of the command?
by the way what is the purpose of adding 2>&1 at the end of the command?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 20, 2008
08:53 AM
My informal understanding is that even though they're both displayed at the command line, so-called stdout (standard output) and stderr (error-type output) are different streams, or handles. stdout is stream 1, stderr is stream 2, keyboard input (stdin) is stream 0...
The normal > redirect operator (as in iscab -args > output.txt) redirects (to a file, in this case) only stdout data; using that extra 2>&1 notation indicates to redirect stderr (stream 2) to stdout (stream 1) so the combined output will go to your file.
And after typing all that, I see Windows XP has a help topic "Using command redirection operators" that has a much better and more thorough explanation.
The normal > redirect operator (as in iscab -args > output.txt) redirects (to a file, in this case) only stdout data; using that extra 2>&1 notation indicates to redirect stderr (stream 2) to stdout (stream 1) so the combined output will go to your file.
And after typing all that, I see Windows XP has a help topic "Using command redirection operators" that has a much better and more thorough explanation.
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)