Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define MyAppName "Test App"
- #define MyAppVersion "0.0.0.1"
- #define MyProdVersion "0.1 Alpha"
- #define MyAppExeName "your_exe_name.exe"
- #define appCopyright "Copyright © 2018-2023 Your name here"
- #define basepath "C:\Users\User\Desktop\application base path"
- [Setup]
- ;PrivilegesRequired=admin
- AppId=##generatedfrom a menu option
- AppName={#MyAppName}
- AppVersion={#MyProdVersion}
- VersionInfoVersion={#MyAppVersion}
- VersionInfoDescription=Short App Description
- DefaultDirName={pf}\{#MyAppName}
- DefaultGroupName={#MyAppName}
- AllowNoIcons=yes
- OutputBaseFilename=App-Setup
- AppCopyright={#appCopyright}
- SetupIconFile={#basepath}\icon.ico
- Compression=lzma
- SolidCompression=yes
- UninstallDisplayIcon={app}\{#MyAppExeName}
- [Tasks]
- Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
- Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}";
- [Files]
- Source: "{#basepath}\dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
- Source: "{#basepath}\dist\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
- [Icons]
- Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
- Name: "{commonstartmenu}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
- [Run]
- Filename: {app}\{#MyAppExeName}; Description: {cm:LaunchProgram,{#MyAppName}}; Flags: nowait postinstall shellexec skipifsilent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement