Jump to content
Sign in to follow this  
kiman

Vista script compatibility

Recommended Posts

kiman

Hello,

I have several installer programs and scripts that have worked under XP without any problems. I've been testing Windows Vista for awhile now, and have been in the process of trying to test for compatibility issues, and update our software. When I run the installers I've made on Vista, I get the following error:

Line 0 (File "examplefilename...."):

RunWait(Quote($TempInstall))

Error: Unable to execute the external program

The requested operation requires elevation.

I'm able to run the installer in safe mode without any errors, so I didn't know if this is due to the user account protection restricting access or what. When using $TempInstall, does it extract the contents of the executable to a set path, or to a temporary folder that varies depending on the system? Since the user accounts in Vista are now stored in the Users folder, instead of Documents and Settings, I didn't know if that would cause problems depending on how the $TempInstall would extract to the hard drive.

I didn't know if anyone had any ideas to try, or if any Vista compatibility was in the works. I've compiled the scripts with version 3.2.1.7beta. I'm definately not an expert with autoit, so if anyone is able to help, I greatly appreciate it. Thanks!

kiman

Share this post


Link to post
Share on other sites
this-is-me

The requested operation requires elevation.

There will be a new #directive in upcoming betas that will allow a script like yours to require admin access in Vista. This should help to eliminate issues of this kind.

Who else would I be?

Share this post


Link to post
Share on other sites
Jos

This was looked at and Jon added ShellExecute and ShellExecuteWait function for use with Vista. :lmao:

There is also a new section in the helpfile: AutoIt on Windows Vista

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Valik

There will be a new #directive in upcoming betas that will allow a script like yours to require admin access in Vista. This should help to eliminate issues of this kind.

Errr, it's already in there. The "#RequireAdmin" directive has been there for a few releases now. There's also a page on Vista compatibility somewhere. Searching the help file for "Vista" should give you information to help you.

Share this post


Link to post
Share on other sites
kiman

Thanks, guys!

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  

×