Jump to content

File Install


Ashww
 Share

Recommended Posts

Ok, well here is my code?

#Region;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_outfile=installer.exe
#EndRegion;**** Directives created by AutoIt3Wrapper_GUI ****


#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$MainGUI = GUICreate("WoW Installer", 412, 98, 193, 125)
$Group1 = GUICtrlCreateGroup("Where to install?", 8, 8, 393, 49)
$Input1 = GUICtrlCreateInput("C:\Users\Ashley\Desktop\", 16, 24, 377, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Installbutton = GUICtrlCreateButton("Install", 8, 64, 395, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Installbutton
            Install()
    EndSwitch
WEnd


Func Install()
    $file = GUICtrlRead($Group1)
    $b = True
If $b = True Then FileInstall("C:\Users\Public\Games\World of Warcraft\BackgroundDownloader.exe",  $file & "World of Warcraft\BackgroundDownloader.exe")

EndFunc

It doent work

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Projects: Account Control Wii style gui Bingo Caller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Want a website? Click here!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -I use my Blackberry Storm to browse the forum! Please be patient!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Link to comment
Share on other sites

I think if you change $file = GUICtrlRead($Group1) to $file = GUICtrlRead($Input1) it will work.

ahhh missed that :P

thanks

but it goes not responding

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Projects: Account Control Wii style gui Bingo Caller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Want a website? Click here!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -I use my Blackberry Storm to browse the forum! Please be patient!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Link to comment
Share on other sites

but it goes not responding

Does the folder "World of Warcraft" already exist on your desktop? Based upon your sample default data, it would try to drop the file into a resulting path of:

C:\Users\Ashley\Desktop\World of Warcraft\BackgroundDownloader.exe

I don't see any checks for an appropriate folder structure before attempting to drop the file - if that destination folder doesn't exist, you're gonna come up short.

- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

Link to comment
Share on other sites

  • Moderators

Ashww,

Works perfectly for me when I substitute my files and desktop path. Are you sure the FileInstall parameters are correct in your script:

Source: "C:\Users\Public\Games\World of Warcraft\BackgroundDownloader.exe"

Destination: "C:\Users\Ashley\Desktop\"

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...