Wacken Posted February 20, 2007 Posted February 20, 2007 Using the function: FileInstall ( "source", "dest" [, flag] ) I would to make an installer for multiple different but simmilar applications. I would like to place the "source" paths and "dest" paths that go with it on top of the file. However: "The source path of the file to compile. This must be a literal string; it cannot be a variable." Is there no option in the compiler to make words that will be replaced by the string i provide with for word and can be used for this function? I used this in CPP in the past, but i don't know the right word for it sort of constants that are replaced at compile time.
Shevilie Posted February 20, 2007 Posted February 20, 2007 Well as stated it has to be a string... You may though write a little script by the side to help you write all the file installs Sleep(5000) ;To target Scite For $i = 0 To 10 Send('FileInstall("C:\MyDest\' & $i & '.exe", "C:\dest")' & @CRLF ) Next Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Moderators SmOke_N Posted February 20, 2007 Moderators Posted February 20, 2007 Well as stated it has to be a string... You may though write a little script by the side to help you write all the file installs Sleep(5000);To target SciteFor $i = 0 To 10 Send('FileInstall("C:\MyDest\' & $i & '.exe", "C:\dest")' & @CRLF )Nexthttp://www.autoitscript.com/forum/index.ph...c=34805&hl= Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Shevilie Posted February 20, 2007 Posted February 20, 2007 Baah no fun for me... everytime i make a smallscript to help, you already have a fully script with a nice interface Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Moderators SmOke_N Posted February 20, 2007 Moderators Posted February 20, 2007 Baah no fun for me... everytime i make a smallscript to help, you already have a fully script with a nice interface No worries, I've been here a tad longer . Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Shevilie Posted February 20, 2007 Posted February 20, 2007 No worries, I've been here a tad longer .Yes but now I have the ultimate program to ALL ANSWERS Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
therks Posted February 20, 2007 Posted February 20, 2007 Be careful with that script Shevilie, line 40 should be Random(0,19). Not 20. If it hits 20, your program will crash with an array subscript error. My AutoIt Stuff | My Github
Shevilie Posted February 20, 2007 Posted February 20, 2007 My bad The random should be $i = Random(0,19,1) Thanks to Smoke to clear out the integer Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
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