Advertisement
tomato777

acronis 2010 script-winpe

Feb 23rd, 2023 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.48 KB | None | 0 0
  1. [Main]
  2. Title=Acronis TrueImage Home 2010 (v002)
  3. Description=Acronis TrueImage Home 2010 - BartPE conversion
  4. Type=script
  5. Level=5
  6. Version=002
  7. Selected=True
  8. Credits=PEBuilder plugin acronis.inf
  9. Author=Azaghul
  10.  
  11. [Variables]
  12. %ProgramFolder%=Acronis\TrueImageHome
  13. %ProgramTitle%=Acronis TrueImage Home 2010
  14. %ProgramEXE%=TrueImage_starter.exe
  15.  
  16. [Interface]
  17. ScrollBox_RunFromWhere="Run from RAM",1,4,23,44,140,21,"Run from RAM","Run from CD"
  18. pTextLabel1="Options:",1,1,10,24,105,18,8,Bold
  19. pOptionsBevel=pBevel1,1,12,0,21,221,225
  20. pShortcutSM="Create Startmenu Shortcut",1,3,17,85,185,18,True
  21. pShortcutSM_Folder="Start menu folder (blank for none):",1,0,33,125,168,21,"HD Tasks\Imaging"
  22. pShortcutSM_Name="Name for Shortcuts:",1,0,33,170,168,21,"TrueImage Home"
  23. pShortcutQL="Create Quicklaunch Shortcut",1,3,18,200,200,18,False
  24. pShortcutDT="Create Desktop Shortcut",1,3,18,220,200,18,True
  25. pTextLabel2="Paths:",1,1,231,24,221,18,8,Bold
  26. pPathsBevel=pBevel3,1,12,225,21,307,225
  27. pTextLabel3="Path to files:",1,1,235,60,200,18,8,Normal
  28. pFilePath="C:\WinPE\Projects\Win7PESE\Apps\HD Tasks\Imaging\AcronisTrueImageHome2010\",1,13,230,75,280,30,dir
  29. pLicPowerpack="Reg Key: HKU\Acronis\TrueImage - powerpack",1,0,240,125,270,18,""
  30. pLicStandard="Reg Key: HKU\Acronis\TrueImage - standard",1,0,240,170,270,18,""
  31.  
  32. [Process]
  33. Echo,Processing %ProgramTitle%...
  34. //-
  35. RegHiveLoad,Tmp_Software,%RegSoftware%
  36. RegHiveLoad,Tmp_System,%RegSystem%
  37. //-
  38. StrFormat,Replace,%ScrollBox_RunFromWhere%,"Run from ",,%Here%
  39. If,Not,%Here%,Equal,Normal,RunFrom,%Here%
  40. //-
  41. If,%pShortcutSM%,Equal,True,Add_Shortcut,StartMenu,%pShortcutSM_Folder%,,%pShortcutSM_Name%
  42. If,%pShortcutDT%,Equal,True,Add_Shortcut,Desktop,%pShortcutSM_Folder%,,%pShortcutSM_Name%
  43. If,%pShortcutQL%,Equal,True,Add_Shortcut,QuickLaunch
  44. If,ExistFile,%ProjectDir%\infconvert.ini,AddVariables,%ProjectDir%\infconvert.ini,variables
  45. //-
  46. Run,%ScriptFile%,WinntDirectories
  47. Run,%ScriptFile%,SourceDisksFiles
  48. Run,%ScriptFile%,Software.AddReg
  49. Run,%ScriptFile%,SetupReg.AddReg
  50. Run,%ScriptFile%,SetValue
  51.  
  52. [WinntDirectories]
  53. Echo,"Making new directories.."
  54. //-
  55. DirMake,"%target_prog%\%ProgramFolder%"
  56. DirMake,"%target_sys%\DRIVERS"
  57. DirMake,"%Target_Win%\SysWOW64"
  58. //-
  59. RegWrite,HKLM,0x1,"Tmp_Software\Acronis"
  60. RegWrite,HKLM,0x1,"Tmp_System\ControlSet001"
  61. RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Control"
  62. RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Control\Class"
  63. RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}"
  64. RegWrite,HKLM,0x7,"Tmp_System\ControlSet001\Control\Class\{71A27CDD-812A-11D0-BEC7-08002BE2092F}"
  65. RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Services"
  66. RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Services\snapman"
  67. //-
  68. if,%SourceArch%,Equal,X86,begin
  69. RegWrite,HKLM,0x1,"Tmp_Software\Acronis\TrueImage"
  70. RegWrite,HKLM,0x1,"Tmp_Software\Acronis\TrueImageHome\Settings"
  71. RegWrite,HKLM,0x1,"Tmp_Software\Acronis\TrueImageHome\CommonComponents"
  72. end
  73. //-
  74. if,%SourceArch%,Equal,X64,begin
  75. RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node"
  76. RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node\Acronis"
  77. RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node\Acronis\TrueImageHome"
  78. RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents"
  79. end
  80.  
  81. [SourceDisksFiles]
  82. Echo,"Copying files.."
  83. FileCopy,"%pFilePath%\TrueImage.exe",%Target_Prog%\%ProgramFolder%
  84. FileCopy,"%pFilePath%\TrueImage_starter.exe",%Target_Prog%\%ProgramFolder%
  85. FileCopy,"%pFilePath%\f11.cfg",%Target_Prog%\%ProgramFolder%
  86. FileCopy,"%pFilePath%\kernel.dat",%Target_Prog%\%ProgramFolder%
  87. FileCopy,"%pFilePath%\ramdisk.dat",%Target_Prog%\%ProgramFolder%
  88. FileCopy,"%pFilePath%\timounter.dll",%Target_Prog%\%ProgramFolder%
  89. FileCopy,"%pFilePath%\bootwiz.bin",%Target_Prog%\%ProgramFolder%
  90. FileCopy,"%pFilePath%\gen_bootmenu.bin",%Target_Prog%\%ProgramFolder%
  91. FileCopy,"%pFilePath%\mouse.com",%Target_Prog%\%ProgramFolder%
  92. FileCopy,"%pFilePath%\icu38.dll",%Target_Prog%\%ProgramFolder%
  93. FileCopy,"%pFilePath%\rpc_client.dll",%Target_Prog%\%ProgramFolder%
  94. FileCopy,"%pFilePath%\resource.dll",%Target_Prog%\%ProgramFolder%
  95. FileCopy,"%pFilePath%\icudt38.dll",%Target_Prog%\%ProgramFolder%
  96. FileCopy,"%pFilePath%\gc.dll",%Target_Prog%\%ProgramFolder%
  97. FileCopy,"%pFilePath%\thread_pool.dll",%Target_Prog%\%ProgramFolder%
  98. FileCopy,"%pFilePath%\fox.dll",%Target_Prog%\%ProgramFolder%
  99. FileCopy,"%pFilePath%\libcrypto9.dll",%Target_Prog%\%ProgramFolder%
  100. FileCopy,"%pFilePath%\libssl9.dll",%Target_Prog%\%ProgramFolder%
  101. FileCopy,"%pFilePath%\kb_link.dll",%Target_Prog%\%ProgramFolder%
  102. FileCopy,"%pFilePath%\auto_reactivate.exe",%Target_Prog%\%ProgramFolder%
  103. FileCopy,"%pFilePath%\auto_reactivate64.exe",%Target_Prog%\%ProgramFolder%
  104. FileCopy,"%pFilePath%\Drivers\Microsoft.VC80.CRT\Microsoft.VC80.CRT.manifest",%Target_Prog%\%ProgramFolder%
  105. FileCopy,"%pFilePath%\Drivers\Microsoft.VC80.CRT\msvcm80.dll",%Target_Prog%\%ProgramFolder%
  106. FileCopy,"%pFilePath%\Drivers\Microsoft.VC80.CRT\msvcp80.dll",%Target_Prog%\%ProgramFolder%
  107. FileCopy,"%pFilePath%\Drivers\Microsoft.VC80.CRT\msvcr80.dll",%Target_Prog%\%ProgramFolder%
  108. //-
  109. if,%SourceArch%,Equal,X86,begin
  110. FileCopy,"%pFilePath%\Drivers\snapapi.dll",%target_sys%
  111. FileCopy,"%pFilePath%\Drivers\snapman.sys",%target_sys%\DRIVERS
  112. end
  113. //-
  114. if,%SourceArch%,Equal,X64,begin
  115. FileCopy,"%pFilePath%\Drivers\snapapi.dll",%Target_Win%\SysWOW64
  116. FileCopy,"%pFilePath%\Drivers\snapman_a64.sys",%target_sys%\DRIVERS\snapman.sys
  117. end
  118.  
  119. [Software.AddReg]
  120. Echo,"Loading registry hive: [software]"
  121. Echo,"Writing new values on registry hive.."
  122. if,%SourceArch%,Equal,X86,begin
  123. RegWrite,HKLM,0x1,"Tmp_Software\Acronis\TrueImage","powerpack",%pLicPowerpack%
  124. RegWrite,HKLM,0x1,"Tmp_Software\Acronis\TrueImage","standard",%pLicStandard%
  125. RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\Settings","WorkingDir","%PE_Programs%\%ProgramFolder%"
  126. RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","icu38.dll","%PE_Programs%\%ProgramFolder%\icu38.dll"
  127. RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","rpc_client.dll","%PE_Programs%\%ProgramFolder%\rpc_client.dll"
  128. RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","resource.dll","%PE_Programs%\%ProgramFolder%\resource.dll"
  129. RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","gc.dll","%PE_Programs%\%ProgramFolder%\gc.dll"
  130. RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","thread_pool.dll","%PE_Programs%\%ProgramFolder%\thread_pool.dll"
  131. RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","libcrypto9.dll","%PE_Programs%\%ProgramFolder%\libcrypto9.dll"
  132. RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","libssl9.dll","%PE_Programs%\%ProgramFolder%\libssl9.dll"
  133. RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","auto_reactivate.exe","%PE_Programs%\%ProgramFolder%\auto_reactivate.exe"
  134. RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","auto_reactivate64.exe","%PE_Programs%\%ProgramFolder%\auto_reactivate64.exe"
  135. RegWrite,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","snapapi.dll","System32\snapapi.dll"
  136. RegAddBoot,HKLM,0x1,"Software\Acronis\TrueImageHome\CommonComponents","kb_link.dll","%PE_Programs%\%ProgramFolder%\kb_link.dll"
  137. end
  138. //-
  139. if,%SourceArch%,Equal,X64,begin
  140. RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node\Acronis\TrueImage","powerpack",%pLicPowerpack%
  141. RegWrite,HKLM,0x1,"Tmp_Software\Wow6432Node\Acronis\TrueImage","standard",%pLicStandard%
  142. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\Settings","WorkingDir","%PE_Programs%\%ProgramFolder%"
  143. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","icu38.dll","%PE_Programs%\%ProgramFolder%\icu38.dll"
  144. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","rpc_client.dll","%PE_Programs%\%ProgramFolder%\rpc_client.dll"
  145. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","resource.dll","%PE_Programs%\%ProgramFolder%\resource.dll"
  146. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","gc.dll","%PE_Programs%\%ProgramFolder%\gc.dll"
  147. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","thread_pool.dll","%PE_Programs%\%ProgramFolder%\thread_pool.dll"
  148. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","libcrypto9.dll","%PE_Programs%\%ProgramFolder%\libcrypto9.dll"
  149. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","libssl9.dll","%PE_Programs%\%ProgramFolder%\libssl9.dll"
  150. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","auto_reactivate.exe","%PE_Programs%\%ProgramFolder%\auto_reactivate.exe"
  151. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","auto_reactivate64.exe","%PE_Programs%\%ProgramFolder%\auto_reactivate64.exe"
  152. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","kb_link.dll","%PE_Programs%\%ProgramFolder%\kb_link.dll"
  153. RegAddBoot,HKLM,0x1,"Software\Wow6432Node\Acronis\TrueImageHome\CommonComponents","snapapi.dll","SysWow64\snapapi.dll"
  154. end
  155.  
  156. [SetupReg.AddReg]
  157. Echo,"Loading registry hive: [setupreg.hiv]"
  158. Echo,"Writing new values on registry hive.."
  159. RegWrite,HKLM,0x7,"Tmp_System\ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}","UpperFilters","PartMgr","snapman"
  160. RegWrite,HKLM,0x7,"Tmp_System\ControlSet001\Control\Class\{71A27CDD-812A-11D0-BEC7-08002BE2092F}","UpperFilters","snapman"
  161. RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Services\snapman","DisplayName","Acronis Snapshot Manager"
  162. RegWrite,HKLM,0x4,"Tmp_System\ControlSet001\Services\snapman","ErrorControl",1
  163. RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\Services\snapman","ImagePath","system32\DRIVERS\snapman.sys"
  164. RegWrite,HKLM,0x4,"Tmp_System\ControlSet001\Services\snapman","Start",0
  165. RegWrite,HKLM,0x4,"Tmp_System\ControlSet001\Services\snapman","Type",1
  166. //-
  167. if,%SourceArch%,Equal,X64,begin
  168. RegWrite,HKLM,0x4,"Tmp_System\ControlSet001\Services\snapman","WOW64",1
  169. end
  170. [SetValue]
  171. IniWrite,"%target_win%\txtsetup.sif","SourceDisksFiles","snapman.sys","1#$c#$c#$c#$c#$c#$c_3#$c4#$c1"
  172. IniWrite,"%target_win%\txtsetup.sif","SCSI.Load","snapman","snapman.sys#$c4"
  173. IniWrite,"%target_win%\txtsetup.sif","SCSI","snapman","#$qAcronis Snapshot Driver#$q"
  174. IniWrite,"%target_win%\txtsetup.sif","HardwareIdsDatabase","STORAGE\Volume","#$qVolume#$q#$c{71A27CDD-812A-11D0-BEC7-08002BE2092F}"
  175. //-
  176. RegHiveUnLoad,Tmp_Software
  177. RegHiveUnLoad,Tmp_System
  178.  
  179.  
Tags: Script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement