1
1
#define MyAppName " Sandboxie-Plus"
2
+ #include " Languages.iss"
2
3
;
3
4
; use commandline to populate:
4
5
; ISCC.exe /ORelease Sandboxie-Plus.iss /DMyAppVersion=%SbiePlusVer% /DMyDrvVersion=%SbieVer% /DMyAppArch=x64 /DMyAppSrc=SbiePlus64
@@ -46,34 +47,23 @@ Source: ".\Sandboxie-Plus.ini"; DestDir: "{app}"; Flags: ignoreversion onlyifdoe
46
47
47
48
[Icons]
48
49
Name : " {group} \Sandboxie-Plus" ; Filename : " {app} \SandMan.exe" ; MinVersion: 0.0 ,5.0 ;
49
- Name : " {group} \Sandboxie-Plus Website " ; Filename : " http://sandboxie-plus.com/" ; MinVersion: 0.0 ,5.0 ;
50
- Name : " {group} \Uninstall Sandboxie-Plus " ; Filename : " {uninstallexe} " ; MinVersion: 0.0 ,5.0 ;
50
+ Name : " {group} \{cm:ProgramOnTheWeb,{#MyAppName}} " ; Filename : " http://sandboxie-plus.com/" ; MinVersion: 0.0 ,5.0 ;
51
+ Name : " {group} \{cm:UninstallProgram,{#MyAppName}} " ; Filename : " {uninstallexe} " ; MinVersion: 0.0 ,5.0 ;
51
52
Name : " {userdesktop}\Sandboxie-Plus" ; Filename : " {app} \SandMan.exe" ; Tasks: DesktopIcon ; MinVersion: 0.0 ,5.0 ;
52
53
;Name: "{userstartup}\Sandboxie-Plus"; Filename: "{app}\SandMan.exe"; Tasks: AutoStartEntry;
53
54
54
55
;[Registry]
55
56
;Root: HKCU; Subkey: "Software\{#MyAppName}"; ValueName: "{#MyAppName}_Autorun"; ValueType: string; ValueData: "1"; Flags: uninsdeletekey; Tasks: AutoStartEntry
56
57
57
58
[Tasks]
58
- Name : " DesktopIcon" ; Description : " Create a &desktop icon " ; MinVersion: 0.0 ,5.0 ; Check : not IsPortable
59
- Name : " AutoStartEntry" ; Description : " Start when Windows starts " ; MinVersion: 0.0 ,5.0 ; Check : not IsPortable
60
- Name : " AddRunSandboxed" ; Description : " Add Run Sandboxed " ; MinVersion: 0.0 ,5.0 ; Check : not IsPortable
59
+ Name : " DesktopIcon" ; Description : " {cm:CreateDesktopIcon} " ; MinVersion: 0.0 ,5.0 ; Check : not IsPortable
60
+ Name : " AutoStartEntry" ; Description : " {cm:AutoStartProgram,{#MyAppName}} " ; MinVersion: 0.0 ,5.0 ; Check : not IsPortable
61
+ Name : " AddRunSandboxed" ; Description : " {cm:AddSandboxedMenu} " ; MinVersion: 0.0 ,5.0 ; Check : not IsPortable
61
62
62
63
[Messages]
63
64
; Include with commandline /? message.
64
65
HelpTextNote= /PORTABLE= 1 %nEnable portable mode.%n
65
66
66
- ;[Languages]
67
-
68
- [CustomMessages]
69
- CustomPageLabel1= Select Installation Type
70
- CustomPageLabel2= How should be installed
71
- CustomPageLabel3= Choose the installation mode
72
- CustomPageInstallMode= Install {#MyAppName } on this computer
73
- CustomPageUpgradeMode= Update existing {#MyAppName } installation
74
- CustomPagePortableMode= Extract all files to a directory for portable use
75
-
76
-
77
67
[Code]
78
68
var
79
69
CustomPage: TInputOptionWizardPage;
@@ -218,7 +208,7 @@ begin
218
208
219
209
if (Version.NTPlatform = False) or (Version.Major < 6 ) then
220
210
begin
221
- SuppressibleMsgBox(' Sandboxie-Plus requires Windows 7 or later. ' , mbError, MB_OK, MB_OK);
211
+ SuppressibleMsgBox(CustomMessage( ' RequiresWin7OrLater ' ) , mbError, MB_OK, MB_OK);
222
212
Result := False;
223
213
exit;
224
214
end ;
@@ -229,7 +219,7 @@ begin
229
219
230
220
if RegQueryStringValue(HKEY_LOCAL_MACHINE, ' SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sandboxie' , ' UninstallString' , UninstallString) then begin
231
221
232
- ExecRet := MsgBox(' Sandboxie Classic installation detected, it must be uninstalled first, do you want to uninstall it now? ' , mbConfirmation, MB_YESNOCANCEL);
222
+ ExecRet := MsgBox(CustomMessage( ' ClassicFound ' ) , mbConfirmation, MB_YESNOCANCEL);
233
223
if ExecRet = IDCANCEL then
234
224
begin
235
225
Result := False;
@@ -361,11 +351,11 @@ begin
361
351
362
352
if WizardIsTaskSelected(' AddRunSandboxed' ) then
363
353
begin
364
- RegWriteStringValue(HKEY_CURRENT_USER, ' software\classes\*\shell\sandbox' , ' ' , ' Run &Sandboxed ' );
354
+ RegWriteStringValue(HKEY_CURRENT_USER, ' software\classes\*\shell\sandbox' , ' ' , CustomMessage( ' RunSandboxedMenu ' ) );
365
355
RegWriteStringValue(HKEY_CURRENT_USER, ' software\classes\*\shell\sandbox' , ' Icon' , ExpandConstant(' "{app}\start.exe"' ));
366
356
RegWriteStringValue(HKEY_CURRENT_USER, ' software\classes\*\shell\sandbox\command' , ' ' , ExpandConstant(' "{app}\SandMan.exe"' ) +' /box:__ask__ "%1" %*' );
367
357
368
- RegWriteStringValue(HKEY_CURRENT_USER, ' software\classes\Folder\shell\sandbox' , ' ' , ' Run &Sandboxed ' );
358
+ RegWriteStringValue(HKEY_CURRENT_USER, ' software\classes\Folder\shell\sandbox' , ' ' , CustomMessage( ' RunSandboxedMenu ' ) );
369
359
RegWriteStringValue(HKEY_CURRENT_USER, ' software\classes\Folder\shell\sandbox' , ' Icon' , ExpandConstant(' "{app}\start.exe"' ));
370
360
RegWriteStringValue(HKEY_CURRENT_USER, ' software\classes\Folder\shell\sandbox\command' , ' ' , ExpandConstant(' "{app}\SandMan.exe"' ) +' /box:__ask__ C:\WINDOWS\Explorer.exe "%1"' );
371
361
end ;
0 commit comments