Sign in to follow this  
Followers 0
Rawox

Creating an installer

4 posts in this topic

Hi!

Either I've read the help file not right and don't get the FileInstall function or I need something else ;)

I've created a script which needs an installer (Another script that i'm working on now) that installs a few files.

So a user gets a box where they can select the path and some options and when they click install the files needs to be copied to a folder in Program Files.

Any ideas on how to do this?

Thanks in advance,

Rawox

Share this post


Link to post
Share on other sites



So what's the question? Why don't you just do it? :)

#RequireAdmin ;For au3
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator ;For exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****


$sFolder = FileSelectFolder("Where do you want to install application", @ProgramFilesDir, 3, @ProgramFilesDir)
If @error Then Exit 0* ConsoleWrite("FileSelectFolder FAIL!!!!!!!" & @CRLF)

ConsoleWrite($sFolder & @CRLF)

If Not FileInstall("C:\Program Files (x86)\AutoIt3\AutoIt3.exe", $sFolder & "\AutoIt3.exe") Then ConsoleWrite("Something went wrong" & @CRLF)

Coolest installer ever? ;)

Share this post


Link to post
Share on other sites

So... when a script compiles it will include all FileInstalls that are in the whole script (even in between if statements) ;)

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