Inno setup 使用

Venus_RT.iss脚本:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Venus_RT"
#define MyAppVersion "2.0"
#define MyAppPublisher "JET PLASMA"
#define MyAppURL "http://www.jetplasma.com/"

[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={{56BC97AA-FAE3-4809-8D12-58DF2FEFD19A}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName=C:\Venus\{#MyAppName}
DefaultGroupName={#MyAppName}
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputBaseFilename={#MyAppName}
Compression=lzma
SolidCompression=yes
WizardStyle=modern
LicenseFile=License.txt
UsePreviousAppDir=no

[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"


[Files]
Source: "..\Venus_RT\bin\Release\*";Excludes:"Config,Recipes,Logs"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs
Source: "..\Venus_RT\bin\Release\Config\*"; DestDir: "{app}\Config"; Flags: onlyifdoesntexist


[Icons]
Name: "{userdesktop}\{#MyAppName}";Filename: "{app}\{#MyAppName}.exe"; WorkingDir: "{app}"

只在release执行iss脚本

if $(ConfigurationName)==Release (
"$(SolutionDir)\Venus_Setup\Inno Setup 6\ISCC.exe"  /Q "$(SolutionDir)\Venus_Setup\Venus_RT.iss"
)

 

posted @ 2023-02-16 13:04  当年小清新  阅读(32)  评论(0编辑  收藏  举报