NSIS - 重建安装程序 exe 文件 [英] NSIS - rebuilding the installer exe file

查看:30
本文介绍了NSIS - 重建安装程序 exe 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我已经使用 NSIS 创建了一个安装 exe.exe 是一个压缩(可能是 7zip)文件,其中包含在新机器上安装应用程序的所有内容,并且包含大型 exe 文件(如 .NET 运行时、mysql 服务器安装程序等).我必须通过互联网将大 exe 文件发送给另一个人.

Suppose I have created an installation exe using NSIS. The exe is a compressed (7zip maybe) file that contains everything to install the application on a fresh machine, and that comprises big exe files (like .NET runtimes, mysql server installer, etc.). I have to send via the Internet the big exe file to another person.

为了节省时间和带宽,我想删除包含的大文件;我可以使用 7zip 打开并提取原始 exe 中的所有文件,删除大文件,然后再次使用 7zip 重新压缩.现在可以了.

To save time and bandwidth, I'd like to remove the contained big files; I can do that using 7zip to open and extract all the files in the original exe, delete the big ones, rezip using again 7zip. This works up now.

对方会下载压缩后的压缩文件,但随后又不得不以某种方式重新引入大文件,重新创建exe安装程序.

The other party will download the reduced zipped file, but then has to reintroduce the big files in some way, recreating the exe installer.

我不知道如何实现这一目标.我试过 paquet builder 没有成功.那可能吗?

I don't know how to achieve that. I've tried with paquet builder with no success. Is that possible?

推荐答案

我认为这不可能.但我想我有另一个解决方案.为什么不简单地从 NSIS 包中执行单独的可执行文件(如 .NET 运行时等)?这样您就不需要将它们包含在生成的包中.只需告诉用户下载它们并将其放在适当的位置即可.比指导他们从零开始组装捆绑更容易,不是吗?

I don't think it's possible. But I think I have another solution for you. Why don't you simply execute separate executables (like .NET runtime etc) from NSIS bundle? This way you don't need to include them into resulting bundle. Just tell the user to download them and put the into proper place. It would be easier than instructing them to assemble bundle from pieces, no?

这篇关于NSIS - 重建安装程序 exe 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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