InnoSetup 实现 安装目录 复制 带卸载功能。

软件是绿色版,需要手动创建桌面快捷方式,经销商希望能傻瓜安装板,能自动创建桌面快捷方式

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

#define MyAppName "V8httpsAAA"
#define MyAppVersion "10.1"
#define MyAppPublisher ""
#define MyAppExeName "Sale.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={{9FB4D876-3EA7-4833-8C8A-DEB3EC7C6F29}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
;DefaultDirName={pf}\{#MyAppName}
DefaultDirName=D:\WfyV8Https
DisableProgramGroupPage=yes
OutputDir=D:\mywork\V8\WfyV8Https
OutputBaseFilename=WfyV8Https
SetupIconFile=D:\V8正式版_20230104182055\V8正式版\Images\as7ah-4vkr3-001.ico
Compression=lzma
SolidCompression=yes
Uninstallable=yes
UninstallDisplayName=卸载{#MyAppName}s
SetupLogging=yes

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

;unchecked 未选中 checkablealone 选中
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone


[Files]

;Source: "D:\V8正式版_20230104182055\V8正式版\AdminV8Tools.exe"; DestDir: "{app}"; Flags: ignoreversion
;Source: "D:\V8正式版_20230104182055\V8正式版\AmMpsPostSdk.dll"; DestDir: "{app}"; Flags: ignoreversion
;Source: "D:\V8正式版_20230104182055\V8正式版\AmMpsSdk.dll"; DestDir: "{app}"; Flags: ignoreversion
;Source: "D:\V8正式版_20230104182055\V8正式版\2.1.6.52\database\pos.db"; DestDir: "{app}"; Flags: ignoreversion
;Source: "D:\V8正式版_20230104182055\V8正式版\cache\data_2.1.8.169.db"; DestDir: "{app}"; Flags: ignoreversion
;Source: "D:\V8正式版_20230104182055\V8正式版\Cef\x64\cef.pak"; DestDir: "{app}"; Flags: ignoreversion
;Source: "D:\V8正式版_20230104182055\V8正式版\Cef\x64\CefSharp.BrowserSubprocess.Core.dll"; DestDir: "{app}"; Flags: ignoreversion
;Source: "D:\V8正式版_20230104182055\V8正式版\Cef\x64\CefSharp.BrowserSubprocess.exe"; DestDir: "{app}"; Flags: ignoreversion
;Source: "D:\V8正式版_20230104182055\V8正式版\Cef\x64\CefSharp.Core.dll"; DestDir: "{app}"; Flags: ignoreversion
;Source: "D:\V8正式版_20230104182055\V8正式版\zh-Hans\DevExpress.XtraWizard.v13.2.resources.dll"; DestDir: "{app}"; Flags: ignoreversion

Source: "D:\V8正式版_20230104182055\V8正式版\*"; DestDir: "{app}"; Flags: recursesubdirs createallsubdirs ignoreversion
;上面这句解决很多行的文件复制,子目录创建问题

;Source: "F:\develope\YRBYK\YRBYK\bin\Debug\api-ms-win-crt-locale-l1-1-0.dll"; DestDir: "{app}"; Flags: ignoreversion
;Source: "F:\develope\YRBYK\YRBYK\bin\Debug\api-ms-win-crt-math-l1-1-0.dll"; DestDir: "{app}"; Flags: ignoreversion
;Source: "F:\develope\YRBYK\YRBYK\bin\Debug\api-ms-win-crt-private-l1-1-0.dll"; DestDir: 
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{group}\卸载 {#MyAppName}"; Filename: "{uninstallexe}"

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

[Code]
function InitializeUninstall(): Boolean;
begin
if MsgBox('您确定要卸载吗?', mbConfirmation, MB_YESNO) = IDYES then
result:=true
else
result:=false;
end;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
>