我自己用XE6编译了inno-setup。(我知道,文档建议使用较旧的delphi版本,但我只有新的IDE)
我想使用pascal脚本来自定义安装。但即使我添加了一个最简单的代码部分,创建的安装崩溃。
[Code]
function InitializeSetup(): Boolean;
begin
end;
安装时创建的setup.exe失败:
[22:10:29.945] *** Setup started
[22:10:36.182] Setup version: Inno Setup version 5.5.4 (u)
[22:10:36.186] Original Se
本地环境变量打印得很好:
bash-3.2$ echo $APP_VERSION
2.0.3
但是,当我试图在Inno安装文件中获取这个环境变量时,它的行为就像这个环境变量不存在一样:
Error in Z:\work\inno\app-win-x64.iss: The [Setup] section must include an AppVersion or AppVerName directive.
Compile aborted.
我就是这样用它的:
#define MyAppVersion GetEnv('APP_VERSION')
// ....
[Setup]
Ap
我正在使用inno安装程序
我尝试过简单的inno脚本代码来安装我的program.exe,但问题是安装程序总是检查{app}的存在(区分文件夹),我的目标是隐藏消息框,上面写着“文件夹是存在的,您想要安装到该文件夹吗?”?
我的剧本是:
[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
DisableProgramGroupPage=yes
UninstallDisplayIcon={app}\MyProg.exe
OutputDir=userdocs:Inno Setup Examples O
我编写了一个批处理脚本,以便在安装后执行,该脚本是由Inno Setup创建的。问题是我有以下命令行来创建服务:
sc create MySQL start= auto DisplayName= MySQL binPath= "C:\MyApp\MySQL 5.5\bin\mysqld" --defaults-file="C:\MyApp\MySQL 5.5\my.ini"
带重音的字母是这段代码的问题,如果我在cmd中打开bat文件,我就不能执行它,但当我输入的时候,服务是正常创建的。我怎么才能修复它呢?
在编译安装程序时,只有在指定路径中存在"readme“文件时,我才有下面的代码来显示页面。
此外,在编译时,我希望在"readme“文件不存在时显示Info/警告消息。
#define readmeFile 'readme.rt'
[Setup]
#if FileExists(readmeFile)
InfoBeforeFile=notes.rtf
#else
;Is it possible to generate info message on Inno setup console when file does not exist ?
#endif
欢迎使用I
; Script generated by the Inno Script Studio Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "NEW_MYSQL"
#define MyAppVersion "1.0"
#define MyAppPublisher "NEW_MYSQL"
#define MyAppExeName "NEW_MYSQL.exe"
[Setup]
;
我正在使用Inno Setup生成我的应用程序的安装程序。如何设置Inno生成的setup.exe (VersionInfoVersion)的版本号自动与我的应用程序的版本号匹配?现在,每次我部署应用程序的新版本时,我都需要手动更新版本号。
现在我这样做:
[Setup]
VersionInfoVersion=1.2.2.0 //writing the value manually
我想要这样的东西:
[Setup]
VersionInfoVersion={Get the version of my app}