Hi @SteveHernou
What I ended up doing was using the install location to determine the bitness. You'll have to add the two file locations to the File Scanning section in Lansweeper (I used Winword.exe):
C:\Program Files\Microsoft Office\root\Office16\Winword.exe
C:\Program Files (x86)\Microsoft Office\root\Office16\Winword.exe
I put this in the Select statement:
Case
When
tblFileVersions.FilePathfull =
'C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE' And
tblFileVersions.Found = 1 Then '64-bit'
When
tblFileVersions.FilePathfull =
'C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE' And
tblFileVersions.Found = 1 Then '32-bit'
End As 'Architecture',
These two lines in the From statement:
Inner Join tblSoftware On tblAssets_1.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
And this in the Where statement:
((tblFileVersions.FilePathfull =
'C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE' And
tblFileVersions.Found = 1) Or (tblFileVersions.FilePathfull =
'C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE' And
tblFileVersions.Found = 1))