-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from CroatianMeteorNetwork/dev
Display Improvements
- Loading branch information
Showing
5 changed files
with
261 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
; -- Example1.iss -- | ||
; Demonstrates copying 3 files and creating an icon. | ||
|
||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES! | ||
|
||
#define MyAppName "CMN_binViewer" | ||
|
||
[Setup] | ||
AppName=CMN_binViewer | ||
AppVersion=3.34 | ||
AppPublisher=Croatian Meteor Network | ||
AppPublisherURL=http://cmn.rgn.hr/ | ||
DefaultDirName={commonpf64}\CMN_binViewer | ||
DefaultGroupName=CMN_binViewer | ||
UninstallDisplayIcon={app}\CMN_binViewer.exe | ||
Compression=lzma2 | ||
SolidCompression=yes | ||
OutputDir="." | ||
OutputBaseFilename=CMN_binViewer-setup64 | ||
|
||
[Files] | ||
Source: ".\build\exe.win-amd64-3.8\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs | ||
Source: ".\build\exe.win-amd64-3.8\config.ini"; DestDir: "{app}"; Permissions: users-modify | ||
|
||
[Tasks] | ||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; | ||
|
||
[Icons] | ||
Name: "{group}\CMN_binViewer"; Filename: "{app}\CMN_binViewer.exe"; IconFilename: "{app}\icon.ico" | ||
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" | ||
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\CMN_binViewer.exe"; Tasks: desktopicon; WorkingDir: {app}; IconFilename: "{app}\icon.ico" | ||
|
||
[Code] | ||
function InitializeSetup(): Boolean; | ||
var | ||
oldVersion: String; | ||
uninstaller: String; | ||
ErrorCode: Integer; | ||
begin | ||
if RegKeyExists(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CMN_binViewer_is1') then | ||
begin | ||
if MsgBox('Previous version must first be uninstalled, click ok to proceed', mbConfirmation, MB_OKCANCEL) = IDOK then | ||
begin | ||
RegQueryStringValue(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CMN_binViewer_is1','UninstallString', uninstaller); | ||
ShellExec('runas', uninstaller, '/SILENT', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode); | ||
Result := True; | ||
end else | ||
Result := False; | ||
end else | ||
Result := True; | ||
; -- Example1.iss -- | ||
; Demonstrates copying 3 files and creating an icon. | ||
|
||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES! | ||
|
||
#define MyAppName "CMN_binViewer" | ||
|
||
[Setup] | ||
AppName=CMN_binViewer | ||
AppVersion=3.35 | ||
AppPublisher=Croatian Meteor Network | ||
AppPublisherURL=http://cmn.rgn.hr/ | ||
DefaultDirName={commonpf64}\CMN_binViewer | ||
DefaultGroupName=CMN_binViewer | ||
UninstallDisplayIcon={app}\CMN_binViewer.exe | ||
Compression=lzma2 | ||
SolidCompression=yes | ||
OutputDir="." | ||
OutputBaseFilename=CMN_binViewer-setup64 | ||
|
||
[Files] | ||
Source: ".\build\exe.win-amd64-3.8\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs | ||
Source: ".\build\exe.win-amd64-3.8\config.ini"; DestDir: "{app}"; Permissions: users-modify | ||
|
||
[Tasks] | ||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; | ||
|
||
[Icons] | ||
Name: "{group}\CMN_binViewer"; Filename: "{app}\CMN_binViewer.exe"; IconFilename: "{app}\icon.ico" | ||
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}" | ||
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\CMN_binViewer.exe"; Tasks: desktopicon; WorkingDir: {app}; IconFilename: "{app}\icon.ico" | ||
|
||
[Code] | ||
function InitializeSetup(): Boolean; | ||
var | ||
oldVersion: String; | ||
uninstaller: String; | ||
ErrorCode: Integer; | ||
begin | ||
if RegKeyExists(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CMN_binViewer_is1') then | ||
begin | ||
if MsgBox('Previous version must first be uninstalled, click ok to proceed', mbConfirmation, MB_OKCANCEL) = IDOK then | ||
begin | ||
RegQueryStringValue(HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CMN_binViewer_is1','UninstallString', uninstaller); | ||
ShellExec('runas', uninstaller, '/SILENT', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode); | ||
Result := True; | ||
end else | ||
Result := False; | ||
end else | ||
Result := True; | ||
end; |
Oops, something went wrong.