View Full Version : Limit Install
stOrMOnE
12-16-2003, 11:58 AM
Well something isn't clear for me...
I'm just trying to limit the Setup to be installed afther 30 days...
So I did this:
IF(%JulianDate% - #JULIANDATE# > 30)
Abort
END IF
The result is:
Field: Condition
Error: Missing operator before open parenthesis.
There is an operator missing before the open parenthesis at position 3
Not sure whats going one I just copy and paste what I found on this Forum to do the trick...
BTW. I pasted it in the StartUp Properties
regards
s!
Darryl
12-16-2003, 12:32 PM
This is just a hunch, but I think you may be entering all of that code in the Condition field of the IF statement. If this is the case, what you need to do is only add the text %JulianDate% - #JULIANDATE# > 30 in the Condition field. Once you exit out of the IF control structure, you will see the action added to the code window along with the END IF.
Next you would enter an Abort action found in the Control Structures category.
stOrMOnE
12-16-2003, 12:38 PM
Ok got it now thanx for your fast replay and sorry about my dumb question...
May I asked you an additional question?
Now while the Setup checks for the date how can I display a Message or dialog to the User telling them the setup had expired instead of just canceling the setup????
kindest regards
s!
Darryl
12-16-2003, 01:31 PM
There are a couple of methods you could use.
1) Bofore your Abort action, you could add a "Show Message Box" action found in the Dialogs action category to notify the user.
2) Instead of performing the condition on the Startup actions tab, you could add an Abort Screen as your first screen and add the condition %JulianDate% - #JULIANDATE# > 30 to its Screen Condition. The screen condition can be found on the Settings tab of the screen's properties dialog.
stOrMOnE
12-16-2003, 02:04 PM
Your second example will fit my needs well!
I just have the last addtional question to it...
I was thinking maybe I could use the abort dialog also for checking other stuff two before I let users install so I did this:
%SysLanguage% = 9 %IsWinXP% = False OR %IsUserNTAdmin% = False OR %JulianDate% - #JULIANDATE# > 30
The Problem here is I got a message telling me:
Values must be seperated!
I guess the seperator is missing between SysLanguage and IsWinXP but what is the seperator???? I try'd ";","," but none of them I know I'm dumb so sorry again for that question!
best regards
s!
Darryl
12-16-2003, 02:34 PM
It looks like you are missing the AND in between the first condition. It may also help for readability to have brackets around them such as:
(%SysLanguage% = 9) AND ((%IsWinXP% = False) OR (%IsUserNTAdmin% = False) OR (%JulianDate% - #JULIANDATE# > 30))
stOrMOnE
12-16-2003, 02:34 PM
Well I did this now:
(%SysLanguage% = 7) AND
(%IsWinXP% = False OR %IsUserNTAdmin% = False) OR %JulianDate% - #JULIANDATE# > 30
Didn't get any error anymore but now the problem is I have 2 abort dialogs one english and one in another language but the setup now only shows the english one which is wrong!
can you help?
regards
s!
Darryl
12-16-2003, 03:16 PM
The variable %SysLanguage% is actually the language that is being used in the install based on the languages you are supporting. In your case, the language you have defined is German. If you have the German language module included in the install, it should work as you intended, however likely you don't in which case, %SysLanguage% will be set to the language you have specified as the default language, English.
So you have a couple of options:
1) You could include the German language module found in Design->General Design, Languages tab.
2) You could use the variable %AbsSysLanguage% in the conditions instead of %SysLanguage%
Hope that helps.
stOrMOnE
12-16-2003, 03:38 PM
I did anything suggested now but it still displays the english dialog instead of the german I'm helpless here...
best regards
s!
stOrMOnE
12-17-2003, 09:09 AM
Well maybe if you have tzhe time Darryl I can send you the full project file really I have no idea whats wrong but:
On an English machine it display's the english abort dialog...
On a German machine it also display's the english abort dialog...
It doesn't change not sure what to do, have done all you suggested but doesnt help...
best regards
s!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.