将仅安装应用程序转换为便携式应用程序

While there are a myriad of useful applications and utilities which are available via portable distributions, many tools still remain in their “install only” format. This limitation, however, should not discourage you from using the respective program as a portable application. With a few tricks we are going to show you here, you may be able to add these programs to your collection of portable tools yet.

尽管可以通过便携式发行版获得大量有用的应用程序和实用程序,但许多工具仍保持其“仅安装”格式。 但是,此限制不应阻止您将相应程序用作可移植应用程序。 我们将在此处向您展示一些技巧,您也许可以将这些程序添加到便携式工具的集合中。

从安装程序中提取文件 (Extracting Files from the Installer)

The first trick you can try is to extract the application files directly from the installer program. By using the 7-Zip file compression utility, you can attempt to open the setup file as a compressed archive via the right click context menu.

您可以尝试的第一个技巧是直接从安装程序中提取应用程序文件。 通过使用7-Zip文件压缩实用程序,您可以尝试通过右键单击上下文菜单将安装文件作为压缩存档打开。

image

Depending on the compression format of the installer, you may or may not be able to open it as a readable archive.

根据安装程序的压缩格式,您可能会或可能无法将其作为可读档案打开。

For our example, we are going to demonstrate this technique using the Quickbooks Network Diagnostic Tool which is available as an installation only program. This is a great example because typically you would only use this program one time to resolve your issue and no longer need it, making it ideal for a portable application.

对于我们的示例,我们将使用Quickbooks Network Diagnostic Tool(仅作为安装程序提供)来演示此技术。 这是一个很好的例子,因为通常您只需要使用此程序一次即可解决您的问题,而不再需要它,因此非常适合便携式应用程序。

By opening the install file in 7-Zip, you can see and extract the files used by the application directly into a folder.

通过在7-Zip中打开安装文件,您可以查看应用程序使用的文件并将其直接提取到文件夹中。

image

Then simply run the application from the extracted files.

然后,只需从提取的文件中运行应用程序即可。

image

The utility works exactly the same as if you had installed using the setup program.

该实用程序的工作方式与使用安装程序进行安装的方式完全相同。

image

安装然后复制粘贴 (Install then Copy-Paste)

For applications where you cannot use the above method, you can try installing the application on one computer and then copying the installed files to another system.

对于无法使用上述方法的应用程序,可以尝试在一台计算机上安装该应用程序,然后将已安装的文件复制到另一系统上。

To demonstrate this method, we are going to use the VHD Resizer utility which we have written about before. When you open the installer, an MSI file, using 7-Zip you can see the file names are garbled so extracting the files would do no good.

为了演示这种方法,我们将使用之前编写的VHD Resizer实用程序。 当您打开安装程序时,使用7-Zip的MSI文件会显示文件名乱码,因此解压缩文件将无济于事。

image

After running the installer, open the folder the program was installed to and copy the files to another computer.

运行安装程序后,打开程序已安装到的文件夹,然后将文件复制到另一台计算机。

image

Once again, the program runs on the system where the files were simply pasted with no issue.

程序再次在仅粘贴文件而没有问题的系统上运行。

image

局限性 (Limitations)

While these methods will work a good bit of the time, by no means is correct functionality guaranteed. If, for example, an installer copies files to multiple locations, registers DLL’s or creates registry entries required for operation, these steps will obviously not be completed using the above methods.

尽管这些方法会在很长时间内起作用,但绝对不能保证正确的功能。 例如,如果安装程序将文件复制到多个位置,注册DLL或创建操作所需的注册表项,则显然无法使用上述方法完成这些步骤。

For mission critical applications it is always recommended you use the program as distributed, but for everything else these methods are a great way to increase your toolbox of portable applications.

对于关键任务应用程序,始终建议您以分布式方式使用该程序,但是对于其他所有方法,这些方法都是增加可移植应用程序工具箱的好方法。

链接 (Links)

Download 7-Zip

下载7-Zip

翻译自: https://www.howtogeek.com/51154/transform-install-only-applications-into-portable-applications/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值