[main] Title=Update Project Description= Selected=False Level=9 Author=Misty Version=1 Date=2017-03-10 [Interface] pButton1="RUN",1,8,15,27,110,25,Update,0,True,_Update_,True [Process] If,%USE.TOOLS%,Equal,NO,Begin Message,"This project script is designed for pre/post processing and cannot be executed during the build process. ABORTING...",Error,5 Exit,"This project script is designed for pre/post processing and cannot be executed during the build process. ABORTING..." End Message,Use the RUN button for this script Exit,,Nowarn [update] If,ExistFile,"%Cache%\Temp\MistyPE.update.zip",FileDelete,"%Cache%\Temp\MistyPE.update.zip" If,ExistFile,"%Cache%\Temp\update.script",FileDelete,"%Cache%\Temp\update.script" System,ERROROFF,1 WebGet,http://www.mistyrebootfiles.altervista.org/mistype/mistype.updates/MistyPE.update.zip,"%Cache%\Temp\MistyPE.update.zip" If,Not,ExistFile,"%Cache%\Temp\MistyPE.update.zip",Begin Message,"Could not find %Cache%\Temp\MistyPE.update.zip - possible error with download" Exit,"Could not find %Cache%\Temp\MistyPE.update.zip - possible error with download" End ShellExecute,Hide,"%Tools%\7z.exe","e -y -r #$q%Cache%\Temp\MistyPE.update.zip#$q update.script -o#$q%Cache%\Temp#$q" If,Not,ExistFile,"%Cache%\Temp\update.script",Begin Message,"Could not find update script - possible error with download" Exit,"Could not find update - possible error with download" End Run,"%Cache%\Temp\update.script",update If,ExistFile,"%Cache%\Temp\MistyPE.update.zip",FileDelete,"%Cache%\Temp\MistyPE.update.zip" If,ExistFile,"%Cache%\Temp\update.script",FileDelete,"%Cache%\Temp\update.script"