如何创建基于浏览器的系统的安装程序? [英] How to create an installer of a browser-based system?

查看:119
本文介绍了如何创建基于浏览器的系统的安装程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开发了一个基于浏览器的员工管理系统.我想知道是否可以通过一种方法来创建安装程序或自解压文件,以将系统轻松地传输到另一台计算机.

I just developed a browser-based employee management system. I am wondering if there is a way for me to create an installer or a self-extracting file to transfer the system to another computer easily.

我尝试使用"iexpress.exe"和"Actual Installer",但是似乎它们仅提取到一个目录中.我可以使用这些应用程序指定将哪个文件转到特定目录吗?如果没有,那么有什么建议吗?

I have tried using "iexpress.exe" and "Actual Installer" however it seems they only extract in a single directory. Is there a way for me to specify which file should go to a specific directory using these applications? If none, any suggestions how to do it?

推荐答案

您可以使用

You can make IExpress put files into subdirectories using a technique described by Microsoft. In your install program, you’d need to do something similar to:

@md i386
@xcopy /q /y toastva.exe i386\.
@xcopy /q /y tostrcls.dll i386\.
@xcopy /q /y tostrco2.dll i386\.
@xcopy /q /y toaster.sys i386\.

(如果您要这样做,可以使用move /y代替xcopy.)

(You could use move /y instead of xcopy, if that’s what you wanted to do.)

这是由于IExpress生成其CAB文件的技术限制. IExpress生成一个DDF文件,该文件由makecab.exe读取;此文件将所有源文件放在同一目标文件夹中.因此,无论其源目录如何,每个源文件都必须具有唯一的名称.

This is due to a technical limitation in the way IExpress generates its CAB file. IExpress generates a DDF file which is read by makecab.exe; this file places all source files in the same destination folder. Thus each source file must have a unique name, regardless of its source directory.

虽然makecab.exe本身支持子目录,但输入的DDF文件是由IExpress即时生成的,因此很难(如果不是不可能的话)在makecab.exe读取它之前对其进行拦截和更改.

While makecab.exe itself supports subdirectories, the input DDF file is generated on-the-fly by IExpress, so it would be difficult (if not impossible) to intercept it and make changes before makecab.exe reads it.

但是,老实说,如果您需要子目录(和子子目录…),那么您可能要考虑使用真正的"安装程序制造商.某些示例没有特定的顺序:

But honestly, if you need subdirectories (and sub-subdirectories…) then you might want to consider using a "real" installer maker. Some examples in no particular order:

  • Inno Setup
  • NSIS
  • WiX

这篇关于如何创建基于浏览器的系统的安装程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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