build-windows.iss 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ; Script generated by the Inno Setup Script Wizard.
  2. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
  3. #define MyAppName "MusicFree"
  4. #ifndef MyAppVersion
  5. #define MyAppVersion "0.0.0-alpha.0"
  6. #endif
  7. #define MyAppPublisher "maotoumao"
  8. #define MyAppURL "https://musicfree.upup.fun"
  9. #define MyAppExeName "MusicFree.exe"
  10. #ifndef MyAppId
  11. #define MyAppId
  12. #endif
  13. [Setup]
  14. ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
  15. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
  16. AppId={{{#MyAppId}}
  17. AppName={#MyAppName}
  18. AppVersion={#MyAppVersion}
  19. ;AppVerName={#MyAppName} {#MyAppVersion}
  20. AppPublisher={#MyAppPublisher}
  21. AppPublisherURL={#MyAppURL}
  22. AppSupportURL={#MyAppURL}
  23. AppUpdatesURL={#MyAppURL}
  24. DefaultDirName={autopf}\{#MyAppName}
  25. DisableProgramGroupPage=yes
  26. ; Uncomment the following line to run in non administrative install mode (install for current user only.)
  27. ;PrivilegesRequired=lowest
  28. PrivilegesRequiredOverridesAllowed=dialog
  29. OutputDir=..\out
  30. OutputBaseFilename=MusicFreeSetup
  31. SetupIconFile=..\res\logo.ico
  32. Compression=lzma
  33. SolidCompression=yes
  34. WizardStyle=modern
  35. [Languages]
  36. Name: "english"; MessagesFile: "compiler:Default.isl"
  37. Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
  38. [Tasks]
  39. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
  40. [Files]
  41. Source: "..\out\MusicFree-win32-x64\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
  42. Source: "..\out\MusicFree-win32-x64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
  43. ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
  44. [Icons]
  45. Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  46. Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
  47. [Run]
  48. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent