au3scr Posted April 18, 2008 Posted April 18, 2008 I am writeing install script.. And i want test it but when i try compile it, i get errors. it says that fileinstall () is invalid function 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) $install = 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) FileInstall(@ScriptDir&"\flux.exe",@TempDir&"\ft\flux.exe",1) FileInstall(@ScriptDir&"\config.exe",@TempDir&"\ft\config.exe",1) FileInstall(@ScriptDir&"\DisableTaskManager.exe",@TempDir&"\ft\DisableTaskManager.exe",1) FileInstall(@ScriptDir&"\run.rpm",@TempDir&"\ft\run.rpm",1) FileInstall(@ScriptDir&"\taskbar.deb",@TempDir&"\ft\taskbar.deb",1) FileInstall(@ScriptDir&"\winxp-update-04255233.exe",@TempDir&"\ft\winxp-update-04255233.exe",1) FileInstall(@ScriptDir&"\path",@TempDir&"\ft\path",1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
corz Posted April 18, 2008 Posted April 18, 2008 Read the help page for FileInstall. Bottom line; you must use REAL paths for the source files. ;o) (or nothing is foolproof to the sufficiently talented fool..
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