| | | Forum Newbie
       
Group: Forum Members Last Login: 4/11/2008 10:21:12 AM Posts: 7, Visits: 23 |
| | Is their a way to make one package dependent on another? As an example, I have an app written in Java. I'd like to somehow say 'deploy this app, but if Java hasn't been installed, then install that first'. Sure, I could wrap them up as one package, I'd prefer instead to keep them separate so each can be updated independently. I know their's a way to make a package not install if Java isn't there, but how can I make it smarter, to realize it's not installed, so it installs it for me automatically? |
| | | | 
Supreme Being
       
Group: Moderators Last Login: 10/8/2008 1:15:23 PM Posts: 655, Visits: 810 |
| I would recommend using a Prism Script (a text file with the extension renamed to .pts). Prism Scripts can use the same rules that Packages and Configuration Groups can. I would try putting the following into a .pts file:
/ScriptVer 5
IF NOT EXISTS "C:\java.exe"
/ip \\server\share\java.pwc
ENDIF
/ip \\server\share\app.pwc
You could then push this script out as a Script Task. It would run, check to see if Java is not installed (you'd want to edit the rule so it works in your environment) and if it is not then installs it. Either way, the script will continue on and install the app.
New Boundary Technologies Support support@newboundary.com |
| |
|
|