Lenovo ThinkPad Edge 15 User Manual

Page 85

Advertising
background image

• Perform a silent installation of the Rescue and Recovery programwithout a reboot at the end.
• Start the Rescue and Recovery program so that a base backup can be performed.
• 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).

• Create the ISO image.
• 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:\RRTemp\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:\RRTemp\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=.PYW;.PYO;.PYC;.PY

set TCL_LIBRARY=%SystemDrive%\Program Files\Common Files\Lenovo\Python24
\tcl\tcl8.4

set TK_LIBRARY=%SystemDrive%\Program Files\Common Files\Lenovo\Python24
\tcl\tk8.4

set PYTHONCASEOK=1

set RR=C:\Program Files\Lenovo\Rescue and Recovery\

set PYTHONPATH="C:\Program Files\Common Files\Lenovo\Python24"

:: The next line will create the ISO silently and not burn it

Chapter 5

.

Best practices

77

Advertising