Lenovo ThinkCentre M92z (English) Rescue and Recovery 4.3 Deployment Guide - Page 60

Administrators Group., ThinkVantage Technologies XML/ADM Supplement

Page 60 highlights

@ECHO OFF :: This is the name of the EXE (Without the .EXE) set BUILDID=z902zisXXXXus00.exe :: This is the drive letter for the z902zisXXXXus00.exe :: NOTE: DO NOT END THE STRING WITH A "\". IT IS ASSUMED TO NOT BE THERE. SET SOURCEDRIVE=C: :: Create the RRTemp directory on the HDD for the exploded WWW EXMD c:\SWTOOLS :: Explode the WWW EXE to the directory c:\SWTOOLS start /WAIT %SOURCEDRIVE%\%BUILDID% /a /s /v"/qn TARGETDIR=c:\SWTOOLS" Copy z902ZAB10YYUS00.tvt and Z333ZAA10ZZUS00.tvt to c:\SWTOOLS\ (where YY and ZZ are build IDs) copy z902ZAB10YYUS00.tvt to c:\SWTOOLS copy Z333ZAA10ZZUS00.tvt C: to c:\SWTOOLS If you want installation for supported languages besides US, copy z902ZAB10YYUS00.tvt to c:\SWTOOLS (where YY is the build ID and CC is the country code). copy z902ZAB10YYUS00.tvt to c:\SWTOOLS 2. You can make many customizations before the installation of the Rescue and Recovery program. Some examples in this scenario are: v Change maximum number of incremental backups to 4. v Set the Rescue and Recovery program to perform an incremental backup every day at 1:59 p.m. to the local hard disk drive and call it Scheduled. v Hide the Rescue and Recovery user interface to all users not in the local Administrators Group. 3. Customize the default rnrdeploy.xml file. Some parameters can be modified. See the ThinkVantage Technologies XML/ADM Supplement for more information. 4. In the same directory as the install MSI file, create an install.cmd file, which will perform several actions: v Copy the custom rnrdeploy.xml file into the installation package created in the c:\SWTOOLS directory: v Perform a silent installation of the Rescue and Recovery program without a reboot at the end. v Start the Rescue and Recovery program so that a base backup can be performed. v After the service is started, set up the environment to create an ISO image of the Rescue and Recovery CD (this is normally performed as part of a reboot). v Create the ISO image. v Create the base backup and reboot the system. 5. Modify the install.cmd code. The following represents the code for install.cmd: :: Copy custom rnrdeploy.xml here copy rnrdeploy.xml "c:\SWTOOLS\Program Files\Lenovo\Rescue and Recovery" :: Install using the MSI with no reboot (Remove "REBOOT="R"" to force a reboot) start /WAIT msiexec /i "c:\SWTOOLS\Rescue and Recovery.msi" /qn REBOOT="R" :: Start the service. This is needed to create a base backup. start /WAIT net start "Rescue and Recovery Service" :: Make an ISO file here - ISO will reside in c:\Program Files\Lenovo\Rescue and Recovery\rrcd Note: You do not need to set up the environment if the system is rebooted. :: Set up the environment set PATH=%SystemDrive%\Program Files\Common Files\Lenovo\Python24 set PATHEXT=%PATHEXT%;.PYW;.PYO;.PYC;.PY 52 Rescue and Recovery 4.3 Deployment Guide

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96

@ECHO OFF
:: This is the name of the EXE (Without the .EXE)
set BUILDID=z902zisXXXXus00.exe
:: This is the drive letter for the z902zisXXXXus00.exe
:: NOTE: DO NOT END THE STRING WITH A "\".
IT IS ASSUMED TO NOT BE THERE.
SET SOURCEDRIVE=C:
:: Create the RRTemp directory on the HDD for the exploded WWW EXMD c:\SWTOOLS
:: Explode the WWW EXE to the directory c:\SWTOOLS
start /WAIT %SOURCEDRIVE%\%BUILDID% /a /s /v"/qn TARGETDIR=c:\SWTOOLS"
Copy z902ZAB10YYUS00.tvt and Z333ZAA10ZZUS00.tvt to c:\SWTOOLS\
(where YY and ZZ are build IDs)
copy z902ZAB10YYUS00.tvt to c:\SWTOOLS
copy Z333ZAA10ZZUS00.tvt C: to c:\SWTOOLS
If you want installation for supported languages besides US,
copy z902ZAB10YYUS00.tvt to c:\SWTOOLS
(where YY is the build ID and CC is the country code).
copy z902ZAB10YYUS00.tvt to c:\SWTOOLS
2.
You can make many customizations before the installation of the Rescue and
Recovery program. Some examples in this scenario are:
v
Change maximum number of incremental backups to 4.
v
Set the Rescue and Recovery program to perform an incremental backup
every day at 1:59 p.m. to the local hard disk drive and call it Scheduled.
v
Hide the Rescue and Recovery user interface to all users not in the local
Administrators Group.
3.
Customize the default rnrdeploy.xml file. Some parameters can be modified.
See the
ThinkVantage Technologies XML/ADM Supplement
for more information.
4.
In the same directory as the install MSI file, create an install.cmd file, which
will perform several actions:
v
Copy the custom rnrdeploy.xml file into the installation package created in
the c:\SWTOOLS directory:
v
Perform a silent installation of the Rescue and Recovery program without a
reboot at the end.
v
Start the Rescue and Recovery program so that a base backup can be
performed.
v
After the service is started, set up the environment to create an ISO image of
the Rescue and Recovery CD (this is normally performed as part of a reboot).
v
Create the ISO image.
v
Create the base backup and reboot the system.
5.
Modify the install.cmd code. The following represents the code for install.cmd:
:: Copy custom rnrdeploy.xml here
copy rnrdeploy.xml "c:\SWTOOLS\Program Files\Lenovo\Rescue and Recovery"
:: Install using the MSI with no reboot (Remove "REBOOT="R"" to force a reboot)
start /WAIT msiexec /i "c:\SWTOOLS\Rescue and Recovery.msi" /qn REBOOT="R"
:: Start the service. This is needed to create a base backup.
start /WAIT net start "Rescue and Recovery Service"
:: Make an ISO file here - ISO will reside in c:\Program Files\Lenovo\Rescue and
Recovery\rrcd
Note:
You do not need to set up the environment if the system is rebooted.
:: Set up the environment
set PATH=%SystemDrive%\Program Files\Common Files\Lenovo\Python24
set PATHEXT=%PATHEXT%;.PYW;.PYO;.PYC;.PY
52
Rescue and Recovery 4.3 Deployment Guide