MSFN Forum: How to run AutoIt3 script in RunOnceEx? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to run AutoIt3 script in RunOnceEx? Rate Topic: -----

#1 User is offline   f9cator 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 01-October 03

  Posted 01 January 2006 - 11:49 PM

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" /f


Did I miss out something in the code or this is not the correct way to do it?

Help is much appreciated.

Thank you.

f9cator

This post has been edited by f9cator: 02 January 2006 - 04:39 AM



#2 User is offline   blinkdt 

  • Somewhat Knowledgeable
  • PipPipPipPip
  • Group: Members
  • Posts: 582
  • Joined: 30-September 03
  • OS:Vista Ultimate x64
  • Country: Country Flag

Posted 02 January 2006 - 01:52 AM

Try this:
REG ADD %KEY%\015 /V 1 /D "%CDROM%\software\autoit3.exe %CDROM%\software\install_avant.au3" /f


#3 User is offline   f9cator 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 01-October 03

Posted 02 January 2006 - 04:37 AM

It works!

Thanks blinkdt!

You are a genius. :)

#4 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 02 January 2006 - 05:12 AM

View Postf9cator, on Jan 2 2006, 08:37 PM, said:

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.

This post has been edited by MHz: 02 January 2006 - 05:12 AM


#5 User is offline   BoardBabe 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,419
  • Joined: 04-October 04

Posted 02 January 2006 - 09:09 AM

Why not compile the script to .exe?

#6 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,615
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 January 2006 - 03:40 AM

View PostMHz, on Jan 2 2006, 10:12 PM, said:

View Postf9cator, on Jan 2 2006, 08:37 PM, said:

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 :thumbup

MC.

#7 User is offline   muiz 

  • SPECIAL
  • PipPipPipPipPipPip
  • Group: Banned
  • Posts: 1,055
  • Joined: 03-August 03
  • OS:none specified
  • Country: Country Flag

Posted 03 January 2006 - 08:45 PM

View PostBoardBabe, on Jan 2 2006, 04:09 PM, said:

Why not compile the script to .exe?

thats how i do it , works for me

#8 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,615
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 January 2006 - 09:03 PM

View Postmuiz, on Jan 4 2006, 01:45 PM, said:

View PostBoardBabe, on Jan 2 2006, 04:09 PM, said:

Why not compile the script to .exe?

thats how i do it , works for me


Yeah,but ya don't need to..

#9 User is offline   Swimming_Bird 

  • I want the NHL Back
  • PipPipPip
  • Group: Members
  • Posts: 378
  • Joined: 12-October 04

Posted 04 January 2006 - 09:37 PM

View PostMAVERICKS CHOICE, on Jan 3 2006, 09:03 PM, said:

View Postmuiz, on Jan 4 2006, 01:45 PM, said:

View PostBoardBabe, on Jan 2 2006, 04:09 PM, said:

Why not compile the script to .exe?

thats how i do it , works for me


Yeah,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

#10 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 05 January 2006 - 05:14 AM

View PostSwimming_Bird, on Jan 5 2006, 01:37 PM, said:

View PostMAVERICKS CHOICE, on Jan 3 2006, 09:03 PM, said:

View Postmuiz, on Jan 4 2006, 01:45 PM, said:

View PostBoardBabe, on Jan 2 2006, 04:09 PM, said:

Why not compile the script to .exe?

thats how i do it , works for me


Yeah,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

What features are better when compiled ? :huh:

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.

#11 User is offline   Nucleus 

  • Member
  • PipPip
  • Group: Members
  • Posts: 267
  • Joined: 15-February 05

Posted 05 January 2006 - 05:55 AM

View Postf9cator, on Jan 2 2006, 07:49 AM, said:

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" /f


Did I miss out something in the code or this is not the correct way to do it?

Help is much appreciated.

Thank you.

f9cator


another way

REG ADD %KEY%\015 /V 1 /D "%CDROM%\software\autoit3.exe \"%~dp0install_avant.au3\"" /f


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy