Sign in to follow this  
Followers 0
Scanzee

Setup

10 posts in this topic

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..

Share this post


Link to post
Share on other sites



Thats only for compiling a script at the right place..:s

anyone else some idea?!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

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..

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

Gr... Don't make this into another t0ddie thread... Just TRY the damn code.


FootbaG

Share this post


Link to post
Share on other sites

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")

Share this post


Link to post
Share on other sites

That 's the way I wanted..

Thanks..

Scanzee Products..

Share this post


Link to post
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
Sign in to follow this  
Followers 0