Jump to content

...


Recommended Posts

  • Moderators

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.

Link to comment
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.
Link to comment
Share on other sites

Link to comment
Share on other sites

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...