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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 02/10/2009 by: VBScab
Red Belt

Please log in to comment
0
hey, thx for the quick answer. I just had to change the "ProductState" to "-1"
Answered 02/10/2009 by: mac-duff
Second Degree Blue Belt

Please log in to comment
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'.
Answered 02/10/2009 by: VBScab
Red Belt

Please log in to comment
0
ought to have been 'If Not Installed' - I think VBScab meant just 'Not Installed' [;)]
Answered 02/10/2009 by: captain_planet
Second Degree Brown Belt

Please log in to comment
0
Not my day, is it? LOL . Thanks Cap'n. How are the other Planeteers?
Answered 02/10/2009 by: VBScab
Red Belt

Please log in to comment
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!!
Answered 02/10/2009 by: captain_planet
Second Degree Brown Belt

Please log in to comment
0
That Hoggish Greedly, eh? What a rascal!
Answered 02/10/2009 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity