Sign in to follow this  
Followers 0
stuka

...

5 posts in this topic

#1 ·  Posted (edited)

.

Edited by stuka

Share this post


Link to post
Share on other sites



I have a script which installs in the Program Files directory and it uses an .ini file to set its settings.

Changing the settings using the .ini file works fine on XP but does not seem to work on Vista, could it be due to UAC? Disabling UAC and the restarting the computer seems to solve the problem but isn't the best solution.

Is there another way to do this without disabling UAC everytime the script wants to change a value in the .ini file using IniWrite?

Try a different directory, Program Files Directory in Vista and Win 7 are protected from File writing (same as IniWrite)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

I have a script which installs in the Program Files directory and it uses an .ini file to set its settings.

Changing the settings using the .ini file works fine on XP but does not seem to work on Vista, could it be due to UAC? Disabling UAC and the restarting the computer seems to solve the problem but isn't the best solution.

Is there another way to do this without disabling UAC everytime the script wants to change a value in the .ini file using IniWrite?

Change permissions to your INI-file and everything will work, only that you need to have administrator rights.

Share this post


Link to post
Share on other sites

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  
Followers 0