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
- :
- how to redirect standalone exe output to text file
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
May 19, 2014
12:15 PM
how to redirect standalone exe output to text file
hi Folks,
I am trying to redirect standalone exe output to txt file , I am following below command but it is not working. command execution itself failing. If I don't redirect it is working.Mostly this exe is written in C++. can some help me to make it work.
configDirPath = INSTALLDIR ^ "API\\config";
LongPathToQuote(configDirPath,TRUE);
szexePath = INSTALLDIR ^ "CLI\\bin";
szAppPath = szexePath ^ "cfg.exe";
LongPathToQuote(szAppPath,TRUE);
svHostnameLowerCase = "Hostname";
nRes = LaunchAppAndWait ( szAppPath, "-node -password " + svHostnameLowerCase + " > " + configDirPath ^ "resetssvop.log", LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN );
nReturnCode = NULL;
nReturnCode = LAAW_PARAMETERS.nLaunchResult;
if ( nReturnCode != 0 )then
MessageBox("Fail", INFORMATION);
else
MessageBox("SUCCESS", INFORMATION);
endif;
I am trying to redirect standalone exe output to txt file , I am following below command but it is not working. command execution itself failing. If I don't redirect it is working.Mostly this exe is written in C++. can some help me to make it work.
configDirPath = INSTALLDIR ^ "API\\config";
LongPathToQuote(configDirPath,TRUE);
szexePath = INSTALLDIR ^ "CLI\\bin";
szAppPath = szexePath ^ "cfg.exe";
LongPathToQuote(szAppPath,TRUE);
svHostnameLowerCase = "Hostname";
nRes = LaunchAppAndWait ( szAppPath, "-node -password " + svHostnameLowerCase + " > " + configDirPath ^ "resetssvop.log", LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN );
nReturnCode = NULL;
nReturnCode = LAAW_PARAMETERS.nLaunchResult;
if ( nReturnCode != 0 )then
MessageBox("Fail", INFORMATION);
else
MessageBox("SUCCESS", INFORMATION);
endif;
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 19, 2014
03:55 PM
You will want to use the -v command:
ISCmdBld.exe -p "C:\InstallShield 2012 Spring Projects\Test Project.ism" -r "Release 1" -c COMP -a "Product Configuration 1" -v > C:\log.log
Verbosely Log a Command Line Build
https://flexeracommunity.force.com/customer/articles/en_US/HOWTO/Verbosely-Log-a-Command-Line-Build
ISCmdBld.exe
http://helpnet.installshield.com/installshield20helplib/installshield20helplib_CSH.htm#helplibrary/ISCmdBldParam.htm
Grant
ISCmdBld.exe -p "C:\InstallShield 2012 Spring Projects\Test Project.ism" -r "Release 1" -c COMP -a "Product Configuration 1" -v > C:\log.log
Verbosely Log a Command Line Build
https://flexeracommunity.force.com/customer/articles/en_US/HOWTO/Verbosely-Log-a-Command-Line-Build
ISCmdBld.exe
http://helpnet.installshield.com/installshield20helplib/installshield20helplib_CSH.htm#helplibrary/ISCmdBldParam.htm
Grant