Hello,

I have written a custom action that needs to be running only on Windows 2008 Server machine OR Windows 2008 Server R2 machine. I need the conditions for the custom actions so that it runs only on these 2 OS.

Any suggestions on the same.

Regards,
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 need to be conditioning your custom actions based on a combination of the VersionNT, WindowsBuild (and possibly) ServicePackLevel properties which the Windows Installer sets automatically at install time. These are documented here and here


Spartacus
Answered 09/23/2011 by: spartacus
Black Belt

Please log in to comment
0
your condition will have to combine checks on VersionNT, MsiNTProductType and possibly ServicePackLevel properties.
All of these can be found on MSDN. Also see here for some examples.

EDIT: ... soo close Graham... [:(] But at least we seem to be well in sync [:D]
Answered 09/23/2011 by: pjgeutjens
Red Belt

Please log in to comment
0
So....either you two retain an encyclopaedic knowledge of MSDN article numbers or there exists some kind of Internet tool that enables people to find out things like this. Mind you, LOL, I think, if such a thing existed, we would have heard about it by now, right?
Answered 09/23/2011 by: VBScab
Red Belt

Please log in to comment
0
Thanks a lot. I actually checked the windows Property but they looked same for windows Vista and 2008.

I will try by using this condition : VersionNT = 600 AND MsiNTProductType = 3

:)
Answered 09/23/2011 by: manitha21
Senior Yellow Belt

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