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: Have an installer display a version number
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 04, 2008
02:25 PM
Have an installer display a version number
I have been given a requirement to have our installer return a version number, something like having the installer executable accept a switch such as -v or an argument of some sort, in which case it just displays the product version number and doesn't install anything.
I couldn't find any way built into IA 2008 Enterprise to do this, and wrote some (trivial) custom code to do it. With an argument like -check.version=true -silent the installer outputs the contents of an IA variable containing a version string to stdout. However this means I have to direct stdout to the console which outputs lots of other stuff.
Can someone suggest an easier/better way to do this? I don't really want stdout directed to the console because I don't want it on during a normal user install. Is there a way to have my custom code do the redirect so that only the value it writes is seen?
I couldn't find any way built into IA 2008 Enterprise to do this, and wrote some (trivial) custom code to do it. With an argument like -check.version=true -silent the installer outputs the contents of an IA variable containing a version string to stdout. However this means I have to direct stdout to the console which outputs lots of other stuff.
Can someone suggest an easier/better way to do this? I don't really want stdout directed to the console because I don't want it on during a normal user install. Is there a way to have my custom code do the redirect so that only the value it writes is seen?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 05, 2008
03:09 AM
I don't think this is possible with IA. The only workaround that comes to mind is to have the name of the installer contain the version (say instead of having a setup.exe you would have setup-1.5.3-7.exe)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 06, 2008
06:17 PM
Thanks. That was what they were trying to get away from doing, but it looks like they'll just have to bite the bullet. Appreciate your response.