From: David C. Holley on 4 Mar 2010 19:09 How would I use code to check if an application is installed? Just look for the *.exe in the expected location?
From: Al Dunbar on 4 Mar 2010 22:33 "David C. Holley" <David.C.Holley> wrote in message news:O6srTg$uKHA.1796(a)TK2MSFTNGP02.phx.gbl... > How would I use code to check if an application is installed? Just look > for the *.exe in the expected location? That depends on the application. /Al
From: mayayana on 5 Mar 2010 00:35 As Al said, it depends. Windows doesn't have a standard system. For instance, if I install Regmon I'll just make a folder named "Sysinternals", unzip regmon.exe into that, and make a shortcut somewhere. There's no way for you to check whether I have Regmon unless you scan the whole disk. With Windows Installer you can list installed software, but most software is not installed that way, so it's not of much value. The standard method aside from Windows Installer is to register the program EXE under: HKLM\Software\Microsoft\Windows\CurrentVersion \App Paths\ProgramName.exe\ But that's not always done. The best method is to research exactly how the software in question is installed. If you don't have a specific program in mind then see here for script samples that demonstrate the pros and cons of different methods: http://www.jsware.net/jsware/scripts.php5#enumsoft > How would I use code to check if an application is installed? Just look for > the *.exe in the expected location? > >
|
Pages: 1 Prev: Trim? Next: Check 'If LDAP field exists for user then... |