/build/static/layout/Breadcrumb_cap_w.png

Script shall only run by install

Hi,
I use a script for un- and install and I want that one action only execute when the product will be installed. my if clause is like that:
If Session.Property("Installed") <> "" or Session.Property("ProductState") = "1" Then

and I also tried
If Session.Property("Installed") = ""

but then it still runs by selfrepair and uninstall too

Can please somebody help me with that?
Thx

0 Comments   [ + ] Show comments

Answers (7)

Posted by: anonymous_9363 15 years ago
Red Belt
0
You should condition the action OUTSIDE of the action itself.

- Save a copy of your package for back-up purposes
- Remove the tests you have in the script itself
- Find the action in the InstallExecuteSequence table
- Add the condition 'If Not Installed'
- Save the package
- Test
Posted by: mac-duff 15 years ago
Second Degree Blue Belt
0
hey, thx for the quick answer. I just had to change the "ProductState" to "-1"
Posted by: anonymous_9363 15 years ago
Red Belt
0
...which means that you're still doing it the wrong way. You may notice that I have edited my response because, of course, that condition ought to have been 'If Not Installed'. Sorry about that. I should also have explained that case is important with conditions, particularly the word 'Installed'.
Posted by: captain_planet 15 years ago
Black Belt
0
ought to have been 'If Not Installed' - I think VBScab meant just 'Not Installed' [;)]
Posted by: anonymous_9363 15 years ago
Red Belt
0
Not my day, is it? LOL . Thanks Cap'n. How are the other Planeteers?
Posted by: captain_planet 15 years ago
Black Belt
0
How are the other Planeteers? Ha ha. They're not bad thanks. Currently trying to save the world from natural disaster and all the Ecovillains!!
Posted by: anonymous_9363 15 years ago
Red Belt
0
That Hoggish Greedly, eh? What a rascal!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ