Skip to content

Commit e733fca

Browse files
committed
Make the license auto-generated with current year copyright. Add new powershell scripts to support the generation.
1 parent 983a877 commit e733fca

File tree

3 files changed

+7
-437
lines changed

3 files changed

+7
-437
lines changed

Rubberduck.Deployment/InnoSetup/Installer Build Script.iss

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define AppVersion GetFileVersion(BuildDir + "Rubberduck.dll")
1717
#define AppPublisher "Rubberduck"
1818
#define AppURL "http://rubberduckvba.com"
19-
#define License SourcePath + "\License.rtf"
19+
#define License SourcePath + "\Includes\License.rtf"
2020
#define OutputDirectory SourcePath + "Installers\"
2121
#define AddinProgId "Rubberduck.Extension"
2222
#define AddinCLSID "8D052AD8-BBD2-4C59-8DEC-F697CA1F8A66"
@@ -66,6 +66,7 @@ PrivilegesRequired=lowest
6666

6767
UninstallFilesDir={app}\Installers
6868
UninstallDisplayName={code:GetUninstallDisplayName}
69+
UninstallDisplayIcon=ducky.ico
6970
Uninstallable=ShouldCreateUninstaller()
7071
CreateUninstallRegKey=ShouldCreateUninstaller()
7172

@@ -255,7 +256,6 @@ function HaveWriteAccessToApp: Boolean;
255256
var
256257
FileName: string;
257258
begin
258-
{
259259
FileName := AddBackslash(WizardDirValue) + 'writetest.tmp';
260260
Result := SaveStringToFile(FileName, 'test', False);
261261
if Result then
@@ -269,8 +269,6 @@ begin
269269
Log(Format('Does not have write access to the last installation path [%s]', [
270270
WizardDirValue]));
271271
end;
272-
}
273-
Result := true;
274272
end;
275273
276274
///<remarks>
@@ -286,7 +284,6 @@ function Elevate: Boolean;
286284
var
287285
I: Integer;
288286
instance: HINSTANCE;
289-
waitSignal: DWORD;
290287
Params: string;
291288
S: string;
292289
begin
@@ -553,12 +550,12 @@ begin
553550
end;
554551
555552
///<remakrs>
556-
///Provide a sufixed name of uninstaller to help identify what mode
553+
///Provide a suffixed name of uninstaller to help identify what mode
557554
///the version is installed in.
558555
///</remarks>
559556
function GetUninstallDisplayName(Unused: string): string;
560557
begin
561-
result := ExpandConstant('{#AppName} (') + GetAppSuffix() + ')';
558+
result := ExpandConstant('{#AppName} (') + GetAppSuffix() + ') {#AppVersion}';
562559
end;
563560
564561
///<remarks>
@@ -841,9 +838,7 @@ end;
841838
///<remarks>
842839
function NextButtonClick(CurPageID: Integer): Boolean;
843840
var
844-
Params: string;
845841
RetVal: HINSTANCE;
846-
Respone: integer;
847842
UpgradeResult: integer;
848843
begin
849844
// Prevent accidental extra clicks

0 commit comments

Comments
 (0)