Fixlet for putty?

(imported topic written by johnsonbj91)

I’ve started working on a fixlet for putty to upgrade it to the most current version.

I have two questions (one basic and the other more of a scripting question)

So far, this is what I have for validating if putty is on the system or not with it’s version number:

if (x64 of operating system) then (

if (exists x64 file 
"C:\Program Files (x86)\PuTTY\putty.exe") then ((version of x64 file  
"C:\Program Files (x86)\PuTTY\putty.exe") as string) 

else 
"Does Not Exist") 

else (

if (exists file 
"C:\Program Files (x86)\PuTTY\putty.exe") then ((version of file  
"C:\Program Files (x86)\PuTTY\putty.exe") as string) 

else 
"Does Not Exist")

My question is: I’m not sure how to structure the rest of it, in addition to finding any stray executable on desktops, etc. (I’m covering for someone on vacation and sadly, isn’t my fulltime job i.e. I’m a newbie at the relevance scripting language but at least familiar with Boolean logic)

Another question: when I’m passing the silent option to the putty install, do I use the TEM tags for silent, or do I use the putty ones?

Thanks!