;Script to Install PELA (Without the need for a .bat file and using less code with more accurate results.)
;
;Script created by Jason Boney 10/10/2006
ProgressOn("PELA is Now Installing", "Please Wait.....", "0 percent")
For $i = 1 to 100
sleep(25)
ProgressSet( $i, "Installing... " & $i & "%")
Next
#include <Process.au3>
$rc=_RunDOS ("c:")
;Copies over the PELA.mdb file from the G:\ Drive and if C:\PELA\ doesn't exist; it will create the folder otherwise it will just overwrite the current file.
FileCopy("G:\Hingham Drives\G Drive\MCU\PELA\PELA.mdb","C:\PELA\",9)
;Copies over the PELA shortcut link from the G:\ Drive and overwrites the current file.
FileCopy("G:\Hingham Drives\G Drive\MCU\PELA\PELA_Live.lnk","D:\Documents and Settings\All Users\Desktop\",1)
FileCopy("G:\Hingham Drives\G Drive\MCU\PELA\PELA_Live.lnk","C:\PELA\",1)
ProgressSet(100 , "100% Installation Complete!", "Installation Completed")
sleep(1000)
ProgressOff()
MsgBox (0+64, "PELA Has Been Installed", "Now Starting PELA"& @CRLF & @CRLF & "Please Wait.....",1)
;Code used to Start PELA after a fresh install.
$rc=_RunDOS(@COMSPEC & " /c Start c:\PELA\PELA.mdb")