myapp.iss 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ; Script generated by the Inno Setup Script Wizard.
  2. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
  3. ; Non-commercial use only
  4. #define MyAppName "Отдел кадров"
  5. #define MyAppVersion "1.0"
  6. #define MyAppPublisher "Егоров Влад 3992"
  7. #define MyAppURL "https://www.example.com/"
  8. #define MyAppExeName "WinFormsApp2.exe"
  9. #define MyAppAssocName MyAppName + " File"
  10. #define MyAppAssocExt ".myp"
  11. #define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt
  12. [Setup]
  13. ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
  14. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
  15. AppId={{310102EC-9856-4E0E-94EC-4D4C6D9D263B}
  16. AppName={#MyAppName}
  17. AppVersion={#MyAppVersion}
  18. ;AppVerName={#MyAppName} {#MyAppVersion}
  19. AppPublisher={#MyAppPublisher}
  20. AppPublisherURL={#MyAppURL}
  21. AppSupportURL={#MyAppURL}
  22. AppUpdatesURL={#MyAppURL}
  23. DefaultDirName={autopf}\{#MyAppName}
  24. UninstallDisplayIcon={app}\{#MyAppExeName}
  25. ; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run
  26. ; on anything but x64 and Windows 11 on Arm.
  27. ArchitecturesAllowed=x64compatible
  28. ; "ArchitecturesInstallIn64BitMode=x64compatible" requests that the
  29. ; install be done in "64-bit mode" on x64 or Windows 11 on Arm,
  30. ; meaning it should use the native 64-bit Program Files directory and
  31. ; the 64-bit view of the registry.
  32. ArchitecturesInstallIn64BitMode=x64compatible
  33. ChangesAssociations=yes
  34. DisableProgramGroupPage=yes
  35. ; Uncomment the following line to run in non administrative install mode (install for current user only).
  36. ;PrivilegesRequired=lowest
  37. OutputDir=C:\Users\vlade\Desktop\практика\myApp
  38. OutputBaseFilename=mysetup
  39. SolidCompression=yes
  40. WizardStyle=modern zircon
  41. [Languages]
  42. Name: "english"; MessagesFile: "compiler:Default.isl"
  43. Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
  44. [Tasks]
  45. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
  46. [Files]
  47. Source: "C:\Users\vlade\Desktop\практика\myApp\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
  48. Source: "C:\Users\vlade\Desktop\практика\myApp\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
  49. ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
  50. [Registry]
  51. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue
  52. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey
  53. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
  54. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
  55. [Icons]
  56. Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  57. Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
  58. [Run]
  59. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent