Posted 23 December 2008 - 11:26 PM
This one intended to work in both: LiveXP and in VistaPE (v.12 RC1) too,
this is for TI Home 2009 and actually it is the BartPE plugin ported to script,
it needs TI Home 2009 installed
plus
the BartPE plugin present on the system
and should to point to its 'Files' folder.
[codebox][main]
Title=Acronis True Image Home 2009
Description=Adds the BartPE version of True Image Home 2009
Type=Script
Selected=True
Locked=False
Version=001
Level=5
Author=dera
Date=
Credits=Acronis
Mandatory=False
[Interface]
pTextLabel1="Path to Acronis BartPE Plugin 'Files' folder:",1,1,28,48,320,18,8,Bold
pFileBox1=,1,13,22,70,326,30,dir
pCheckBox1="Run from ram (boot.wim)",1,3,28,16,320,18,False
pCheckBox2="Add desktop shortcut",1,3,28,114,320,18,True
pCheckBox3="Add start menu shortcut",1,3,28,132,320,18,True
pCheckBox4="Add quicklaunch shortcut",1,3,28,150,320,18,True
pTextBox1="Start menu folder:",1,0,28,189,168,21,Acronis
pBevel1=pBevel1,1,12,20,10,334,29
pBevel2=pBevel2,1,12,20,43,334,62
pBevel3=pBevel3,1,12,20,109,334,106
[Variables]
%TMPREG%=TMPREG
%ProgramEXE%=TrueImage_starter.exe
%ProgramFolder%=Acronis\TrueImage
%ProgramTitle%=True Image Home 2009
[process]
RunFromRam,%pCheckBox1%
If,NOTEXISTREGKEY,HKLM,"SOFTWARE\Acronis\TrueImage","standard",Message,"Missing TrueImage license script will exit",ERROR
If,NOTEXISTREGKEY,HKLM,"SOFTWARE\Acronis\TrueImage","standard",Exit,"Missing TrueImage license script exit"
If,NotExistFile,"%pFileBox1%\TrueImage_starter.exe",Message,"Missing TrueImage files script will exit",ERROR
If,NotExistFile,"%pFileBox1%\TrueImage_starter.exe",Exit,"Missing TrueImage files script exit"
DirMake,"%Target_prog%\%ProgramFolder%\Microsoft.VC80.CRT"
FileCopy,"%pFileBox1%\TrueImage.exe","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\TrueImage_starter.exe","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\f11.cfg","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\kernel.dat","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\ramdisk.dat","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\bootwiz.bin","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\bootmenu.bin","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\mouse.com","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\icu38.dll","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\rpc_client.dll","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\resource.dll","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\icudt38.dll","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\gc.dll","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\thread_pool.dll","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\libcrypto9.dll","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\libssl9.dll","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\fox.dll","%Target_prog%\%ProgramFolder%"
FileCopy,"%pFileBox1%\Drivers\snapapi.dll","%target_sys%"
FileCopy,"%pFileBox1%\Drivers\snapman.sys","%target_sys%\drivers"
FileCopy,"%pFileBox1%\Drivers\msvcp80.dll","%Target_prog%\%ProgramFolder%\Microsoft.VC80.CRT"
FileCopy,"%pFileBox1%\Drivers\msvcr80.dll","%Target_prog%\%ProgramFolder%\Microsoft.VC80.CRT"
FileCopy,"%pFileBox1%\Drivers\msvcm80.dll","%Target_prog%\%ProgramFolder%\Microsoft.VC80.CRT"
FileCopy,"%pFileBox1%\Drivers\Microsoft.VC80.CRT.manifest","%Target_prog%\%ProgramFolder%\Microsoft.VC80.CRT"
Hive_Load,HKLM
reg_add,0x7,"%reg%\ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}","UpperFilters","PartMgr","snapman"
reg_add,0x7,"%reg%\ControlSet001\Control\Class\{71A27CDD-812A-11D0-BEC7-08002BE2092F}","UpperFilters","snapman"
reg_add,0x4,"%reg%\ControlSet001\Services\snapman","ErrorControl","1"
reg_add,0x1,"%reg%\ControlSet001\Services\snapman","ImagePath","system32\DRIVERS\snapman.sys"
reg_add,0x4,"%reg%\ControlSet001\Services\snapman","Start","0"
reg_add,0x4,"%reg%\ControlSet001\Services\snapman","Type","1"
Hive_Unload,HKLM
RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImage\Settings","WorkingDir","%PE_Programs%\%ProgramFolder%"
RegAddBoot,HKLM,0x1,"Software\Acronis\CommonComponents","icu38.dll","%PE_Programs%\%ProgramFolder%\icu38.dll"
RegAddBoot,HKLM,0x1,"Software\Acronis\CommonComponents","rpc_client.dll","%PE_Programs%\%ProgramFolder%\rpc_client.dll"
RegAddBoot,HKLM,0x1,"Software\Acronis\CommonComponents","resource.dll","%PE_Programs%\%ProgramFolder%\resource.dll"
RegAddBoot,HKLM,0x1,"Software\Acronis\CommonComponents","gc.dll","%PE_Programs%\%ProgramFolder%\gc.dll"
RegAddBoot,HKLM,0x1,"Software\Acronis\CommonComponents","thread_pool.dll","%PE_Programs%\%ProgramFolder%\thread_pool.dll"
RegAddBoot,HKLM,0x1,"Software\Acronis\CommonComponents","libcrypto9.dll","%PE_Programs%\%ProgramFolder%\libcrypto9.dll"
RegAddBoot,HKLM,0x1,"Software\Acronis\CommonComponents","libssl9.dll","%PE_Programs%\%ProgramFolder%\libssl9.dll"
RegRead,HKLM,"SOFTWARE\Acronis\TrueImage","standard","%TMPREG%"
Hive_Load,HKU
reg_add,0x1,"%reg%\Acronis\TrueImage","standard","%TMPREG%"
Hive_Unload,HKU
If,%pCheckBox2%,Equal,True,Add_Shortcut,Desktop
If,%pCheckBox3%,Equal,True,Add_Shortcut,StartMenu,%pTextBox1%
If,%pCheckBox4%,Equal,True,Add_Shortcut,QuickLaunch
StrFormat,Filename,%Source_Win%,%Project_Type%
If,%Project_Type%,Equal,I386,Run,%ScriptFile%,load_snapman
[load_snapman]
IniWrite,"%target_win%\txtsetup.sif","SourceDisksFiles","snapman.sys","1#$c#$c#$c#$c#$c#$c_3#$c4#$c1"
IniWrite,"%target_win%\txtsetup.sif","SCSI.Load","snapman","snapman.sys#$c4"
IniWrite,"%target_win%\txtsetup.sif","SCSI","snapman","#$qAcronis#$sSnapshot#$sDriver#$q"
IniWrite,"%target_win%\txtsetup.sif","HardwareIdsDatabase","STORAGE\Volume","#$qVolume#$q#$c{71A27CDD-812A-11D0-BEC7-08002BE2092F}"[/codebox]