Jump to content











Photo
- - - - -

[App Script] Acronis TrueImage10


  • Please log in to reply
43 replies to this topic

#1 enli

enli

    Newbie

  • Members
  • 21 posts
  •  
    India

Posted 22 June 2008 - 08:10 PM

Warm greetings to the community..

I finnally got some spare time after the exams and i decided to make a multiboot dvd as an emergency rescue. For which Livexp and then Acronis TrueImage 10 is a must in my point of view as i just restore C: partition whenever i need to start clean ( takes only 3-4 mins ). I had already modified same script from VistaPE to work with LiveXp but i had not released it in the separate topic. So here it is.

I have added option to let user choose where to add shortcut.

I need some testers to test it. For me it works 100%.

Good luck
EnLi

P.S. : Attaching the script. Please put it inside "\LiveXp\Projects\LiveXP\Apps\HD tasks\ " as i think its the best possible folder for this script

EDIT: Attaching updated script by Kfishoh.

Attached Files



#2 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 23 June 2008 - 06:46 AM

Seems to be fine. It creates the shortcuts in both Desktop and Start Menu.
I tested using the BartPE files folder Plugin created by " Acronis True Image 10.0 Home V10 Build 4942 ".

Thanks!

#3 enli

enli

    Newbie

  • Members
  • 21 posts
  •  
    India

Posted 23 June 2008 - 02:05 PM

It apeals to me that the shortcut should be placed for application with this great importance in both start menu and desktop so i did enabled these two checkboxes by default. If users dont want this, they can keep any shortcut or disable all of them.

Glad it pleased you.

EnLi

#4 pedrole15

pedrole15

    Silver Member

  • .script developer
  • 731 posts
  •  
    France

Posted 23 June 2008 - 08:23 PM

Becarefull Enli this script will not work with next API
All variable %Hive_HKLM%, %Hive_HKU% and %Hive_HKCU% are suppressed

RegHiveLoad,"Tmp_Software_hiv","%HIVE_HKU%"

RegHiveLoad,"Tmp_System_Hiv","%HIVE_HKLM%"

reg_add,0x4,"Tmp_System_Hiv\ControlSet001\Services\snapman","Type","1"

RegHiveUnload,"Tmp_System_Hiv"
Must be
Hive_Load,HKU or Machine
Hive_Load,HKLM
or System
reg_add,0x4,"%reg%\ControlSet001\Services\snapman","Type","1"
Hive_Unload


SET,"%DestDir%","Program#$sFiles\%ProgramFolder%"

System,RefreshVars
StrFormat,filename,%Target_Prog%,%ProgramFiles_Name% ====> The name of %ProgramFiles% is not same for different country
SET,"%DestDir%","%ProgramFiles_Name%\%ProgramFolder%"
System,RefreshVars ===> Only for WB 074 for future version suppress this line

:)
Pedro

#5 enli

enli

    Newbie

  • Members
  • 21 posts
  •  
    India

Posted 24 June 2008 - 01:17 PM

No offense pedro.. I m not interested in releasing script anyway. I just wanted to share it as it might be helpful for someone. Maybe you could modify it and add to winbuilder ?

I m a student and i cant spend time learning the new API or scripting. I just modified this script which was available in VistaPE to work with LiveXP by referring the bartpe plugin and another LiveXP script and it worked :)

Regards
EnLi

#6 kfishoh

kfishoh
  • Members
  • 4 posts
  •  
    United States

Posted 24 August 2008 - 01:07 AM

Becarefull Enli this script will not work with next API
All variable %Hive_HKLM%, %Hive_HKU% and %Hive_HKCU% are suppressed

RegHiveLoad,"Tmp_Software_hiv","%HIVE_HKU%"

RegHiveLoad,"Tmp_System_Hiv","%HIVE_HKLM%"

reg_add,0x4,"Tmp_System_Hiv\ControlSet001\Services\snapman","Type","1"

RegHiveUnload,"Tmp_System_Hiv"
Must be
Hive_Load,HKU or Machine
Hive_Load,HKLM
or System
reg_add,0x4,"%reg%\ControlSet001\Services\snapman","Type","1"
Hive_Unload


SET,"%DestDir%","Program#$sFiles\%ProgramFolder%"

System,RefreshVars
StrFormat,filename,%Target_Prog%,%ProgramFiles_Name% ====> The name of %ProgramFiles% is not same for different country
SET,"%DestDir%","%ProgramFiles_Name%\%ProgramFolder%"
System,RefreshVars ===> Only for WB 074 for future version suppress this line

:whistling:
Pedro



Thanks for the advice --- It helped me to modify this script to have it working with WB075b3 ;)

#7 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 24 August 2008 - 08:07 AM

Can you post youre modified updated version.

#8 kfishoh

kfishoh
  • Members
  • 4 posts
  •  
    United States

Posted 24 August 2008 - 04:24 PM

Can you post youre modified updated version.


Here it is.

Attached Files



#9 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 24 August 2008 - 06:11 PM

Thanks!

#10 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 24 August 2008 - 06:11 PM

Thanks!

#11 enli

enli

    Newbie

  • Members
  • 21 posts
  •  
    India

Posted 30 August 2008 - 04:37 AM

Thanks Kfishoh. (Didnt have time to update or play around LiveXp as college is started and I am really busy right now.)
I have updated the script in the first post for easier access.

Cheers
EnLi

#12 JFLORES

JFLORES

    Newbie

  • Members
  • 14 posts
  • Location:U S
  •  
    United States

Posted 21 December 2008 - 10:35 PM

Can this script be used for vistape?

#13 kfishoh

kfishoh
  • Members
  • 4 posts
  •  
    United States

Posted 23 December 2008 - 07:29 PM

Can this script be used for vistape?

I do not know, I have not tried it with VistaPE as I ran into difficulties with VistaPE and my SATA controller.

#14 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

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]

#15 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 24 December 2008 - 09:25 AM

Any feedback whether works or not?

#16 RicoPausB

RicoPausB
  • Members
  • 9 posts
  •  
    Germany

Posted 08 January 2009 - 12:45 PM

script won't work by creating the VPE under Vista x64 ...
think, it's due to the different folders "C:\Program Files" and "C:\Program Files (x86)"
I'll test it once more under xp sp3 ...

Tested ... worked ...

#17 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 08 January 2009 - 04:12 PM

dera,

Can you zip the script and upload? I have an issue with copy/paste from code box here for some reason. Thanks :)

#18 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 08 January 2009 - 04:49 PM

amalux,

try Opera :) , the ultimate browser of our galaxy :) :)

Here is script from dera's post:
http://lancelot.winb...tPEadd_Dera.rar


A note for True Image 2009 script dera provided:

acronis dont come with bartpe plugin anymore in its package. Registered users should go to acronis website to ask bartpe plugin, than this script can be used.

#19 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 08 January 2009 - 05:23 PM

Why do I need Opera when I've got you? :)

Thanks buddy :)

#20 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 08 January 2009 - 05:36 PM

Thanks Lancelot

Additioanaly:
I tried to make an exact port of the BartPE plugin
but someone can give a try to comment out all the lines which start with 'RegAddBoot'
whether the app. is still working?

plus not to copy these files:
f11.cfg
kernel.dat
ramdisk.dat
bootwiz.bin
bootmenu.bin
mouse.com
whether the app. is still working?

#21 drmaniac

drmaniac

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 08 January 2009 - 05:48 PM

I have Acronis 12 installed and also the PE Plugin downloaded from acronis.

I tryd the script, but get several Errors.

After the first try, I get a copy error problem:

FileCopy - Kopieren fehlgeschlagen [C:\Program Files\Acronis\Media Add-Ons\BartPE\Files\Drivers\snapman.sys] nach: [%BaseDir%\target\vpe-core\Windows\System32\drivers]
Halt

after that I created manualy the paths %BaseDir%\target\vpe-core\Windows\System32\drivers

after restarting the script he had stopped while loading registry hive

[Failed] RegHiveLoad - 'Registry-Zweig laden' fehlgeschlagen: [wb-hive] von Datei: [%BaseDir%\target\vpe-core\windows\system32\config\system]
[Warning] Halt

So I cant get it work.

I use ctVistaPE with Winbuilder 075 beta5w.

#22 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 08 January 2009 - 06:42 PM

Sorry
but I have no idea why such RegHiveLoad and copy errors can occur
at me using this package:
vistape.net/files/vistape12rc1-base.7z
there are no such errors

Edit:
also cannot understand how is it possible that in the running project the folder: '\Windows\System32\drivers' does not exist

Edited by dera, 08 January 2009 - 07:12 PM.


#23 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 08 January 2009 - 07:58 PM

after restarting the script

How do you mean?

(I thought to run a script individually with the little green arrow in most case is not possible)

#24 drmaniac

drmaniac

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 08 January 2009 - 08:38 PM

yes, I mean run the script individually.

First I run > copy error.
Second I run after man. creating filedirs > registry error

#25 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 08 January 2009 - 09:13 PM

I do not know ctVistaPE
but in VistaPE it is not possible
(when you run the project with the big blue arrow the project opening,
the sources .wim are mounted,
the %targetdir% prepared by the higher level base scripts
and at the finish the sources .wim unmounted
and the folders 'Program Files' 'Windows' 'ProgramData' in %targetdir% are packed into the vistape.wim
the project close
and these folders disappear from the %targetdir% when the project is closed)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users