#include "installer_environment.iss" #define MyAppName "teip" #define MyAppVersion "0.0.0" #define MyAppPublisher "Yasuhiro Yamada" #define MyAppURL "https://github.com/greymd/teip" #define MyAppExeName "teip.exe" [Setup] ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) AppId={{D06B4D96-64A2-4E54-8567-EC572BEC9C6A} AppName={#MyAppName} AppVersion={#MyAppVersion} AppVerName={#MyAppName} {#MyAppVersion} AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} DefaultDirName={autopf}\{#MyAppName} DefaultGroupName={#MyAppName} DisableProgramGroupPage=yes PrivilegesRequired=lowest OutputBaseFilename=teip_installer Compression=lzma SolidCompression=yes WizardStyle=modern ChangesEnvironment=true WizardSmallImageFile=wizard.bmp WizardImageFile=wizard_long.bmp [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" [Files] Source: "*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs ; NOTE: Don't use "Flags: ignoreversion" on any shared system files [Icons] Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" [Code] procedure CurStepChanged(CurStep: TSetupStep); begin if (CurStep = ssPostInstall) then EnvAddPath(ExpandConstant('{app}') +'\exe'); end; procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); begin if CurUninstallStep = usPostUninstall then EnvRemovePath(ExpandConstant('{app}') +'\exe'); end;