当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 7

木子歆/TimedTask
暂停

forked from 山林/TimedTask 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
TaskScheduler.iss 3.16 KB
一键复制 编辑 原始数据 按行查看 历史
山林 提交于 2018-10-25 15:36 . 初始化
; 脚本由 Inno Setup 脚本向导 生成!
; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档!
#define MyAppName "TimedTask"
#define MyAppVersion "1.1.6"
#define MyAppPublisher "m.sh.lin0328@163.com"
#define MyAppURL "http://home.cnblogs.com/shanlin/"
#define MyAppExeName "TimedTask.exe"
#define MyAppPath "E:\文档\TaskScheduler\TimedTask\bin\x86\Setup\"
[Setup]
; (生成新的GUID,点击 工具|在IDE中生成GUID。)
AppId={{33A15C03-F2D9-485A-9740-5D91AFFAC57C}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
;InfoAfterFile=欢迎使用任务助手软件!
OutputDir=D:\
OutputBaseFilename={#MyAppName} v{#MyAppVersion}
; 安装程序图标
SetupIconFile={#MyAppPath}\App.ico
Compression=lzma
SolidCompression=yes
[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
[Files]
; 可执行文件路径
Source: "{#MyAppPath}\{#MyAppName}.exe"; DestDir: "{app}"; Flags: ignoreversion
; 程序必需文件夹
Source: "{#MyAppPath}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion”
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
;Filename: {win}\dsoFramer2.bat; WorkingDir: {tmp}; Flags: nowait runminimized
;Filename: {app}\LiveUpdate\Temp\wic_x86_chs.exe; Parameters: /quiet; WorkingDir: {tmp}; Flags: runhidden; StatusMsg: 安装Wic
;Filename: {app}\LiveUpdate\Temp\dotNetFx40_Full_x86_x64.exe; Parameters: /quiet; WorkingDir: {tmp}; Flags: runhidden; StatusMsg: 安装.Net
;Filename: {app}\Temp\vcredist_x86.exe; Parameters: /quiet /norestart; WorkingDir: {tmp}; StatusMsg: 安装VC++支持环境,大约需要1分钟,请稍后……
;以下代码为检测是否安装 .NET FROMWORK4.0 并安装
;将“环境配置”文件夹和安装程序放同一目录下
[Code]
function InitializeSetup: Boolean;
var Path:string ;
ResultCode: Integer;
dotNetV4RegPath:string;
dotNetV4PackFile:string;
begin
dotNetV4RegPath:='SOFTWARE\Microsoft\.NETFramework\policy\v4.0';
dotNetV4PackFile:='{src}\环境配置\dotNetFx40_Full_x86_x64.exe';
if RegKeyExists(HKLM, dotNetV4RegPath) then
begin
Result := true;
end
else
begin
Path := ExpandConstant(dotNetV4PackFile);
if(FileOrDirExists(Path)) then
begin
Exec(Path, '/q /norestart', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode);
end
else
begin
if MsgBox('软件安装目录中没有.Net Framework的安装程序,跳过安装.Net Framework 4.0?', mbConfirmation, MB_YESNO) = idYes then
begin
Result := true;
end
end
Result := true;
end;
end;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/qqqwww123123123/TimedTask.git
git@gitee.com:qqqwww123123123/TimedTask.git
qqqwww123123123
TimedTask
TimedTask
test

搜索帮助