Jump to content
Sign in to follow this  

Finding installed path

Recommended Posts


Greetings all!

I have a friend whom I am trying to introduce to AutoIt, since it's such a great tool.  He is in need of a script that will start his company's software on remote systems.  My immediate thought was that examining @AutoItExe would provide him with a template to satisfy his needs, but it turns out that the return from that macro is only for a running process, and he needs the return for the installation files, whether the application is running or not.  Besides, I couldn't fine the code for macros.  Perhaps someone can point me to macro codes? 

I pointed him to

 See  http://msdn.microsoft.com/en-us/library/windows/desktop/ee872121(v=vs.85).aspx   for details of which registry entry to read with AutoIt and also which registry write entry to write into the install code to allow you to read it later. 

The above link will point to the registry entry if the installation file registers the install path, but it seems he may need more help.

Is there anything in AutoIt which will do this other than FileExists, which would be inadequate if a customer used a custom install, including a custom directory?

Wow! I just posted without any code!  I feel young again!

Love this forum:  It's informative, it's entertaining, it's a life-saver at times, and it's a slap in the face when it needs to be.  What more can I ask for?


Meds.  They're not just for breakfast anymore. :'(

Share this post

Link to post
Share on other sites

It sounds like you might want to use a "recursive search". A quick search of the forum came up with this UDF.

Share this post

Link to post
Share on other sites

So, you want to know where the installation files are, even if a custom path is chosen during install?

I would suggest the use of a registry key like HKCUSoftware{YourSofwareName}: InstallPath REG_SZ c:.myUglyClientChoosenPath

Then you just need to list and check the files on that path.

Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.