[Main] Title=SaveBase Type=script Level=10 Description=Saves a prebuilt simple project for later use Download_Level=1 Author=Peter Schlang Version=16 Date=2009-Apr-09 Selected=False SourceDir= CertifiedBy=Lancelot Certification=45f4398914b7ce071f86f3f75699a618 History016=Download_Level=2 to 1 (LiveXP provides all scripts except apps with download level 1 or 0) [Variables] %vars%=%ProjectCache%\Base\Project\vars.ini %show%=Hide %ManagerName%=!WBManager %ManagerDir%=%ProjectTemp%\%ManagerName% %exename%=WBManager.exe %exe%=%ManagerDir%\%exename% %Selections%=%ProjectCache%\Base\Project\Selections.ini [Process] If,%Open%,NotEqual,1,Run,%ScriptFile%,Not-Open If,%pCheckBox1%,Equal,True,Set,%show%,Open If,ExistDir,%ProjectCache%\Base,DirDelete,%ProjectCache%\Base DirMake,%ProjectCache%\Base DirMake,%ProjectCache%\Base\Project If,%pCheckBox3%,Equal,True,Run,%ScriptFile%,DisableThem If,%pCheckBox2%,NotEqual,True,Begin DirMake,%ProjectCache%\Base\Target DirCopy,%TargetDir%\*,%ProjectCache%\Base\Target DirMake,%ProjectCache%\Base\Model DirCopy,%ModelRam%\*,%ProjectCache%\Base\Model End Else,Begin ShellExecute,%show%,"%Tools%\7za.exe","a -r #$q%ProjectCache%\Base\Target.7z#$q #$q%TargetDir%\*#$q" ShellExecute,%show%,"%Tools%\7za.exe","a -r #$q%ProjectCache%\Base\Model.7z#$q #$q%ModelRam%\*#$q" End FileCopy,%PreISOScript%,%ProjectCache%\Base\Project FileCopy,%ProjectInfo%,%ProjectCache%\Base\Project If,ExistFile,"%vars%",FileDelete,"%vars%" FileCreateBlank,"%vars%" IniAddSection,"%vars%","Variables" AddVariables,"%ProjectDir%\script.project","Variables" Run,%ScriptFile%,SaveVar,Debug Run,%ScriptFile%,SaveVar,HoJoPELevel Run,%ScriptFile%,SaveVar,RAMDriveLetter Run,%ScriptFile%,SaveVar,SettingsDrive Run,%ScriptFile%,SaveVar,ClearTarget Run,%ScriptFile%,SaveVar,RegTyp Run,%ScriptFile%,SaveVar,bootfix Run,%ScriptFile%,SaveVar,OS Run,%ScriptFile%,SaveVar,Open Run,%ScriptFile%,SaveVar,Target_prog Run,%ScriptFile%,SaveVar,PE_Programs Run,%ScriptFile%,SaveVar,ActiveShell Run,%ScriptFile%,SaveVar,ExplorerShortcut Run,%ScriptFile%,SaveVar,Locale Run,%ScriptFile%,SaveVar,DefaultLayout Run,%ScriptFile%,SaveVar,spCabFile Run,%ScriptFile%,SaveVar,drCabFile Run,%ScriptFile%,SaveVar,OSSubType Run,%ScriptFile%,SaveVar,OSServicePack Run,%ScriptFile%,SaveVar,SourceLocale Run,%ScriptFile%,SaveVar,ModelRam Run,%ScriptFile%,SaveVar,dllregmethod If,EXISTVAR,%RamIsoScript%,Run,%ScriptFile%,SaveVar,RamIsoScript If,EXISTVAR,%ImDiskInstallerScript%,Run,%ScriptFile%,SaveVar,ImDiskInstallerScript If,EXISTVAR,%BootSectorScript%,Run,%ScriptFile%,SaveVar,BootSectorScript If,EXISTVAR,%BootSector%,Run,%ScriptFile%,SaveVar,BootSector If,EXISTVAR,%MenuFile_GRUB%,Run,%ScriptFile%,SaveVar,MenuFile_GRUB If,EXISTVAR,%MenuAdd_GRUB%,Run,%ScriptFile%,SaveVar,MenuAdd_GRUB If,EXISTVAR,%RegFactoryState%,Run,%ScriptFile%,SaveVar,RegFactoryState If,EXISTVAR,%ProgramFilesFolder%,Run,%ScriptFile%,SaveVar,ProgramFilesFolder If,EXISTVAR,%ProgramFilesDrive%,Run,%ScriptFile%,SaveVar,ProgramFilesDrive If,EXISTVAR,%WimPackInclude%,Run,%ScriptFile%,SaveVar,WimPackInclude If,EXISTVAR,%WimPackExclude%,Run,%ScriptFile%,SaveVar,WimPackExclude If,EXISTVAR,%script.project_loc%,Run,%ScriptFile%,SaveVar,script.project_loc If,EXISTVAR,%RAM_exclude%,Run,%ScriptFile%,SaveVar,RAM_exclude [DisableThem] IniWrite,%ScriptFile%,Main,Selected,False If,NotExistDir,%ManagerDir%,DirMake,%ManagerDir% ExtractFile,%WBMScript%,Folder,%exename%,%ManagerDir% If,EXISTFILE,%Selections%,FileDelete,%ProjectCache%\Base\Project\Selections.ini ShellExecute,Hide,"%exe%","#$q-P:%ProjectDir%#$q -M:D #$q-O:%Selections%#$q" IniWrite,%FundamentalsScript%,Main,Selected,None IniRead,%Selections%,Item,Items,%count% StrFormat,INC,%count%,1 IniWrite,%Selections%,Item,Items,%count% IniWrite,%Selections%,Item,Item%count%,%FundamentalsScript% System,ReScanScripts [Not-Open] Message,"To use this function, the project must be open (before building the ISO)",Error Exit,"Project not open" [Standard-Enable] ShellExecute,Hide,"%exe%","#$q-P:%ProjectDir%#$q -M:E #$q-O:%ProjectCache%\Base\Project\Selections.ini#$q" System,ReScanScripts [SaveVar] IniWrite,"%vars%","Variables",#$p#1#$p,"%#1%" [Interface] pTextLabel1="This script saves the current build as base build.",1,1,14,20,359,22,9,Bold pTextLabel2="Location: %BaseDir%\Workbench\\Cache\Base",1,1,14,50,414,18,9,Bold pCheckBox1="Show progress when compressing",1,3,30,165,200,18,True pCheckBox2="Compress Target directory to 7z",1,3,29,134,200,18,True pBevel1=pBevel1,1,12,14,83,273,128 pButton1="Re-Enable Disabled Scripts",1,8,378,136,146,25,Standard-Enable pCheckBox3="Disable Scripts after save",1,3,31,103,230,18,True [AuthorEncoded] Singletest.ico=1Kb,1Kb Logo=Singletest.ico [EncodedFolders] Folder [Folder] [EncodedFile-AuthorEncoded-Singletest.ico] lines=0 0=eJytlr9u21YUh0+QQdLSbl29FkESOOoD6BU6xALKQe7Up6AgQwG09Ak6OQMVmAeIOegBlLk0QMbkUiCAXkEeShlog9PvXlKuRcluWvRSHw9/9DnnnvtPlsgTruNj4d6Vi69EvhGRb4FX8qPU7x9vZ/4jZ2e1cZd7xe3Dpw+y/vWd6OCZGMjpMzkBBQOZoEHBQM7RoGAgSzQoGMgKDQoGYmhQMBA58ZeCgRyhQMFABmhQMJBTNCgYyAQNCgZyjgYFA1miQcFAVmhQMBBDg4I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