Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Main]
- Title=Acronis TrueImage Home 2010 (v002)
- Description=Acronis TrueImage Home 2010 - BartPE conversion
- Type=script
- Level=5
- Version=002
- Selected=True
- Credits=PEBuilder plugin acronis.inf
- Author=Azaghul
- [Variables]
- %ProgramFolder%=Acronis\TrueImageHome
- %ProgramTitle%=Acronis TrueImage Home 2010
- %ProgramEXE%=TrueImage_starter.exe
- [Interface]
- ScrollBox_RunFromWhere="Run from RAM",1,4,23,44,140,21,"Run from RAM","Run from CD"
- pTextLabel1="Options:",1,1,10,24,105,18,8,Bold
- pOptionsBevel=pBevel1,1,12,0,21,221,225
- pShortcutSM="Create Startmenu Shortcut",1,3,17,85,185,18,True
- pShortcutSM_Folder="Start menu folder (blank for none):",1,0,33,125,168,21,"HD Tasks\Imaging"
- pShortcutSM_Name="Name for Shortcuts:",1,0,33,170,168,21,"TrueImage Home"
- pShortcutQL="Create Quicklaunch Shortcut",1,3,18,200,200,18,False
- pShortcutDT="Create Desktop Shortcut",1,3,18,220,200,18,True
- pTextLabel2="Paths:",1,1,231,24,221,18,8,Bold
- pPathsBevel=pBevel3,1,12,225,21,307,225
- pTextLabel3="Path to files:",1,1,235,60,200,18,8,Normal
- pFilePath="C:\WinPE\Projects\Win7PESE\Apps\HD Tasks\Imaging\AcronisTrueImageHome2010\",1,13,230,75,280,30,dir
- pLicPowerpack="Reg Key: HKU\Acronis\TrueImage - powerpack",1,0,240,125,270,18,""
- pLicStandard="Reg Key: HKU\Acronis\TrueImage - standard",1,0,240,170,270,18,""
- [Process]
- Echo,Processing %ProgramTitle%...
- //-
- RegHiveLoad,Tmp_Software,%RegSoftware%
- RegHiveLoad,Tmp_System,%RegSystem%
- //-
- StrFormat,Replace,%ScrollBox_RunFromWhere%,"Run from ",,%Here%
- If,Not,%Here%,Equal,Normal,RunFrom,%Here%
- //-
- If,%pShortcutSM%,Equal,True,Add_Shortcut,StartMenu,%pShortcutSM_Folder%,,%pShortcutSM_Name%
- If,%pShortcutDT%,Equal,True,Add_Shortcut,Desktop,%pShortcutSM_Folder%,,%pShortcutSM_Name%
- If,%pShortcutQL%,Equal,True,Add_Shortcut,QuickLaunch
- If,ExistFile,%ProjectDir%\infconvert.ini,AddVariables,%ProjectDir%\infconvert.ini,variables
- //-
- Run,%ScriptFile%,WinntDirectories
- Run,%ScriptFile%,SourceDisksFiles
- Run,%ScriptFile%,Software.AddReg
- Run,%ScriptFile%,SetupReg.AddReg
- Run,%ScriptFile%,SetValue
- [WinntDirectories]
- Echo,"Making new directories.."
- //-
- DirMake,"%target_prog%\%ProgramFolder%"
- DirMake,"%target_sys%\DRIVERS"
- DirMake,"%Target_Win%\SysWOW64"
- //-
- RegWrite,HKLM,0x1,"Tmp_Software\Acronis"
- RegWrite,HKLM,0x1,"Tmp_System\ControlSet001"
- RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Control"
- RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Control\Class"
- RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}"
- RegWrite,HKLM,0x7,"Tmp_System\ControlSet001\Control\Class\{71A27CDD-812A-11D0-BEC7-08002BE2092F}"
- RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Services"
- RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Services\snapman"
- //-
- if,%SourceArch%,Equal,X86,begin
- RegWrite,HKLM,0x1,"Tmp_Software\Acronis\TrueImage"
- RegWrite,HKLM,0x1,"Tmp_Software\Acronis\TrueImageHome\Settings"
- RegWrite,HKLM,0x1,"Tmp_Software\Acronis\TrueImageHome\CommonComponents"
- end
- //-
- if,%SourceArch%,Equal,X64,begin
- RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node"
- RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node\Acronis"
- RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node\Acronis\TrueImageHome"
- RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents"
- end
- [SourceDisksFiles]
- Echo,"Copying files.."
- FileCopy,"%pFilePath%\TrueImage.exe",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\TrueImage_starter.exe",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\f11.cfg",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\kernel.dat",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\ramdisk.dat",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\timounter.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\bootwiz.bin",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\gen_bootmenu.bin",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\mouse.com",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\icu38.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\rpc_client.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\resource.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\icudt38.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\gc.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\thread_pool.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\fox.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\libcrypto9.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\libssl9.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\kb_link.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\auto_reactivate.exe",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\auto_reactivate64.exe",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\Drivers\Microsoft.VC80.CRT\Microsoft.VC80.CRT.manifest",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\Drivers\Microsoft.VC80.CRT\msvcm80.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\Drivers\Microsoft.VC80.CRT\msvcp80.dll",%Target_Prog%\%ProgramFolder%
- FileCopy,"%pFilePath%\Drivers\Microsoft.VC80.CRT\msvcr80.dll",%Target_Prog%\%ProgramFolder%
- //-
- if,%SourceArch%,Equal,X86,begin
- FileCopy,"%pFilePath%\Drivers\snapapi.dll",%target_sys%
- FileCopy,"%pFilePath%\Drivers\snapman.sys",%target_sys%\DRIVERS
- end
- //-
- if,%SourceArch%,Equal,X64,begin
- FileCopy,"%pFilePath%\Drivers\snapapi.dll",%Target_Win%\SysWOW64
- FileCopy,"%pFilePath%\Drivers\snapman_a64.sys",%target_sys%\DRIVERS\snapman.sys
- end
- [Software.AddReg]
- Echo,"Loading registry hive: [software]"
- Echo,"Writing new values on registry hive.."
- if,%SourceArch%,Equal,X86,begin
- RegWrite,HKLM,0x1,"Tmp_Software\Acronis\TrueImage","powerpack",%pLicPowerpack%
- RegWrite,HKLM,0x1,"Tmp_Software\Acronis\TrueImage","standard",%pLicStandard%
- RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\Settings","WorkingDir","%PE_Programs%\%ProgramFolder%"
- RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","icu38.dll","%PE_Programs%\%ProgramFolder%\icu38.dll"
- RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","rpc_client.dll","%PE_Programs%\%ProgramFolder%\rpc_client.dll"
- RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","resource.dll","%PE_Programs%\%ProgramFolder%\resource.dll"
- RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","gc.dll","%PE_Programs%\%ProgramFolder%\gc.dll"
- RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","thread_pool.dll","%PE_Programs%\%ProgramFolder%\thread_pool.dll"
- RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","libcrypto9.dll","%PE_Programs%\%ProgramFolder%\libcrypto9.dll"
- RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","libssl9.dll","%PE_Programs%\%ProgramFolder%\libssl9.dll"
- RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","auto_reactivate.exe","%PE_Programs%\%ProgramFolder%\auto_reactivate.exe"
- RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","auto_reactivate64.exe","%PE_Programs%\%ProgramFolder%\auto_reactivate64.exe"
- RegWrite,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","snapapi.dll","System32\snapapi.dll"
- RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","kb_link.dll","%PE_Programs%\%ProgramFolder%\kb_link.dll"
- end
- //-
- if,%SourceArch%,Equal,X64,begin
- RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node\Acronis\TrueImage","powerpack",%pLicPowerpack%
- RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node\Acronis\TrueImage","standard",%pLicStandard%
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\Settings","WorkingDir","%PE_Programs%\%ProgramFolder%"
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","icu38.dll","%PE_Programs%\%ProgramFolder%\icu38.dll"
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","rpc_client.dll","%PE_Programs%\%ProgramFolder%\rpc_client.dll"
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","resource.dll","%PE_Programs%\%ProgramFolder%\resource.dll"
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","gc.dll","%PE_Programs%\%ProgramFolder%\gc.dll"
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","thread_pool.dll","%PE_Programs%\%ProgramFolder%\thread_pool.dll"
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","libcrypto9.dll","%PE_Programs%\%ProgramFolder%\libcrypto9.dll"
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","libssl9.dll","%PE_Programs%\%ProgramFolder%\libssl9.dll"
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","auto_reactivate.exe","%PE_Programs%\%ProgramFolder%\auto_reactivate.exe"
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","auto_reactivate64.exe","%PE_Programs%\%ProgramFolder%\auto_reactivate64.exe"
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","kb_link.dll","%PE_Programs%\%ProgramFolder%\kb_link.dll"
- RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","snapapi.dll","SysWow64\snapapi.dll"
- end
- [SetupReg.AddReg]
- Echo,"Loading registry hive: [setupreg.hiv]"
- Echo,"Writing new values on registry hive.."
- RegWrite,HKLM,0x7,"Tmp_System\ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}","UpperFilters","PartMgr","snapman"
- RegWrite,HKLM,0x7,"Tmp_System\ControlSet001\Control\Class\{71A27CDD-812A-11D0-BEC7-08002BE2092F}","UpperFilters","snapman"
- RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Services\snapman","DisplayName","Acronis Snapshot Manager"
- RegWrite,HKLM,0x4,"Tmp_System\ControlSet001\Services\snapman","ErrorControl",1
- RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Services\snapman","ImagePath","system32\DRIVERS\snapman.sys"
- RegWrite,HKLM,0x4,"Tmp_System\ControlSet001\Services\snapman","Start",0
- RegWrite,HKLM,0x4,"Tmp_System\ControlSet001\Services\snapman","Type",1
- //-
- if,%SourceArch%,Equal,X64,begin
- RegWrite,HKLM,0x4,"Tmp_System\ControlSet001\Services\snapman","WOW64",1
- end
- [SetValue]
- 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 Snapshot Driver#$q"
- IniWrite,"%target_win%\txtsetup.sif","HardwareIdsDatabase","STORAGE\Volume","#$qVolume#$q#$c{71A27CDD-812A-11D0-BEC7-08002BE2092F}"
- //-
- RegHiveUnLoad,Tmp_Software
- RegHiveUnLoad,Tmp_System
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement