Hello All,
I’m trying something like this for getting MSTeams installed product version, however i’m getting Incompatible type. Could anyone help on getting the version detail.
q: (If (exists folder whose (name of it as lowercase starts with “msteams”) of folder “C:\Program Files\WindowsApps”) Then ((product version of it) of files “ms-teams.exe” of folders whose (name of it as lowercase starts with “msteams”) of folder “C:\Program Files\WindowsApps”) Else “No New MS Teams Installed”)
E: Incompatible types.
Try this:
Q: (If (exists folder whose (name of it as lowercase starts with "msteams") of folder "C:\Program Files\WindowsApps") Then ((product version of it as string) of files "ms-teams.exe" of folders whose (name of it as string as lowercase starts with "msteams" as lowercase) of folder "C:\Program Files\WindowsApps") Else "No New MS Teams Installed")
A: No New MS Teams Installed
T: 39.571 ms
I: plural string
This is what I am using for MS Teams version, give it a try.
Q: if exists files whose (name of it contains "Teams.exe") of folders "Microsoft\Teams\current" of folders ("Program Files";"Program Files (x86)") of folder (name of drive of system folder) then version of files whose (name of it contains "Teams.exe") of folders "Microsoft\Teams\current" of folders ("Program Files";"Program Files (x86)") of folder (name of drive of system folder) as string else "N/A"
A: 1.6.0.33567
T: 28.508 ms
I: singular string
I dont know if older version of Teams or MSI based versions exists, but for the current UWP version, it appears to regsiter in the OS with a App Path so means its inspectable as a regapp.
Q: version of regapps "ms-teams.exe"
A: 24033.807.2716.7297
T: 1.210 ms
I: singular version
Possible older or Win32 vesions or “teams.exe” also register so can be inspected via regapps, eg
Q: versions of regapps ("ms-teams.exe";"teams.exe")
A: 24033.807.2716.7297
T: 1.293 ms
I: plural version
Hi All,
Could anyone help on getting the MS-Team New 32 Bit Version, Above one will fetch both 32 and 64 Bit
C:\Program Files\WindowsApps\MSTeams_23306.3315.2560.6525_x86__8wekyb3d8bbwe\ms-teams.exe
C:\Program Files\WindowsApps\MSTeams_23306.3315.2560.6525_x64__8wekyb3d8bbwe\ms-teams.exe
I can’t test this with 32 bit Teams but maybe check for the “x86” string in the pathname of the regapp? THe example demos a possible 64 bit version check, just change it for x86.
Q: regapps "ms-teams.exe" whose (pathname of it contains "x64")
A: "ms-teams.exe" "24033.807.2716.7297" "Microsoft Teams (work or school)" "24033.807.2716.7297" "Microsoft Corporation"
T: 3.225 ms
I: plural application
If you only need a simple boolean check, see if the x64 file inspector maybe of use.
Q: exists x64 file (pathname of regapp "ms-teams.exe")
A: True
T: 1.642 ms
I: singular boolean