Inno Setup:如何将安装程序本身放入已安装的程序中 [英] Inno Setup: How to put the installer itself in the installed program

查看:182
本文介绍了Inno Setup:如何将安装程序本身放入已安装的程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Inno Setup上有一个安装程序,用于安装程序.
此安装程序具有多种形式供用户输入.
但是,如果用户未输入适当的信息,我想给他选择重新单击安装程序并输入适当的信息的选项.
我试图这样实现:

I have an installer on Inno Setup that installs a program.
This installer has many forms for user input.
But if the user didn't type in the appropriate information, I would like to give him the option to reclick the installer and type in the appropriate information.
I tried to achive this like so:

[Files]
Source: "C:\Users\myUser\Output\Setup.exe"; DestDir: "{app}";

但是运行代码时出现以下错误:(源文件"C:\ Users \ myUser \ Output \ Setup.exe"不存在.)
那么如何将安装程序本身放入安装程序中呢?

But I get this following error when i run the code: (Source file "C:\Users\myUser\Output\Setup.exe" does not exist.)
So how can I put the installer itself in the installation?

推荐答案

我认为这可能会满足您的要求.它复制 {srcexe} {app} 常量,并通过 external 标志,因此安装程序包不需要打包在其内部.换句话说,它只是将执行的设置复制到应用程序文件夹中:

I think this might do what you want. It copies the setup binary file referred by the {srcexe} constant to the application directory given by the {app} constant and does it externally by the external flag, so the setup package doesn't need to packed inside itself. In other words, it just copies the executed setup to the application folder:

[Files]
Source: "{srcexe}"; DestDir: "{app}"; Flags: external

这篇关于Inno Setup:如何将安装程序本身放入已安装的程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆