Sign in to follow this  
Followers 0
D4rkDr4g0nz

Costum file install destination?

8 posts in this topic

#1 ·  Posted (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 : 
Fzsetup4.png



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 by D4rkDr4g0nz

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi,

Workaround :

FileInstall("yourfile", @TempDir & "\yourtmpdir\yourfile")
FileMove(@TempDir & "\yourtmpdir\yourfile", "yourdest\yourfile")
 
;etc
DirRemove(@TempDir & "\yourtmpdir", 1)

Br, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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? :huh:

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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... :whistle:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

And it occasionally leads people to assume all sorts of strange things... :whistle:

150px-Peach_Melba.jpgmelba_toast_naturel.jpg

http://mapcarta.com/20673618

*Cough*

Seems fairly normal to me.

Edited by D4rkDr4g0nz
1 person likes this

Share this post


Link to post
Share on other sites

D4rkDr4g0nz,

Not even close! :D

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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