I’m not a coder (obviously), but I understand what wildcards do, and was very surprised to learn that IEM’s relevance language didn’t really have them. I read the whole guide (two hours of my life I will never get back…) and not once was the word wildcard even mentioned. I’m trying to use a wildcard in a file path, because the PCs I’m am subjecting this code to all have different file paths.
Q: if (name of operating system starts with "Win") then if exists folder (descendants whose(name of it as lowercase Begins with "FileMaker Pro") of folders "FileMaker" of folders then version of regapp "FileMaker Pro.exe" as string else "Not Installed" else if (name of operating system starts with "Mac") then if exists folder "/Applications/FileMaker Pro.app" then version of folder "/Applications/FileMaker Pro.app" as string else "Not Installed" else "N/A"
E: This expression could not be parsed.
FileMaker installs it’s junk to C:\Program Files (x86)\FileMaker\FileMaker <version number>\
Since I am trying to determine how many poor souls are using FileMaker out there and what versions they are on, the install paths would be different. The usual options of * and # don’t work. How can I place the path in there, with a wildcard? Above is my latest attempt. I apologize for the snark, and for the sarcasm, but I am really frustrated and tired. Tired of spending hours and days getting IEM to do the most basic of tasks.
This doesn’t work either…
Q: if (name of operating system starts with "Win") then if exists file "C:\Program Files (x86)\FileMaker\" & FileMaker Pro & "\FileMaker Pro.exe" then version of file "FileMaker Pro.exe" as string else "Not Installed" else if (name of operating system starts with "Mac") then if exists folder "/Applications/FileMaker Pro.app" then version of folder "/Applications/FileMaker Pro.app" as string else "Not Installed" else "N/A"
E: The operator "filemaker pro" is not defined.
Same with this…
Q: if (name of operating system starts with "Win") then if exists value "Publisher" whose ((it = "FileMaker, Inc.") of (it as string as version)) of key "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" of registry then version of value "DisplayVersion" as string else "Not Installed" else if (name of operating system starts with "Mac") then if exists folder "/Applications/FileMaker Pro.app" then version of folder "/Applications/FileMaker Pro.app" as string else "Not Installed" else "N/A"
A: Not Installed
T: 0.231 ms
And again…
Q: if (name of operating system starts with "Win") then if (exists folder "C:\Program Files (x86)\FileMaker") AND (exists folder whose ((it starts with "FileMaker Pro" and it contains file "FileMaker Pro.exe") of (name of it as lowercase))) then version of "FileMaker Pro.exe" as string else "Not Installed" else if (name of operating system starts with "Mac") then if exists folder "/Applications/FileMaker Pro.app" then version of folder "/Applications/FileMaker Pro.app" as string else "Not Installed" else "N/A"
E: The operator "folder" is not defined.
Thanks