Jump to content

Little AutoIt "RunOnceEx" writer


Recommended Posts

I made this simple "RunOnceEx" script in AutoIt the other day and I figured I'd share it. It's basically just two functions that auto-increment the keys/values they add to the registry.

Usage is easy, just use ROE1() to add the name of the program to be installed, followed by however many ROE2() commands are necessary to install the program.

For fully CD-based installs, use GetCD() with a filename to search for the right CD drive, then use CD: wherever required in your paths.

Advantages to using a RunOnceEx.cmd file:

- Easier syntax...

- No need to fix things like quotes (in a CMD you need to change " to \")

- No need to use CMDOW to get it to run silently, it already does

- No need to add numbers to get everything to run in the order you want, just script it in the proper order

- Adding additional programs later on is easier due to the above

A few example installations are included. Enjoy.

RunOnceEx_withCD.au3

Edited by ChiDragon
Link to comment
Share on other sites


I edited the first post with an updated script to allow for CD-only installs as well. It can easily be changed to remove the need to search for a file on the disc if you only have one CD drive, or if you know that the CD drive it's in will always be first in letter order. Let me know if you want that...

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...