Jump to content
Sign in to follow this  
Djordhan

Change .au3 file type "Open" action via registry ?

Recommended Posts

Djordhan

Hi there,

I'm trying to install autoit silently on multiple computer and I want to set the .au3 open action to Edit Script instead of the default Run Script action upon file opening.

Is there a way to do this with silent installation, if not, how can I change that action automatically after the installation (registry, command line, etc..)

NOTE: I tried using the "ftype" command but it doesn't work.

Thank you!

Share this post


Link to post
Share on other sites
wakillon

Try this

RegWrite ( 'HKEY_CLASSES_ROOT\AutoIt3Script\Shell', "", "REG_SZ", 'Open' )
RegWrite ( 'HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Open', "", "REG_SZ", 'Open' )
RegWrite ( 'HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Open\Command', "", "REG_SZ", '"' & @ProgramFilesDir & '\AutoIt3\SciTE\SciTE.exe" "%1"' )
RegWrite ( 'HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Run', "", "REG_SZ", 'Run Script' )
RegWrite ( 'HKEY_CLASSES_ROOT\AutoIt3Script\Shell\Run\Command', "", "REG_SZ", '"' & @ProgramFilesDir & '\AutoIt3\AutoIt3.exe" "%1" %*' )

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
Djordhan

Works fine thanks.

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  

×