Sign in to follow this  
Followers 0
ZenKensei

standard for adlib function usage?

2 posts in this topic

Group,

I ran across an issue recently while creating an install front end used to install 2 different applications (one after the other). I created seperate scripts to start with so I could nail down the automated installation of each application. In each seperate script I used an Adlib function to deal with issues such as if the application were already installed, etc. As seperate scripts they work without issues, as a combined script they work without issue only as long as no adlib functionality is required (i.e. the application is not previously detected as installed,etc.). I created the combined script trying to use 2 seperate adlib 'calls', such as creating one adlib section before each seperate function to install an application:

AdlibEnable ("application1")

Application 1 installation code

AdlibEnable ("application2")

Application 2 installation code

Func application1

code

Endfunc

Func application2

code

Endfunc

I assume I'm doing something wrong, perhaps there can be only one adlib function/section per script and I must combine all possibly needed adlib actions in one function? Also, the main code used to install each seperate application is being called from its own function if that makes a difference? Just want to make sure that I'm using the best standard practice for the adlib function...

Thanks in advance,

ZK

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Maybe use AdlibDisable() at the end of the first part of the script, that installes the first app. Then have the second AdlibEnable() call the second function for the second app installation.

I'm not 100% on that, b/c I'm not sure how AdlibDisable works. But, it's worth a try,

I hope that helps,

Ian

Edited by ioliver

"Blessed be the name of the Lord" - Job 1:21Check out Search IMF

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0