Notifications
Clear all

[Closed] Get the product update version of Max installed?

Does anyone know how to determine which product updates or service packs have been installed for any version of Max?

I know about maxVersion() … but I am not certain how to tell if a product update is installed. For example, I need to determine if a user is not using the latest Product Update or if they have installed PU2+ for Max 2012, etc.

2 Replies

You can use dotNet to query the version of the max exe itself:


versinfo = dotnetclass "System.Diagnostics.FileVersionInfo"
myFI = versinfo.GetVersionInfo (pathConfig.appendPath (pathConfig.GetDir #maxroot) "3dsmax.exe")
maxExeVersion = myFI.FileVersion
--Result:
"14.12.508.0"

--Check for max 2012 SP1+
maxExeVersionArr = filterString maxExeVersion "."
if maxExeVer[1] == "14" and maxExeVer[2] < "1" do (
	allowSomething = false
)

Additionally you can find the OS version:


osVersion = (dotNetClass "System.Environment").osVersion.versionString
--Result:
"Microsoft Windows NT 6.1.7601 Service Pack 1"

Thanks Tim, that’s exactly what I needed. I am slowly starting to think in terms of .NET but it’s taking me time…