Djordhan Posted September 16, 2011 Share Posted September 16, 2011 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 More sharing options...
wakillon Posted September 16, 2011 Share Posted September 16, 2011 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.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Djordhan Posted September 16, 2011 Author Share Posted September 16, 2011 Works fine thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now