Windows application installer frameworks

青春壹個敷衍的年華 提交于 2019-11-30 03:28:07

问题


It's always seemed strange to me that downloadable applications would offer multiple types of installers. For example, sometimes you can choose either a .exe or a .msi

Do certain types of installers have advantages over others? Does it matter which one you choose? As a developer, why would I want to offer different installers to my users?


回答1:


One big difference between the exe and msi: You can EDIT an MSI file.
You can access the MSI Database directly using Orca -or- code it up through the WindowsInstaller APIs, using your favorite Windows hacking methods.

Ex. I wrote a python based builder which, amongst many other tasks, routinely edits and updates MSI packages.

A quick warning to brave souls:

Although the APIs seem well documented, a LOT of WI functionality is subtle, even cryptic - the MS Office team definitely did not chose the principle of "least surprise" when they created Windows Installer.

IF you choose to delve into the mystic world of WI, be prepared for long hours of head scratching, tedious debugging and pouring over enormous MSI log files




回答2:


A big advantage of .msi over .exe is that they can be "rebundled" (I don't recall the correct term) by sysadmins for installation over the network for deployment in corporate environments.




回答3:


the exe ones are mostly compressed ones. msi cant compress really good. the msi file you can share/install on your computers directly with windows active directory.




回答4:


In corporate environments, clients are often subject to a "lockdown" policy that prohibits them from downloading EXE files, but usually MSI files are OK.



来源:https://stackoverflow.com/questions/1284825/windows-application-installer-frameworks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!