Sign in to follow this  
Followers 0
au3scr

installer dont create directory

2 posts in this topic

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

#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 by au3scr

Share this post


Link to post
Share on other sites



$instalationpath = GUICtrlRead($install)

needs to be

$instalationpath = GUICtrlRead($path)

And its INSTALLATION.

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