christinesmith

picking program files in 64 bit

2 posts in this topic

#1 ·  Posted

My exe should run in both 32 and 64 OS, so I am compiling it as 32 bit exe.

But in 64 bit, it is picking C:\Program files (x86) for @ProgramFilesDir.

Can anyone suggest how to use C:\Program files\ in both 32 and 64 bit OS.

Share this post


Link to post
Share on other sites



#2 ·  Posted

Hi, and welcome to the autoit forum

Basically you can use a function like this to return you a path.. you only need to customize it to your needs

 

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