且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

尝试使用批处理文件部署应用程序时出现问题

更新时间:2023-10-19 22:38:34

嗯,据我所知,这是部署程序的***方法.而且,这是Microsoft极力鼓励的方式.很多人都同意我的观点,但是他们都是精通计算机的人.

许多像样的知名程序都可以这样工作.从我一直使用的来看,这是Mozilla Seamonkey和Firefox,这是惊人的矢量图形编辑器Inkscape.

现在,添加/删除程序"(安装数据库)如何? 只需忘记它即可.所谓的"xcopy部署"是针对真正的用户的,他们不需要从汤匙里喂食就知道哪里有东西.除非您相信奇迹,否则您的程序不应显示为已安装".只需将其复制到某个方便的位置即可直接运行. (以这种方式部署时,您的应用程序会运行吗?它功能正常吗?)

坦率地说,某些应用程序确实需要安装和卸载.有些是在首次运行时自动安装的,但需要进行一些卸载才能删除所有痕迹.当您尝试复制时,其中许多都可以很好地生活.它仅要求用户具备足够的知识才能理解如何运行事物.特别是如果此用户认为自己是软件开发人员.

—SA
Well, to my taste, this is the best way to deploy a program. More over, this is the way highly encouraged by Microsoft. Many people agree with me, but all of them are computer-savvy.

Many decent well-known program can work like that. From what I always use, this is Mozilla Seamonkey and Firefox, this is the amazing vector graphics editor Inkscape.

Now, how about "Add/remove program" (a database of installation)? Simply forget it. So called "xcopy deployment" is for real users, who don''t need to be fed from a spoon and know where there stuff is. You program is not supposed to "show up as installed", unless you believe in miracles. Just copy it to some convenient location and run directly. (Does your application run when you deploy it this way? It it fully functional?)

To be frank, some applications really needs installation and uninstallation. Some are self-installed on first run but need some uninstallation used to remove all traces. And many of them would live fine when just copies as you try to do. It only requires that the user is literate enough to understand how to run things. Especially if this user consider herself/himself a software developer.

—SA