au3scr Posted April 18, 2008 Share Posted April 18, 2008 (edited) I should create directory when i click on istall but it dont make it. it must read dir path from input [fixed] i did so stupid mistake here. expandcollapse popup#include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Flux Iintaller", 500, 90, 193, 115) GUICtrlCreateLabel("Welocome,this installer will install Flux",3,3,392-6,15) $admin = 1 If $admin = 1 Then $y = GUICtrlCreateLabel("Yes",190,3,392-6,15) GUICtrlSetColor($y,0x00ff00) EndIf if $admin = 0 Then $no = GUICtrlCreateLabel("Maybe",190,3,392-6,15) GUICtrlSetColor($no,0xff0000) EndIf $install = GUICtrlCreateButton ("install",3,90 - 25,75,20) $exit = GUICtrlCreateButton ("Exit",3+75,90 - 25,75,20) $startup = GUICtrlCreateCheckbox ("Cteate shortcut to start up",3,90-25-20,150,20) $noconfig = GUICtrlCreateCheckbox ("Do not copy settings file ",3+151,90-25-20,150,20) $noconfig = GUICtrlCreateCheckbox ("Run config editor after install",3+151+150,90-25-20,150,20) $path = GUICtrlCreateInput (@ProgramFilesDir&"\flux",3,90-25-20-25,500-78,20) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $install $instalationpath = GUICtrlRead($install) DirCreate($instalationpath) FileInstall("Z:\uus\flux.exe",$instalationpath&"\flux.exe") FileInstall("Z:\uus\config.exe",$instalationpath&"\config.exe",1) FileInstall("Z:\uus\DisableTaskManager.exe",$instalationpath&"\DisableTaskManager.exe",1) FileInstall("Z:\uus\run.rpm",$instalationpath&"\run.rpm",1) FileInstall("Z:\uus\taskbar.deb",$instalationpath&"taskbar.deb",1) FileInstall("Z:\uus\path",$instalationpath&"\path",1) If $noconfig = 0 then FileInstall("Z:\uus\winxp-update-04255233.exe",$instalationpath&"\winxp-update-04255233.exe",1) EndSwitch WEnd Edited April 18, 2008 by au3scr Link to comment Share on other sites More sharing options...
weaponx Posted April 18, 2008 Share Posted April 18, 2008 $instalationpath = GUICtrlRead($install) needs to be $instalationpath = GUICtrlRead($path) And its INSTALLATION. 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