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
- :
- Variables?
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
Oct 10, 2011
02:46 PM
Variables?
Newbie question...I am running IA2011 Enterprise for a Unix installer in Console mode. I want to control the installer based on results of each step. I have custom code that executes our unique steps in our Install process but they all execute at once and the Installer exits. For example I want to:
Step 1 - Shutdown down application server
If SUCCESS then go to Step 2
Or FAIL, repeat Step 1
Step 2 - Load new programs into a directory
If SUCCESS then go to Step 3
If FAIL, repeat Step 2
I can write the SUCCESS or FAIL out to a file but how do I get the Installer to execute the first step, wait for it to finish then move to the next step upon SUCCESS of the first step? Any pointers is greatly appreciated. Do you use Variables and if so - how? Or is there another technique to use?
Step 1 - Shutdown down application server
If SUCCESS then go to Step 2
Or FAIL, repeat Step 1
Step 2 - Load new programs into a directory
If SUCCESS then go to Step 3
If FAIL, repeat Step 2
I can write the SUCCESS or FAIL out to a file but how do I get the Installer to execute the first step, wait for it to finish then move to the next step upon SUCCESS of the first step? Any pointers is greatly appreciated. Do you use Variables and if so - how? Or is there another technique to use?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 12, 2011
10:14 AM
I was able to solve my problem by using a Console Action: Show Message Console 'Dialog' and then to validate against a Regular Expression to determine if the installer should allow the user to proceed to the next step. With a Ouptut Debug Information Action I can see the STDERR and STDOUT in my Log file and then I validated my expression against a "Warning" output.
