Advertisement
AceScottie

Inno_setup

Nov 23rd, 2018
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. #define MyAppName "app_name"
  2. #define MyAppVersion "1.0"
  3. #define MyAppExeName "app.exe"
  4.  
  5.  
  6. [Setup]
  7. ;click tools generate GID and paste it into AppId so it looks like AppId={{this-is-a-test}}
  8. AppId={}
  9. AppName={#MyAppName}
  10. AppVersion={#MyAppVersion}
  11. DefaultDirName={pf}\{#MyAppName}
  12. DefaultGroupName={#MyAppName}
  13. AllowNoIcons=yes
  14. OutputBaseFilename=setup_name
  15. SetupIconFile=path/to/icon/app.ico
  16. Compression=lzma
  17. SolidCompression=yes
  18.  
  19. [Tasks]
  20. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
  21. Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked;
  22.  
  23. [Files]
  24. Source: "C:\Users\Scott\Desktop\pyencrypt v2\tests\cython build\py2exe\dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
  25. Source: "C:\Users\Scott\Desktop\pyencrypt v2\tests\cython build\py2exe\dist\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
  26.  
  27. [Icons]
  28. Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
  29. Name: "{commonstartmenu}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
  30.  
  31. [Run]
  32. Filename: {app}\{#MyAppExeName}; Description: {cm:LaunchProgram,{#MyAppName}}; Flags: nowait postinstall shellexec skipifsilent unchecked
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement