创建自定义Clickonce先决条件 [英] Creating custom Clickonce prerequisite

查看:108
本文介绍了创建自定义Clickonce先决条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


关于创建自定义Clickonce先决条件的问题:

当有一个安装文件将被添加为先决条件安装程序(.msi或.exe)时,我清楚如何创建自定义先决条件)。  但是,
如何继续有一个 setup.exe 文件以及安装过程所需的其他几个文件和文件夹/子文件夹。

Question regarding creating custom Clickonce prerequisite:
Its clear to me how to create custom prerequisite, when there is one installation file that will be added as prerequisite installer (either .msi or .exe). But, how to proceed when there is one setup.exe file together with several other files, and folders/subfolders, needed for setup process.

在我的具体情况下,我正在构建与Epson热敏打印机通信的WinForm应用程序。我正在使用Clickonce部署此应用程序,但我还需要添加
POS for .Net 1.12 作为先决条件
。对于.Net 1.12的POS,没有单个.msi或.exe安装程序文件
。只有压缩安装,您首先需要提取它,并从此提取的内容(文件和文件夹)运行
setup.exe

In my specific case, I am building WinForm application that communicates with Epson thermal printer. I am deploying this app with Clickonce, but I also need to add POS for .Net 1.12 as prerequisite. And there is no single .msi or .exe installer file for POS for .Net 1.12. There is only compressed installation, that you first need to extract it, and from this ectracted content (files and folders) run setup.exe.

同样,我还需要包含  < a href ="https://download.epson-biz.com/modules/pos/index.php?page=single_soft&cid=5460&scat=39&pcat=3"> EPSON OPOS ADK
for .NET   ;,它也不是一个安装程序文件。

Similarly, I also need to include EPSON OPOS ADK for .NET ,which also doesn't come as one installer file.

当需要包含多个文件和文件夹/子文件夹时, product.xml 应如何显示在先决条件安装?

How should product.xml look when there are several files and folders/subfolders needed to be included in prerequisite installation?

提前致谢。

Thanks in advance.

推荐答案

据我所知,Bootstrapper需要一个包裹 以EXE或MSI文件的形式,如果您要安装的内容不是软件包,我会 恐怕你无法为安装程序创建自定义先决条件。

As far as I know, Bootstrapper require a package  in the form of an EXE or MSI file, if what you want to install is not a package, I  am afraid you can not create a custom prerequisite for installer.

.Net v1.12.exe和OPOSN1.12.26.exe的POS 两者都是exe,你可以直接创建Bootstrapper Packages根据以下
向导。

POS for .Net v1.12.exe and OPOSN1.12.26.exe both are exe, you can create Bootstrapper Packages directly according to the following Wizard.

https:// msdn .microsoft.com / zh-CN / library / ms165429.aspx

我没有看到它们是压缩文件。

I don't see they are compressed file.

如果文件不是EXE或MSI,我认为您需要将文件打包为EXE或MSI。

If a file is not a EXE or MSI, I think you need package the files as an EXE or MSI.

如果简单的复制操作足以重新分发必备组件(对于例如,如果它没有依赖关系),你需要


不需要创建一个包。只需确保该文件包含在设置中,或者设置为"复制本地"(属性视图中的文件的
复制属性应设置为
True )。

If a simple copy operation would be sufficient to redistribute the prerequisite component (for example, if it has no dependencies), you do
not need to create a package. Just make sure that the file is included in the setup or that it is set to Copy Local (the file's Copy property in Properties View should be set to True).

最好的问候,

Bob


这篇关于创建自定义Clickonce先决条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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