三个用户定义位置中的三个组件 [英] three components in three user defined locations

查看:59
本文介绍了三个用户定义位置中的三个组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了这篇出色的文章: Inno设置-正确使用关于组件和类型的[类型],[组件]和[任务] .

I saw this excellent article: Inno Setup - Correct use of [Types], [Components] and [Tasks] on components and types.

我目前有三个要安装的单独的setup.exe项目(瑞士):

I currently have three separate setup.exe projects (iss) to install:

  1. 程序可执行文件(默认为:C:\ ProgramFiles/),即{pf}
  2. js/css/html的设置(默认为:c:\ wwwroot \ sherlock
  3. 用于安装图像文件(jpg/png)文件的设置(默认为:c:\ wwwroot \ toby

我希望用户能够重定向这三个组件"中每个组件的默认位置(即,也许他的/wwwroot在G驱动器上,或类似的东西.我在源代码中也看不到:除了将此命令发送到{app}

I want the user it be able to redirect the default locations for each of these three "components" (i.e. perhaps his /wwwroot is on the G drive, or something like that. I don't see anyway in the Source: command other than to send this to {app}

Source: "Z:\EGPL Librarian Releases\Sample Installation\wwwroot\Sherlock\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs

问题:是否可以使用上述文章中的组件和类型来完成? 我是否应该创建安装程序的安装程序并保留三个单独的设置? (并且您可以向我展示安装程序的安装程序示例吗?)

Question: can this be done with components and types as the above article? Should I rather create an installer of installer programs and keep the three separate setups? (And can you show me an example of an installer of installer programs?)

我正在寻找一个简单的解决方案,因为我还有其他工作要做.

I am looking for a simple solution, since I have other work to do.

推荐答案

请参见此页.请注意,它是为Inno的较旧版本编写的,但它应该足够容易适应.

See this page. Note that it was written for an older version of Inno, but it should be easy enough to adapt.

组件/任务用于可选的东西.如果您的项目不是可选项目,那么使用它们就没什么意义了.

Components/Tasks are for optional things. If your items are not optional then there's not much point in using them.

关于是制作单个安装程序还是安装程序的安装程序-主要问题是您想在卸载时发生什么.如果希望用户能够分别卸载每个部分,则必须使用唯一的AppId创建单独的安装脚本(然后选择为其安装安装程序).如果希望始终将它们一起卸载,则可以制作一个脚本.

As for whether to make a single installer or an installer of installers -- the main question there is what you want to happen at uninstall time. If you want the user to be able to uninstall each part separately then you must create separate install scripts with unique AppIds (and then optionally make an installer of installers for them). If you want them to always be uninstalled together then you can make a single script.

这篇关于三个用户定义位置中的三个组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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