[Main]
Title=Windows Vista Recovery Environment
Author=martinr, NightMan, Markus Debus
Level=3
Version=14
Description=Windows Recovery Environment provides two main functionalities: automatic diagnosis and repair of boot problems using a tool called Startup Repair, and a centralized platform for advanced recovery tools. Requires Vista DVD as source, not the WAIK, and Common DLLs script.
Locked=false
Contact=http://blogs.msdn.com/winre/
Selected=False
Download_Level=1
Mandatory=False
Credits=Nightman, Nuno Brito, Peter Schlang and all the rest from www.boot-land.net

[Variables]
%ProgramTitle%=%TextBox_Name%
%ProgramEXE%=RecEnv.exe
%ProgramFolder%=WinRE

[Process]
Echo,Processing %ProgramTitle%...
ReadENV
#IniRead,%VistaInfo%,"VistaInfo","SourceType","%SourceType%"
If,"%SourceType%",NotEqual,"VistaCD",Exit,"Requires Windows Vista installfiles/Server2008 or DVD..."
IniRead,"%basedir%\Projects\%ProjectName%\Addons\dll.script","Main","Selected","%CommonFiles%"
If,"%CommonFiles%",NotEqual,"True",begin
Message,"The Common DLL Files script must be selected to use WinRE script"
Exit,"The Common DLL Files script must be selected to use WinRE script"
end
RunfromRAM,True
DirMake,"%Target_Prog%\%ProgramFolder%"
DirMake,"%Target_Prog%\%ProgramFolder%\%DistLang%"
If,ExistFile,"%BootSRC%\sources\recovery\%DistLang%\PssWiz.exe.mui",FileCopy,"%BootSRC%\sources\recovery\%DistLang%\PssWiz.exe.mui","%Target_Prog%\%ProgramFolder%\%DistLang%\PssWiz.exe.mui"
If,ExistFile,"%BootSRC%\sources\recovery\%DistLang%\RecEnv.exe.mui",FileCopy,"%BootSRC%\sources\recovery\%DistLang%\RecEnv.exe.mui","%Target_Prog%\%ProgramFolder%\%DistLang%\RecEnv.exe.mui"
If,ExistFile,"%BootSRC%\sources\recovery\%DistLang%\StartRep.exe.mui",FileCopy,"%BootSRC%\sources\recovery\%DistLang%\StartRep.exe.mui","%Target_Prog%\%ProgramFolder%\%DistLang%\StartRep.exe.mui"
If,ExistFile,"%BootSRC%\sources\recovery\en-US\PssWiz.exe.mui",FileCopy,"%BootSRC%\sources\recovery\en-US\PssWiz.exe.mui","%Target_Prog%\%ProgramFolder%\%DistLang%\PssWiz.exe.mui"
If,ExistFile,"%BootSRC%\sources\recovery\en-US\RecEnv.exe.mui",FileCopy,"%BootSRC%\sources\recovery\en-US\RecEnv.exe.mui","%Target_Prog%\%ProgramFolder%\%DistLang%\RecEnv.exe.mui"
If,ExistFile,"%BootSRC%\sources\recovery\en-US\StartRep.exe.mui",FileCopy,"%BootSRC%\sources\recovery\en-US\StartRep.exe.mui","%Target_Prog%\%ProgramFolder%\%DistLang%\StartRep.exe.mui"
If,ExistFile,"%BootSRC%\sources\recovery\PssWiz.exe",FileCopy,"%BootSRC%\sources\recovery\PssWiz.exe","%Target_Prog%\%ProgramFolder%\PssWiz.exe"
If,ExistFile,"%BootSRC%\sources\recovery\RecEnv.exe",FileCopy,"%BootSRC%\sources\recovery\RecEnv.exe","%Target_Prog%\%ProgramFolder%\RecEnv.exe"
If,ExistFile,"%BootSRC%\sources\recovery\StartRep.exe",FileCopy,"%BootSRC%\sources\recovery\StartRep.exe","%Target_Prog%\%ProgramFolder%\StartRep.exe"
If,ExistFile,"%BootSRC%\Windows\System32\%DistLang%\bmrui.exe.mui",FileCopy,"%BootSRC%\Windows\System32\%DistLang%\bmrui.exe.mui","%Target_Prog%\%ProgramFolder%\%DistLang%\bmrui.exe.mui"
If,ExistFile,"%BootSRC%\Windows\System32\%DistLang%\rstrui.exe.mui",FileCopy,"%BootSRC%\Windows\System32\%DistLang%\rstrui.exe.mui","%Target_Prog%\%ProgramFolder%\%DistLang%\rstrui.exe.mui"
If,ExistFile,"%BootSRC%\windows\System32\bmrui.exe",FileCopy,"%BootSRC%\windows\System32\bmrui.exe","%TargetDir%\windows\System32\bmrui.exe"
If,ExistFile,"%BootSRC%\windows\System32\rstrui.exe",FileCopy,"%BootSRC%\windows\System32\bmrui.exe","%TargetDir%\windows\System32\rstrui.exe"
If,ExistFile,"%BootSRC%\Windows\System32\en-US\bmrui.exe.mui",FileCopy,"%BootSRC%\Windows\System32\en-US\bmrui.exe.mui","%Target_Prog%\%ProgramFolder%\%DistLang%\bmrui.exe.mui"
If,ExistFile,"%BootSRC%\Windows\System32\en-US\rstrui.exe.mui",FileCopy,"%BootSRC%\Windows\System32\en-US\rstrui.exe.mui","%Target_Prog%\%ProgramFolder%\%DistLang%\rstrui.exe.mui"
Require_File,rstrui.exe
Require_File,mdsched.exe
Require_File,dbgeng.dll
Require_File,dbghelp.dll
#added for completepc restore to work
Require_File,recdisc.exe
Require_File,recover.exe
Require_File,sdspres.dll
Require_File,wbadmin.exe
Require_File,wbengine.exe
Require_File,wdscapture.exe
Require_File,wdscapture.inf
Require_File,wdscsl.dll
Require_File,wdsimage.dll
Require_File,wdstptc.dll
Echo,Creating %ProgramTitle% Shortcuts...
If,%CheckBox_SM%,Equal,True,Add_Shortcut,StartMenu,"%TextBox_Menu%","%PE_Programs%\%ProgramFolder%\RecEnv.exe","%TextBox_Name%"
If,%CheckBox_DE%,Equal,True,Add_Shortcut,Desktop,,"%PE_Programs%\%ProgramFolder%\RecEnv.exe","%TextBox_Name%"

[Interface]
TextLabel_Shortcut="Create shortcuts named",1,1,27,17,117,18,8,Normal
CheckBox_SM="Start Menu, in folder",1,3,66,53,129,18,True
CheckBox_DE=DeskTop,1,3,66,79,96,18,False
TextBox_Name=" ",1,0,147,16,147,21,"Vista Recovery Environment"
TextBox_Menu=,1,0,187,51,138,21,Recovery
pTextLabel2=in:,1,1,297,15,230,19,8,Normal

[EncodedFile-AuthorEncoded-RecoveryEnvironment.gif]
lines=1
[encoded data, 6784 characters]

[AuthorEncoded]
RecoveryEnvironment.gif=4Kb,6Kb
Logo=RecoveryEnvironment.gif

