Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

setting A3X to run like EXE ??

$
0
0
G'day All

As A3X files arn't (as far as I know) deleted by Antivirus programs I was thinking of compiling all of my scripts as A3X and avoid the constant issue of making exceptions in the Antivirus software or getting my programs deleted.

Now I don't want to install the FULL AutoIt install on every computer I encounter so I was thinking a nice small installer that does the following.
  • Checks if .A3X regisitry key exists - If it is then exit

  • if X86 or X64 then Copy Autoit3.exe to  @ProgramFilesDir & "\autoit"

  • If X64 then Copy Autoit3_X64.exe to  @ProgramFilesDir & "\autoit"

  • Add .A3X to the registry
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.a3x]
@="AutoIt3XScript"

[HKEY_CLASSES_ROOT\AutoIt3XScript]
@="AutoIt v3 Encoded Script"

[HKEY_CLASSES_ROOT\AutoIt3XScript\DefaultIcon]
@="C:\\Program Files (x86)\\AutoIt3\\Icons\\au3script_v10.ico"

[HKEY_CLASSES_ROOT\AutoIt3XScript\Shell]
@="Run"

[HKEY_CLASSES_ROOT\AutoIt3XScript\Shell\Run]
@="Run Script"

[HKEY_CLASSES_ROOT\AutoIt3XScript\Shell\Run\Command]
@="\"C:\\Program Files (x86)\\AutoIt3\\AutoIt3.exe\" \"%1\" %*"


As far as I can see that is all that would be required.  Well maybe a version check and error checking of course. :)

Sooo has anyone already done this?  If so can you post your solution?
Is there such a thing as an X64 ".A3X" file?  Does AutoIt.exe handle this?

Are there any flaws in this idea?

Thanks for your feedback!
John Morrison

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>