first.iss 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 "Митрушина Виктория"
  7. #define MyAppURL "https://www.example.com/"
  8. #define MyAppExeName "WinFormsApp1.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={{8D6E136F-27B0-4C16-9811-1D0F552953DD}
  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. ; Uncomment the following line to use a 64-bit installer.
  34. ;SetupArchitecture=x64
  35. ChangesAssociations=yes
  36. DisableProgramGroupPage=yes
  37. ; Uncomment the following line to run in non administrative install mode (install for current user only).
  38. ;PrivilegesRequired=lowest
  39. OutputDir=C:\вика\шарага\3 КУРС\ПРАКТИКА ПРОИЗВОДСТВЕННАЯ\Install
  40. OutputBaseFilename=ConstructionCompanySetup
  41. SolidCompression=yes
  42. WizardStyle=modern dynamic
  43. [Languages]
  44. Name: "english"; MessagesFile: "compiler:Default.isl"
  45. Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
  46. [Tasks]
  47. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
  48. [Files]
  49. Source: "C:\вика\шарага\3 КУРС\ПРАКТИКА ПРОИЗВОДСТВЕННАЯ\пм11\WinFormsApp1\WinFormsApp1\bin\Debug\net10.0-windows\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
  50. Source: "C:\вика\шарага\3 КУРС\ПРАКТИКА ПРОИЗВОДСТВЕННАЯ\пм11\WinFormsApp1\WinFormsApp1\bin\Debug\net10.0-windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
  51. ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
  52. [Registry]
  53. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue
  54. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey
  55. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
  56. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
  57. [Icons]
  58. Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  59. Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
  60. [Run]
  61. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent