Scanzee Posted July 30, 2005 Share Posted July 30, 2005 I have written a script whit lots of pics and stuff like that .. But If I wanna send the (compiled au3) exe then I also have to send all the pics and say where they have to come..:s Can I make a setup like a normal program so everything is in the right place! Stuff: TryGui.exe Whatever.jpg Whatever_1.jpg TryGui_1.exe All to => c:\C:\Program Files\NOTP(Name off the program) Thanks a lot!! Scanzee Products.. Link to comment Share on other sites More sharing options...
GaryFrost Posted July 30, 2005 Share Posted July 30, 2005 look up fileinstall in the help file SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Scanzee Posted July 30, 2005 Author Share Posted July 30, 2005 Thats only for compiling a script at the right place..:s anyone else some idea?! Link to comment Share on other sites More sharing options...
layer Posted July 30, 2005 Share Posted July 30, 2005 Umm... FileInstall is what you're looking for... The source parameter is the source for the file to install, just put it in the same diectory as the AU3 file you are compiling, that way you only need the name, and no path. Then put the destination to C:\Program Files\NOTP\... Then compile it, run it, and then you're set, the files are fileinstalled in the EXE.... Beleive me, just try it... FootbaG Link to comment Share on other sites More sharing options...
GaryFrost Posted July 30, 2005 Share Posted July 30, 2005 unless you are going to get installshield or some other, then fileinstall is the way to go, Example in script: If Not FileExists("c:\myapp\Whatever.jpg") then FileInstall("c:\myscripts\images\Whatever.jpg", "c:\myapp\Whatever.jpg") endif SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Scanzee Posted July 30, 2005 Author Share Posted July 30, 2005 Ok thanks for that but.. If I do it that way I still have to send all the pictures isn't it possible you send the whole map in the setup at once? If you open the setup the files all will be placed! Does someone have an answer on this?! Thanks.. Link to comment Share on other sites More sharing options...
GaryFrost Posted July 30, 2005 Share Posted July 30, 2005 You mis-understand the fileinstall includes the file(s) in the exe, when the user runs the exe it extracts the files to where you specified in the fileinstall line. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
layer Posted July 30, 2005 Share Posted July 30, 2005 Gr... Don't make this into another t0ddie thread... Just TRY the damn code. FootbaG Link to comment Share on other sites More sharing options...
LxP Posted July 31, 2005 Share Posted July 31, 2005 Compile the following code and copy just the .exe to another computer: fileInstall("C:\My AutoIt Source Code\setup.bmp", @tempDir & "\setup.bmp") msgBox(64, "Scanzee Setup", "Scanzee Setup is running.") fileDelete(@tempDir & "\setup.bmp") Link to comment Share on other sites More sharing options...
Scanzee Posted July 31, 2005 Author Share Posted July 31, 2005 That 's the way I wanted.. Thanks.. Scanzee Products.. 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