#define MyAppName "LanMontainDesktop" #define MyAppPublisher "LanMontainDesktop Team" #define MyAppExeName "LanMontainDesktop.exe" #ifndef MyAppVersion #define MyAppVersion "0.0.0" #endif #ifndef PublishDir #define PublishDir "..\artifacts\publish\win-x64" #endif #ifndef MyOutputDir #define MyOutputDir "..\artifacts\installer" #endif #ifndef MyAppArch #define MyAppArch "x64" #endif [Setup] AppId={{5A058B0D-F95D-4A18-B9A0-93F843655DDB} AppName={#MyAppName} AppVersion={#MyAppVersion} AppPublisher={#MyAppPublisher} DefaultDirName={autopf}\{#MyAppName} DefaultGroupName={#MyAppName} UninstallDisplayIcon={app}\{#MyAppExeName} OutputDir={#MyOutputDir} OutputBaseFilename={#MyAppName}-Setup-{#MyAppVersion} Compression=lzma2/ultra64 SolidCompression=yes WizardStyle=modern PrivilegesRequired=admin DisableProgramGroupPage=yes #if MyAppArch == "x64" ArchitecturesAllowed=x64compatible ArchitecturesInstallIn64BitMode=x64compatible #endif [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" [Tasks] Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}" [Files] Source: "{#PublishDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs [Icons] Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon [Run] Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent