D4rkDr4g0nz Posted June 13, 2013 Share Posted June 13, 2013 (edited) Hi there! First off, thanks for visiting this page, with assumed interest. Recently a friend of mine , whom creates flash games, asked me if I could make a File installer for him. Well, i said that I probably could, but I might have to ask for help. That turned out to be true, since I feel like I got glued on the spot with this one. I'm as stuck and confused as one can be, asking for help on the autoit forums. I have to make an installer, where the file path is located, and if needed can be edited. Example : Anyone willing to give me some assistance on this? This is a great oppurtunity to learn how to make an installer that is not pre-fixed. (eg. FileInstall ("Source", "Dest ", [Flag]) Thanks in advance. -Daniel.PS. this might be for a game, but I'm creating it for the developer, not for adapting / changing any of the game files, and/or to give any unfair advantage over others aka Cheating. I do this on request for the game's developer himself.) Neither am I earning anything from this, since it's a friendly request, purely to increase my autoit knowledge. Thanks for reading, and sorry for this red wall of text, it's because of a previous experience, when I asked for help with a bot, which was not allowed. Edited June 13, 2013 by D4rkDr4g0nz Link to comment Share on other sites More sharing options...
FireFox Posted June 13, 2013 Share Posted June 13, 2013 (edited) Hi, Workaround : FileInstall("yourfile", @TempDir & "\yourtmpdir\yourfile") FileMove(@TempDir & "\yourtmpdir\yourfile", "yourdest\yourfile") ;etc DirRemove(@TempDir & "\yourtmpdir", 1) Br, FireFox. Edited June 13, 2013 by FireFox Link to comment Share on other sites More sharing options...
D4rkDr4g0nz Posted June 13, 2013 Author Share Posted June 13, 2013 Hi, FireFox! Thanks for the script, I'm currently trying to figure it out. My response might be delayed, so sorry if it's a hour later orso. -Daniel Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 13, 2013 Moderators Share Posted June 13, 2013 D4rkDr4g0nz,Are you looking just to select the folder in which to install the files, or will there be other choices to be made later in the install process? If it is just the folder, then take a look at InputBox - this allows you to offer a default choice and for the user to enter another path. But it does not offer the chance to browse. If you need subsequent choices during the install (or would like a "Browse" option) then you are looking at creating your own GUI with its controls. It is not difficult, but demands a certain knowledge of basic Autoit syntax and structure. Have you read this excellent tutorial? Reading that along with the first few sections of the Help file - Using AutoIt, Tutorials and the first couple of References) should give you a good idea of how to go about it.And of course you know where we are if you need help. So give it go and see what you can come up with. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
D4rkDr4g0nz Posted June 13, 2013 Author Share Posted June 13, 2013 Hi Melba! I dont nessecary need a browse option, but it would certainly be something fancy. I'll try the tutorial you just linked me as soon as I reach my doormat Thanks -Daniel.Ps. out of bold curiousity, bad habits and randomness, has your forum name anything to do with toast? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 13, 2013 Moderators Share Posted June 13, 2013 D4rkDr4g0nz, out of bold curiousity, bad habits and randomness, has your forum name anything to do with toast?Not at all - it used to be my personal radio callsign at one time. I used it when I first joined the forum and never really saw the need to change it. And it occasionally leads people to assume all sorts of strange things... M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
D4rkDr4g0nz Posted June 13, 2013 Author Share Posted June 13, 2013 (edited) And it occasionally leads people to assume all sorts of strange things... http://mapcarta.com/20673618 *Cough* Seems fairly normal to me. Edited June 13, 2013 by D4rkDr4g0nz FireFox 1 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 13, 2013 Moderators Share Posted June 13, 2013 D4rkDr4g0nz,Not even close! But if you can identify my avatar you might get a hint. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area 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