Jump to content

Recommended Posts

Posted

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

Posted

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? ;)

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
×
×
  • Create New...