ChiDragon Posted April 21, 2006 Share Posted April 21, 2006 (edited) 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 aboveA few example installations are included. Enjoy.RunOnceEx_withCD.au3 Edited April 22, 2006 by ChiDragon Link to comment Share on other sites More sharing options...
muiz Posted April 22, 2006 Share Posted April 22, 2006 And from cdrom? works the same? Link to comment Share on other sites More sharing options...
clavicle Posted April 22, 2006 Share Posted April 22, 2006 From the script, as it appears, cdrom option is not selected. This may have to be defined. Link to comment Share on other sites More sharing options...
ChiDragon Posted April 22, 2006 Author Share Posted April 22, 2006 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 More sharing options...
clavicle Posted April 22, 2006 Share Posted April 22, 2006 Yes this one is good script to cover both installation types. ;-) Link to comment Share on other sites More sharing options...
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