Reply to this topic
 Avira Rescue System, Script for multi-boot into avira rescue system
post Jul 4 2009, 02:49 PM
Post #1
wastebin
  
Group: Members

  Joined: 30-December 06
Posts: 8
Thank(s): 0


Netherlands


I made a quick script for a multiboot into avira rescue system

more info At Avira Website

grub4dos script and multiboot must be enabled to use this script. tested under Vista-pe


edited after better testing. works now cool.gif

CODE
[Main]
Title=Avira Rescue System
Author=Wastebin
Level=7
Version=02
Description=Avira Rescue System
Locked=false
Contact=wastebin@nomail
Date=04.07.2009
Selected=True
Download_Level=2

[variables]
%MenuFile_GRUB%=%targetdir%\menu.lst

[Process]
If,NotExistDir,"%TargetDir%\avira_rs",DirMake,"%TargetDir%\avira_rs"
WebGet,"http://dl1.pro.antivir.de/package/rescue_system/common/en/rescue_system-common-en.iso","%TargetDir%\avira_rs\avira_rs.iso"
ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%TargetDir%\avira_rs\avira_rs.iso#$q -o#$q%TargetDir%\avira_rs\#$q"
FileDelete,"%TargetDir%\avira_rs\avira_rs.iso"
DirMove,"%TargetDir%\avira_rs\antivir","%TargetDir%\antivir"
If,NotExistFile,"%MenuFile_GRUB%",Exit,"Please enable MultiBoot mode and Grub4Dos before using this script"
#
#
TXTAddLine,"%MenuFile_GRUB%","title AntiVir Rescue System","Append"
TXTAddLine,"%MenuFile_GRUB%","find --set-root /avira_rs/vmlinuz","Append"
TXTAddLine,"%MenuFile_GRUB%","kernel /avira_rs/vmlinuz vga=769  ramdisk_size=99051 root=/dev/ram0 rw  console=/dev/vc/4","Append"
TXTAddLine,"%MenuFile_GRUB%","initrd /avira_rs/initrd.gz","Append"
TXTAddLine,"%MenuFile_GRUB%"," ","Append"

Attached File(s)
Attached File  avira_rs.script ( 1.18K ) Number of downloads: 151
 


+Quote Post
post Jul 4 2009, 03:01 PM
Post #2
was_jaclaz
Finder   ******
Group: Advanced user

  Joined: 14-July 06 From: Gone in the mist

Posts: 7,230
Thank(s): 564


Italy


Good. smile.gif

More or less the .script "translates" to (for general use) :
  • Download:
    http://dl1.pro.antivir.de/package/rescue_s...m-common-en.iso
  • Extract it's contents to \avira_rs\
  • Add to menu.lst this entry:
    CODE
    title AntiVir Rescue System
    find --set-root /avira_rs/vmlinuz
    kernel /avira_rs/vmlinuz vga=769  ramdisk_size=99051 root=/dev/ram0 rw  console=/dev/vc/4
    initrd /avira_rs/initrd.gz
    boot


Just for the record, last line in your menu.lst entry, "boot" is noot needed, as the boot command is always implied and executed as last command in a menu.lst entry. (in other words it is ONLY needed in commandline mode)

More menu.lst entries are given here:
http://www.boot-land.net/forums/index.php?showtopic=8311


cheers.gif

jaclaz


--------------------
+Quote Post
post Jul 4 2009, 08:19 PM
Post #3
wastebin
  
Group: Members

  Joined: 30-December 06
Posts: 8
Thank(s): 0


Netherlands


QUOTE (jaclaz @ Jul 4 2009, 05:01 PM) *
Good. smile.gif

More or less the .script "translates" to (for general use) :
  • Download:
    http://dl1.pro.antivir.de/package/rescue_s...m-common-en.iso
  • Extract it's contents to \avira_rs\
  • Add to menu.lst this entry:
    CODE
    title AntiVir Rescue System
    find --set-root /avira_rs/vmlinuz
    kernel /avira_rs/vmlinuz vga=769  ramdisk_size=99051 root=/dev/ram0 rw  console=/dev/vc/4
    initrd /avira_rs/initrd.gz
    boot


Just for the record, last line in your menu.lst entry, "boot" is noot needed, as the boot command is always implied and executed as last command in a menu.lst entry. (in other words it is ONLY needed in commandline mode)

More menu.lst entries are given here:
http://www.boot-land.net/forums/index.php?showtopic=8311


cheers.gif

jaclaz

thx for the feedback, but i want to automate my builds as much as possible.
my build is being used at a computer repairshop and is updated nightly.

don't want to update every single virus and mailware scanner by hand wink.gif
winbuilder must create a new build succesfully, without any user interaction
+Quote Post
post Jul 4 2009, 09:54 PM
Post #4
Icecube
Silver Member   ****
Group: Advanced user

  Joined: 7-September 08
Posts: 641
Thank(s): 172


Belgium


Are you sure that it works? It will boot, but it probably won't scan any actual file (the scan wil finish after 1 second), because it can't find the definition files. The /antivir directory (which contains the definition files), need to be in the root of the iso.

At least this was the case some while ago.


--------------------
+Quote Post
post Jul 11 2009, 10:34 AM
Post #5
wastebin
  
Group: Members

  Joined: 30-December 06
Posts: 8
Thank(s): 0


Netherlands


you are right, i had some files left over from previous tests in the system.

changed the script and it works now
+Quote Post

Reply to this topic
3 User(s) are reading this topic ()