inno setup 自动检测jre
来源:互联网 发布:mac解压软件知乎 编辑:程序博客网 时间:2024/06/04 20:06
//开始安装前,进行提示安装jre,这里应该自动找jre,暂时先用手动的。
function InitializeSetup(): Boolean;
var
errorcode:Integer;
setupjre: Boolean;
javaInstalled : Boolean;
begin
javaInstalled := RegKeyExists(HKLM,'SOFTWARE\JavaSoft\Java Runtime Environment\1.6');
if JavaInstalled then
begin
Result := true;
end
else
begin
//没有jre
MsgBox('解压JRE安装包,需要10秒左右,请点击确定继续!', mbConfirmation, MB_OK) ;
ExtractTemporaryFile(ExtractFileName(ExpandConstant('{tmp}\jre6.exe')));
ShellExec('open',ExpandConstant('{tmp}\jre6.exe'),'','',SW_SHOW,ewWaitUntilTerminated,errorcode)
MsgBox(IntToStr(errorcode), mbConfirmation, MB_OK) ;
if errorcode=0 then
begin
Result := true;
end
else
begin
Result :=false;
end
end
Result := true;
- inno setup 自动检测jre
- exe4j+Inno setup带着JRE.起飞
- exe4j + Inno Setup 带着JRE, 8M起飞
- exe4j + Inno Setup 带着JRE, 8M起飞
- exe4j + Inno Setup 带着JRE, 8M起飞
- inno setup
- Inno Setup
- Inno Setup
- inno setup
- 一键搞定Java桌面应用安装部署—exe4j+Inno Setup+JRE
- 使用exe4j+inno setup加入JRE生成脱离Java环境的安装程序(图解)
- 一键搞定Java桌面应用安装部署—exe4j+Inno Setup+JRE
- 彻底放弃inno setup
- inno setup教程
- Inno Setup使用教程
- Inno Setup 教程
- Inno Setup 播放背景音乐
- Inno Setup 问题集合
- 我的链接
- 从Win Api 到 MFC
- oracle11g 空表无法exp的解决
- 浅谈是否用继承来利用
- Make beautiful maps
- inno setup 自动检测jre
- 判断一个树是不是二叉查询树 (ISBST)
- Oracle 字符集的查看和修改
- Oracle中TO_DATE格式
- IFL嵌入式小组技术博客入口导航
- 【艺术盛会】中国文化艺术发展促进会主办世界级艺术盛会—2012(伦敦)奥林匹克美术大会在京启动
- Oracle索引使用规则(一)
- JQuery 获取checkbox 多选值
- Oracle索引使用规则(二)