Installer app question

BlitzPlus Forums/BlitzPlus Beginners Area/Installer app question

Conman(Posted 2008) [#1]
Ok, so im writing an installer for Dark_Alexs timemachine, and Im trying to figure out how to find the correct files and the copy them into where they need to be on the PSP. Heres the code so far----
;Time Machine Installer!!!!!!!!!!!
;Written by Angelsniper45
;===========================================================================================================================================================

;Start up the app and initialize the setup process
Global window=CreateWindow("Time Machine Installer!",0,0,800,600)
timemachinedir=RequestDir("Where do you want to create a time machine folder?")

If folderlist$>"" And Right$(folderlist$,1)="\" Then
folderlist$=Left$(folderlist$,Len(folderlist$)-1)
EndIf

If $101(1) Then InstallTimeMachine()


Const TPM_RETURNCMD = $100

;Create window
win = CreateWindow("TimeMachine Options",100,100,400,300)
txt = CreateLabel("Right-click anywhere to open popupmenu",10,10,250,50,win)

mnuFile = CreateMenu("&File",0,WindowMenu(win))
whatfwuserhas = CreateMenu("&What firmware do you want?",1,mnuFile)
savetheoptionscontinueinstallation = CreateMenu("&Save and continue installation",1,mnuFile)
escape= CreateMenu("&Exit",1,mnuFile)
mnuEdit = CreateMenu("&Edit",0,WindowMenu(win))
daxswebsitelink = CreateMenu("&Go to Dark_Alex.org", 1,mnuEdit)
includedextras = CreateMenu("&What extras do you want to include?", 2,mnuEdit)
restartinstallationincaseofmistake = CreateMenu("&Restart installation",3,mnuEdit)
mnuEditMore = CreateMenu("PSP stats",4,mnuEdit)
mnuEditMoreStuff = CreateMenu("Stuff",5,mnuEditMore)
UpdateWindowMenu(win)

;Find the timemachine core files and install on PSPs root folder











;Functions
;InstallTimeMachine() - install time machine
Function InstallTimeMachine()



Its still in the VERY VERY early stages of developement so any help would be greatly appreciated. Peace!


Pineapple(Posted 2008) [#2]
CopyFile() does it all. Look in the docs. I love it ;)

If you need to actually search for the files, look at the example for NextFile(). It helped out immensely when I needed it.


Conman(Posted 2008) [#3]
thank you and i want to be able to allow the user to install all of the files into their psp and be able to use it from their, what would the command be for being able to recognize the PSP to exact specs?


SuperSonic7(Posted 2008) [#4]
I was actually searching for Install Creators and found one on this site:

www.clickteam.com

It's FREE too. Just follow the wizard and you can't go wrong. I have no objection with you making your own install system I just think this would be easier. This install creator is however less flexible so I guess making one yourself could be an advantage.