71 lines
2.7 KiB
Plaintext
71 lines
2.7 KiB
Plaintext
; IIS install for internal / external use
|
|
|
|
#define MyAppName "AyaNova"
|
|
#define MyAppVersion "8.0.0-beta.1"
|
|
#define MyAppPublisher "Ground Zero Tech-Works, Inc."
|
|
#define MyAppURL "https://ayanova.com/"
|
|
#define MyAppLauncherExeName "ayanova-launcher.exe"
|
|
|
|
|
|
[Setup]
|
|
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
|
|
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
|
AppId={{B2BB79DB-0690-497C-B92B-955F7B468429}
|
|
AppName={#MyAppName}
|
|
AppVersion={#MyAppVersion}
|
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
|
AppPublisher={#MyAppPublisher}
|
|
AppPublisherURL={#MyAppURL}
|
|
AppSupportURL={#MyAppURL}
|
|
AppUpdatesURL={#MyAppURL}
|
|
DefaultDirName={autopf}\ayanova
|
|
DisableProgramGroupPage=yes
|
|
LicenseFile=C:\data\code\raven\dist\assets\license.rtf
|
|
OutputDir=C:\data\code\raven\dist\install\windows\x64\output
|
|
OutputBaseFilename=ayanova-iis-setup
|
|
SetupIconFile=C:\data\code\raven\graphics\logo.ico
|
|
Compression=lzma
|
|
SolidCompression=yes
|
|
WizardStyle=modern
|
|
ArchitecturesInstallIn64BitMode=x64
|
|
ArchitecturesAllowed=x64
|
|
|
|
|
|
[Tasks]
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
|
|
[Files]
|
|
Source: "C:\data\code\raven\dist\win-x64\ayanova\framework-dependent\*"; DestDir: "{app}";Flags: ignoreversion recursesubdirs createallsubdirs
|
|
Source: "C:\data\code\raven\dist\assets\lan-install-config.json"; DestDir: "{app}"; Flags: ignoreversion confirmoverwrite
|
|
|
|
[Dirs]
|
|
Name: "{app}\.local-chromium";Permissions: users-modify;Flags: uninsalwaysuninstall
|
|
Name: "{commonappdata}\ayanova";Permissions: users-modify;
|
|
Name: "{commonappdata}\ayanova\logs";Permissions: users-modify;
|
|
|
|
|
|
[UninstallDelete]
|
|
Type: filesandordirs; Name: "{app}\.local-chromium\*"
|
|
|
|
[Icons]
|
|
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\launcher\ayanova-launcher.exe";
|
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\launcher\ayanova-launcher.exe"; Tasks: desktopicon
|
|
|
|
[Run]
|
|
Filename: "{app}\launcher\ayanova-launcher.exe"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
|
|
|
[Code]
|
|
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
|
|
begin
|
|
if CurUninstallStep = usPostUninstall then
|
|
begin
|
|
if MsgBox('Do you want to delete all AyaNova database and attachment files?', mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then
|
|
begin
|
|
if MsgBox('Are you sure you want to **PERMANENTLY** delete all AyaNova database and attachment files?', mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then
|
|
begin
|
|
DelTree(ExpandConstant('{commonappdata}\ayanova'), True, True, True);
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|