|
| 1 | +; Script generated by the Inno Script Studio Wizard. |
| 2 | +; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! |
| 3 | + |
| 4 | +#define MyAppName "Memcached" |
| 5 | +#define MyAppPublisher "Lucifer" |
| 6 | +#define MyAppURL "https://github.com/X-Lucifer/win-memcached" |
| 7 | +#define MyAppExeName "nssm.exe" |
| 8 | +#define MyCopyright "Copyright © Lucifer. All Rights Reserved." |
| 9 | +#define MyDescription "Windows Memcached Service" |
| 10 | +#define MyAppLowerName "memcached" |
| 11 | +#define MyAppPlatform "cygwin" |
| 12 | +#define MyAppRuntime "cygwin1.dll" |
| 13 | +;升级需要更新的代码块 |
| 14 | +#define MyPath "D:\Publish\Memcached" |
| 15 | +#define MyAppVersion "1.6.10" |
| 16 | + |
| 17 | +[Setup] |
| 18 | +; NOTE: The value of AppId uniquely identifies this application. |
| 19 | +; Do not use the same AppId value in installers for other applications. |
| 20 | +; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) |
| 21 | +AppId={{7E7F422D-B9D0-475B-AB2C-D872617EE0FE} |
| 22 | +AppName={#MyAppName} |
| 23 | +AppVersion={#MyAppVersion} |
| 24 | +AppVerName={#MyAppName} {#MyAppVersion} |
| 25 | +AppPublisher={#MyAppPublisher} |
| 26 | +AppPublisherURL={#MyAppURL} |
| 27 | +AppSupportURL={#MyAppURL} |
| 28 | +AppUpdatesURL={#MyAppURL} |
| 29 | +DefaultDirName={pf}\{#MyAppName} |
| 30 | +DefaultGroupName={#MyAppName} |
| 31 | +DisableProgramGroupPage=yes |
| 32 | +OutputDir={#MyPath} |
| 33 | +OutputBaseFilename={#MyAppLowerName}-{#MyAppVersion}-{#MyAppPlatform} |
| 34 | +SetupIconFile={#MyPath}\Memcached.ico |
| 35 | +Compression=lzma |
| 36 | +SolidCompression=yes |
| 37 | +WizardStyle=modern |
| 38 | +DisableReadyPage=True |
| 39 | +DisableFinishedPage=True |
| 40 | +AppCopyright={#MyCopyright} |
| 41 | +EnableDirDoesntExistWarning=True |
| 42 | +DirExistsWarning=no |
| 43 | +UninstallDisplayIcon={uninstallexe} |
| 44 | +UninstallDisplayName={#MyAppName} |
| 45 | +ArchitecturesInstallIn64BitMode=x64 ia64 |
| 46 | +VersionInfoVersion={#MyAppVersion} |
| 47 | +VersionInfoCompany={#MyAppPublisher} |
| 48 | +VersionInfoDescription={#MyDescription} |
| 49 | +VersionInfoTextVersion={#MyAppVersion} |
| 50 | +VersionInfoProductName={#MyAppName} |
| 51 | +UsePreviousGroup=False |
| 52 | +AppendDefaultGroupName=False |
| 53 | + |
| 54 | +[Languages] |
| 55 | +Name: "english"; MessagesFile: "compiler:Default.isl" |
| 56 | + |
| 57 | +[Files] |
| 58 | +Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\nssm.exe"; DestDir: "{app}"; Flags: ignoreversion |
| 59 | +Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\{#MyAppRuntime}"; DestDir: "{app}"; Flags: ignoreversion |
| 60 | +Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\{#MyAppLowerName}.exe"; DestDir: "{app}"; Flags: ignoreversion |
| 61 | +Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\cygevent_core-2-1-7.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 62 | +Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\cygevent_extra-2-1-7.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 63 | +Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\cygevent_openssl-2-1-7.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 64 | +Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\cygevent_pthreads-2-1-7.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 65 | +Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\cygevent-2-1-7.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 66 | +; NOTE: Don't use "Flags: ignoreversion" on any shared system files |
| 67 | + |
| 68 | +[Run] |
| 69 | +Filename: "{app}\nssm.exe"; Parameters: "install {#MyAppName} ""{app}\{#MyAppLowerName}.exe"""; WorkingDir: "{app}\"; Description: "安装为Windows服务"; |
| 70 | +Filename: "{app}\nssm.exe"; Parameters: "set {#MyAppName} DisplayName {#MyAppName}"; WorkingDir: "{app}"; Description: "设置服务名称"; |
| 71 | +Filename: "{app}\nssm.exe"; Parameters: "set {#MyAppName} Description ""{#MyDescription}"""; WorkingDir: "{app}"; Description: "设置服务描述"; |
| 72 | + |
| 73 | +[UninstallRun] |
| 74 | +Filename: "{app}\nssm.exe"; Parameters: "stop {#MyAppName}"; |
| 75 | +Filename: "{app}\nssm.exe"; Parameters: "remove {#MyAppName} confirm"; |
0 commit comments