Sign in to follow this  
Followers 0
au3scr

file install problem

2 posts in this topic

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

#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

Share this post


Link to post
Share on other sites



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

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