-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSG_Shortcuts.script
104 lines (98 loc) · 5.93 KB
/
SG_Shortcuts.script
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
97
98
99
100
101
102
103
104
[Main]
Title=SG Shortcuts
Author=Chefkeks
Level=1
Version=1
Description=Add SGE / SDE / SGN Recovery Shortcuts and SGN KeyRecovery to existing boot.wim
Contact=boot-land.net
Date=14.11.2010
Selected=None
Download_Level=0
NoWarning=False
Credits=Sophos for providing SGE / SDE / SGN Recovery files, manuals, etc.
[Process]
Echo,"Processing ..."
//Rename Target
ShellExecute,Hide,cmd.exe,"/C rename "%BaseDir%\Target" "Target_renamed""
If,EXISTDIR,"%BaseDir%\Target",Begin
Message,"%BaseDir%\Target still exists! Failed to rename the directory! Close all programs and explorer windows accessing %TargetDir% and then click the 'OK' button to try it again!",Error
ShellExecute,Hide,cmd.exe,"/C rename "%BaseDir%\Target" "Target_renamed""
If,EXISTDIR,"%BaseDir%\Target",Begin
Message,"%BaseDir%\Target still exists! Failed to rename the directory! Aborting...
Exit,"Exiting..."
End
End
If,NOT,EXISTDIR,"%BaseDir%\Target",Begin
DirMake,%TargetDir%
End
//ImageX
If,ExistFile,%Tools%\%OSArch%\imagex.exe,Begin
Set,%IMAGEX%,%Tools%\%OSArch%\imagex.exe
End
//Mount boot.wim
Echo,"Mounting boot.wim"
//If,EXISTDIR,%BootSRC%,Begin
//DirDelete,%BootSRC%
//DirMake,%BootSRC%
//End
ShellExecute,Hide,"#$q%IMAGEX%#$q","/mountrw #$q%BaseDir%\Target_renamed\%ProjectTitle%\sources\boot.wim#$q 1 #$q%TargetDir%#$q"
//SGE SDE Shortcuts
If,EXISTFILE,"%TargetDir%\Program Files\Sophos\RecoveryLogon\SgeRecLogon.exe",Begin
If,%pCheckBoxSGESDE%,EQUAL,True,Begin
//Add_Shortcut,Type,StartMenuFolder,(path\)FileName,Title,Work Folder,Parameters,(path\)IconFile#$cIconIndex,StartMode=(1,2,3),ToolTipText(only Gena/LiveXP)
If,%pCheckBox1%,Equal,True,Add_Shortcut,Desktop,,"X:\Program Files\Sophos\RecoveryLogon\SgeRecLogon.exe",%pTextBox2%
If,%pCheckBox2%,Equal,True,Add_Shortcut,StartMenu,%pTextBox1%,"X:\Program Files\Sophos\RecoveryLogon\SgeRecLogon.exe",%pTextBox2%
If,%pCheckBox3%,Equal,True,Add_Shortcut,QuickLaunch,"X:\Program Files\Sophos\RecoveryLogon\SgeRecLogon.exe",%pTextBox2%
End
End
//SGN Files
If,%pCheckBox9%,Equal,True,Begin
DirMake,"%TargetDir%\Program Files\Sophos\KeyRecovery and Restore\"
FileCopy,"%pFileBox1%\KeyRecovery and Restore\*.*","%TargetDir%\Program Files\Sophos\KeyRecovery and Restore\"
End
//SGN Shortcuts
If,EXISTFILE,"%TargetDir%\Program Files\Sophos\KeyRecovery and Restore\RecoverKeys.exe",Begin
If,%pCheckBoxSGN%,EQUAL,True,Begin
If,%pCheckBox6%,Equal,True,Add_Shortcut,Desktop,,"X:\Program Files\Sophos\KeyRecovery and Restore\RecoverKeys.exe",%pTextBox4%
If,%pCheckBox7%,Equal,True,Add_Shortcut,StartMenu,%pTextBox3%,"X:\Program Files\Sophos\KeyRecovery and Restore\RecoverKeys.exe",%pTextBox4%
If,%pCheckBox8%,Equal,True,Add_Shortcut,QuickLaunch,"X:\Program Files\Sophos\KeyRecovery and Restore\RecoverKeys.exe",%pTextBox4%
End
End
//Unmount boot.wim
Echo,"Unmounting boot.wim"
If,ExistDir,"%TargetDir%\Windows",ShellExecute,Hide,"#$q%imagex%#$q","/unmount /commit #$q%TargetDir%#$q"
//Rename Target
DirDelete,"%BaseDir%\Target"
ShellExecute,Hide,cmd.exe,"/C rename "%BaseDir%\Target_renamed" "Target""
If,EXISTDIR,"%BaseDir%\Target_renamed",Begin
Message,"%BaseDir%\Target_renamed still exists! Failed to rename the directory! Delete 'Target' in %BaseDir% and rename 'Target_renamed' to 'Target'.",Warning
Exit,"Exiting..."
End
[Interface]
pCheckBox1="Desktop shortcut",1,3,16,42,122,18,False
pCheckBox2="Start menu shortcut",1,3,16,78,122,18,True
pCheckBox3="Quicklaunch shortcut",1,3,16,60,122,18,False
pTextBox1="Start Menu folder:",1,0,16,115,146,21,Accessories
pTextBox2="Shortcut name:",1,0,16,152,146,23,"SGE Recovery Logon"
pCheckBoxSGESDE="Add Shortcuts for SGE / SDE",1,3,2,24,193,18,True
pTextLabel1="Safeguard Easy / Disk Encryption",1,1,3,2,206,18,9,Bold
pBevel1=pBevel1,1,12,-1,0,214,178
pTextLabel2="Safeguard Enterprise",1,1,219,2,134,18,9,Bold
pBevel2=pBevel2,1,12,216,0,377,178
pCheckBoxSGN="Add Shortcuts for SGN",1,3,219,24,205,18,True
pCheckBox6="Desktop shortcut",1,3,235,42,122,18,False
pCheckBox7="Start menu shortcut",1,3,235,78,122,18,True
pCheckBox8="Quicklaunch shortcut",1,3,235,60,122,18,False
pTextBox3="Start Menu folder:",1,0,235,113,146,21,Accessories
pTextBox4="Shortcut name:",1,0,235,152,146,23,"SGN Key Recovery"
pFileBox1=%GlobalTemplates%\SGN_Tools,1,13,389,36,204,30,file
pTextLabel3="SGN KeyRecovery and Restore",1,1,394,3,194,18,9,Bold
pTextLabel4="Note: Copy the 'KeyRecovery and Restore' directory from the 'tools' directory from the Safeguard Enterprise Installation Package to the directory above or point to a directory with the 'KeyRecovery and Restore' directory. Copy the directory and not only the files!",1,1,395,63,192,112,9,Normal
pCheckBox9="Add SGN 'KeyRecovery and Restore'",1,3,394,21,200,18,True
[InterfaceEncoded]
[EncodedFile-AuthorEncoded-safeguard.gif]
lines=0
0=R0lGODlhJwAmANUAAIOXzL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