Jump to content

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


Djordhan
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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

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...