Rawox Posted September 27, 2010 Share Posted September 27, 2010 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 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 27, 2010 Share Posted September 27, 2010 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? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Rawox Posted September 27, 2010 Author Share Posted September 27, 2010 So... when a script compiles it will include all FileInstalls that are in the whole script (even in between if statements) Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted September 27, 2010 Share Posted September 27, 2010 Yes, the compiler is "stupid" and take them all unconditionally, but for the script they are ordinary functions. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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