Jump to content

Setup


Recommended Posts

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

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

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

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

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

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

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
 Share

  • Recently Browsing   0 members

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