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: Writing an installscript project to deploy an EAR 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
‎Mar 09, 2011
08:42 AM
Writing an installscript project to deploy an EAR File
I'm having some trouble setting up my script. I want my script to handle setting up environment variables, backing up configuration files, and copying the Ear file(s) where they need to go but I don't want to have the installer actually "install" files or other "objects", etc.
All of my functions (including ones that are copying files) are getting called during the initial welcome screen. My installscript is controlled through a program...endprogram block. Should I restructure my script to call thes functions through the events? If so, what would be recommended?
I'd like to have the each function show what is currently happening in the status screen/progress screen. Is there a pre-defined function to make this happen?
Thanks in advance!
Jim
All of my functions (including ones that are copying files) are getting called during the initial welcome screen. My installscript is controlled through a program...endprogram block. Should I restructure my script to call thes functions through the events? If so, what would be recommended?
I'd like to have the each function show what is currently happening in the status screen/progress screen. Is there a pre-defined function to make this happen?
Thanks in advance!
Jim
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 11, 2011
09:29 AM
I do somethig similar, only a setup.rul with
I do everything "manually", show dialogs, copy files and much, much more. You don't really have to use events.
You can show the status window with something like this:
Check the SetStatusWindow Example in the manual.
HTH,
Johannes
declare
...
program
START:
...
endprogram
I do everything "manually", show dialogs, copy files and much, much more. You don't really have to use events.
You can show the status window with something like this:
Enable(STATUS);
StatusUpdate (ON, 10);
SetStatusWindow (10, "We're doing useful things...");
// Do something useful...
SetStatusWindow (20, "...");
Disable(STATUS)
Check the SetStatusWindow Example in the manual.
HTH,
Johannes
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 11, 2011
09:44 AM
Johannes_T wrote:
I do somethig similar, only a setup.rul withdeclare
...
program
START:
...
endprogram
I do everything "manually", show dialogs, copy files and much, much more. You don't really have to use events.
You can show the status window with something like this:Enable(STATUS);
StatusUpdate (ON, 10);
SetStatusWindow (10, "We're doing useful things...");
// Do something useful...
SetStatusWindow (20, "...");
Disable(STATUS)
Check the SetStatusWindow Example in the manual.
HTH,
Johannes
How are you doing your deploy? Are you using the Ant Tasks that come with OC4J? Do you have any examples you can share? I'm in the process of beating my head into a wall trying to make some sense of this mess. :confused:
This is the code I'm scrapping my head against:
Deploying ${deploy.ear} to ${targetenv} via ${oc4j.deployer.uri}
userId="${oc4j.admin.user}"
password="${oc4j.admin.password}"
file="${deploy.ear}"
deploymentName="${oc4j.deployment.name}"
bindAllWebApps="default-web-site"
logFile="${log.dir}/deploy.log"/>
Undeploying ${oc4j.deployment.name} via ${oc4j.deployer.uri}
userId="${oc4j.admin.user}"
password="${oc4j.admin.password}"
deploymentName="${oc4j.deployment.name}"
logFile="${log.dir}/undeploy.log"/>
Redeploying ${deploy.ear} to ${targetenv} via ${oc4j.deployer.uri}
userId="${oc4j.admin.user}"
password="${oc4j.admin.password}"
file="${deploy.ear}"
deploymentName="${oc4j.deployment.name}"
logFile="${log.dir}/redeploy.log"/>
Thanks in advance! 🙂