Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Installed path

Hi,
How do I find the installed path of a particular application using VB Script?
Thanks
[106 byte] By [shers] at [2007-11-11 8:19:26]
# 1 Re: Installed path
Did you try Google? http://www.google.com/search?q=vbscript+installed+application+path
Phil Weber at 2007-11-11 17:25:36 >
# 2 Re: Installed path
Phil
This didn't help.

Thanks
shers at 2007-11-11 17:26:36 >
# 3 Re: Installed path
Why didn't it help? Did it generate errors?
Didn't return what you were looking for?
Doesn't work in all situations?

What? We need more input if you need more answers...
edburdo at 2007-11-11 17:27:45 >
# 4 Re: Installed path
Ok. Let me explain my requirement. I am trying to locate the path of AutoCAD 2006 Application in a system. This is needed since certain PCs are 64 bit in our company. So by default, every application is getting installed in a folder in C drive called Program Files(X86), whereas, there is also a folder called Program Files like any other system. If I run the VB Script from the network, how do I know if the application is installed in Program Files folder or Program Files(X86) folder in the user's PC?
shers at 2007-11-11 17:28:39 >
# 5 Re: Installed path
Does AutoCAD create an entry under HKEY_LOCAL_MACHINE\Software containing its install location? If not, can you check for the AutoCAD directory under both the Program Files and Program Files(X86) folders?
Phil Weber at 2007-11-11 17:29:40 >
# 6 Re: Installed path
AutoCAD creates an entry under HKEY_LOCAL_MACHINE\Software\W0w64...\ and not under HKEY_LOCAL_MACHINE\Software. Very strange!
AutoCAD creates a folder called 'Autodesk Building System 2006' inside the Program Files(X86) folder and not in Program Files folder.

Thanks
shers at 2007-11-11 17:30:40 >