简体   繁体   English

安装文件名格式最佳实践

[英]Installation File Name Format Best Practice

I was reading the post Installation file names in Windows Vista when I thought about Installation File Names.当我想到安装文件名时,我正在阅读Windows Vista 中的安装文件名。 I'm a addicted software downloader, and frequently I've got installation names like "setup.exe" or "install.exe", that says nothing about the program to be installed.我是一个上瘾的软件下载者,而且我经常有像“setup.exe”或“install.exe”这样的安装名称,这并没有说明要安装的程序。

I think that an installation file must be like:我认为安装文件必须是这样的:

Install[ProgramName][ProgramVersion][Platform].[exe|msi|etc]安装[程序名称][程序版本][平台]。[exe|msi|etc]

or或者

[ProgramName][ProgramVersion][Platform].Setup.[exe|msi|etc] [程序名称][程序版本][平台].Setup.[exe|msi|etc]

What your thoughts?你的想法是什么?

I much prefer descriptive install file names.我更喜欢描述性安装文件名。 Sometimes, you want an emergency 'restore' disk to get a machine up and running even without internet connectivity.有时,即使没有互联网连接,您也需要一个紧急“恢复”磁盘来启动和运行机器。 When all your installs are named "setup.exe", you either have to rename them all, or create a directory with a descriptive name for each one.当所有安装都命名为“setup.exe”时,您要么必须全部重命名,要么为每个安装创建一个具有描述性名称的目录。

An example of where such a disk would have been really handy was when I took my brand new laptop in to work to use while I upgraded my desktop to Vista 64, and then Windows 7. I only have one wired LAN point, so my laptop needed a wireless connection for internet access, to download my installs.这种磁盘非常方便的一个例子是,当我将我的全新笔记本电脑带到工作中使用时,我将台式机升级到 Vista 64,然后升级到 Windows 7。我只有一个有线 LAN 点,所以我的笔记本电脑需要无线连接才能访问互联网,以下载我的安装。 I had to download them all on my desktop, and then transfer by flash drive to my laptop.我必须将它们全部下载到我的桌面上,然后通过 flash 驱动器传输到我的笔记本电脑。 Very inconvenient.很不方便。

Not sure this is entirely programming-related... but installer files are usually meant to be transient.不确定这是否完全与编程相关......但安装程序文件通常是暂时的。 You download them, run them, and delete them.你下载它们,运行它们,然后删除它们。 (Or at least, I think most people do) So it doesn't matter much what the filename is. (或者至少,我认为大多数人都这样做)所以文件名是什么并不重要。

I don't think there's any reason not to give the installer a descriptive name... but I certainly wouldn't say it "must" have one.我认为没有任何理由给安装程序起一个描述性的名称……但我当然不会说它“必须”有一个。

For CD-Rom based installation, I'd suggest sticking with SETUP.EXE which helps with autorun detecting software to install from the disk.对于基于 CD-Rom 的安装,我建议坚持使用SETUP.EXE ,它有助于自动运行检测软件以从磁盘安装。

For downloadable files, just add the appropriate manifest to the EXE and Vista won't have a problem with it.对于可下载的文件,只需将适当的清单添加到 EXE 中,Vista 就不会出现问题。 I'd suggest something semi-descriptive, but there's no need to go into great detail unless it's something like hardware drivers that a person may archive off for reuse, otherwise the file name is confusing to non-technical people.我建议一些半描述性的东西,但没有必要对 go 进行详细说明,除非它类似于硬件驱动程序,一个人可以存档以供重用,否则文件名会使非技术人员感到困惑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM