Djordhan Posted September 16, 2011 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!
wakillon Posted September 16, 2011 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.18.0 X86 - SciTE 4.4.6.0 - WIN 11 24H2 X64 - Other Examples Scripts
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