January 2, 200620 yr Hi,I tried to run the AutoIt3 script in RunOnceEx but was unsucessful. Below is how I added the codes. Both autoit3.exe and install_avant.au3 files are in the 'software' folder.REG ADD %KEY%\015 /V 1 /D "%CDROM%\software\autoit3 install_avant.au3" /fDid I miss out something in the code or this is not the correct way to do it?Help is much appreciated.Thank you.f9cator Edited January 2, 200620 yr by f9cator
January 2, 200620 yr Try this:REG ADD %KEY%\015 /V 1 /D "%CDROM%\software\autoit3.exe %CDROM%\software\install_avant.au3" /f
January 2, 200620 yr It works!Thanks blinkdt!You are a genius. I think so too. For the question of where the actual working directory is when executing a file from the registry, I received this result with executing this code.MsgBox(0, 'WorkingDir is ...', @WorkingDir)The return was C:\If you had you script within the systemdrive path then your original code may have worked. Nothing better though of being explicit with the fullpath though. Edited January 2, 200620 yr by MHz
January 3, 200620 yr It works!Thanks blinkdt!You are a genius. I think so too. For the question of where the actual working directory is when executing a file from the registry, I received this result with executing this code.MsgBox(0, 'WorkingDir is ...', @WorkingDir)The return was C:\If you had you script within the systemdrive path then your original code may have worked. Nothing better though of being explicit with the fullpath though.Luv this place grreat minds MC.
January 4, 200620 yr Why not compile the script to .exe?thats how i do it , works for meYeah,but ya don't need to..
January 5, 200620 yr Why not compile the script to .exe?thats how i do it , works for meYeah,but ya don't need to..if you need to worry about the space wasted in compiling all ur scripts then there are much easier ways to save space.not to mention you actually get some added features from using a compiled script
January 5, 200620 yr Why not compile the script to .exe?thats how i do it , works for meYeah,but ya don't need to..if you need to worry about the space wasted in compiling all ur scripts then there are much easier ways to save space.not to mention you actually get some added features from using a compiled scriptWhat features are better when compiled ? Compiling+ Standalone executable.+ Easier commandline.- Need to use compile Directives to change resource information for script version identification.UnCompiled+ Easy to edit.+ No Compiler Directives to worry about.+ Space saving.+ Easy to check the contents before burning.+ Any #Include files can be shared.+ No need to store script sources separately for Compile.+ No need to decompile.+ Less chance of curruption.+ No false-positive virus alerts.+ More AutoIt scripts used makes Uncompiled scripts easier to manage.+ Can do anything a compiled script can do, other then the AutoIt3.exe needed to execute.To be honest, compiling absolutely sucks when not required. So does 1 line statements without some facts to show.My whole UA Disk runs on uncompiled autoit scripts and I have mentioned my simple method before shown here.
January 5, 200620 yr Hi,I tried to run the AutoIt3 script in RunOnceEx but was unsucessful. Below is how I added the codes. Both autoit3.exe and install_avant.au3 files are in the 'software' folder.REG ADD %KEY%\015 /V 1 /D "%CDROM%\software\autoit3 install_avant.au3" /fDid I miss out something in the code or this is not the correct way to do it?Help is much appreciated.Thank you.f9catoranother wayREG ADD %KEY%\015 /V 1 /D "%CDROM%\software\autoit3.exe \"%~dp0install_avant.au3\"" /f
Create an account or sign in to comment