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
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Any way of getting the install log name?
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 11, 2013
10:50 AM
Any way of getting the install log name?
The installer generates a logfile of the form _Install__
- _
_ _ _ .log. I would like to refer users to this log, with the understanding that this may be the Nth install they've done, and that there may be several log files present. Is there a way to obtain this generated name so I can use it in an informational message?
I'd like to say something like "There were some warnings in your installation. Please check the log in $INSTALL_DIR$$/$$GENERATED_INSTALL_LOG_NAME$." I know I can override the install log name, but having multiple logs that contain the timestamp of the install is useful, so I'd rather go with the generated name.
- Scott
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 27, 2013
02:07 AM
I want to write EXECUTE_STDERR and EXECUTE_STDOUT to the install log file while executing some scripts during install phase.
Is there any way to get the Install log file name during install and post-install actions.
$INSTALL_LOG_NAME$ is not returning any value during install and post-install actions.
- Usha.
Is there any way to get the Install log file name during install and post-install actions.
$INSTALL_LOG_NAME$ is not returning any value during install and post-install actions.
- Usha.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 27, 2013
12:11 PM
Hi Usha -
I eventually wrote custom code to generate a log file name in the same form as the existing one based on the time of day. I then set $INSTALL_LOG_NAME$, which appears to be a variable that is only used to change the existing log file name, to that value. Not as convenient as having InstallAnywhere provide the name they are using, but I saw it as my only choice.
The issue of getting standard out and standard error into the log was one I addressed by using different variable names for standard out and error for each script I ran. Instead of $EXECUTE_STDOUT$, I substituted $ACTION1_STDOUT$. Then I could look at the results of any script I was interested in by checking the variables listed in either the normal log, or the installer debug logs created by the Output Debug Information action. I only use the standard variables when I'm not really interested in the output.
I hope this helps.
- Scott
I eventually wrote custom code to generate a log file name in the same form as the existing one based on the time of day. I then set $INSTALL_LOG_NAME$, which appears to be a variable that is only used to change the existing log file name, to that value. Not as convenient as having InstallAnywhere provide the name they are using, but I saw it as my only choice.
The issue of getting standard out and standard error into the log was one I addressed by using different variable names for standard out and error for each script I ran. Instead of $EXECUTE_STDOUT$, I substituted $ACTION1_STDOUT$. Then I could look at the results of any script I was interested in by checking the variables listed in either the normal log, or the installer debug logs created by the Output Debug Information action. I only use the standard variables when I'm not really interested in the output.
I hope this helps.
- Scott
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 03, 2013
06:37 AM
Thank you very much for the reply Scott.
I have resolved my issue by creating and using a different log file to log all the Execute script actions errors along with that action's name.
- Usha.
I have resolved my issue by creating and using a different log file to log all the Execute script actions errors along with that action's name.
- Usha.