尝试使用批处理文件部署应用程序时出现问题 [英] problem while trying to deploy application using batch file

查看:71
本文介绍了尝试使用批处理文件部署应用程序时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个C#应用程序.我正在部署阶段.该应用程序包含一些MS Office加载项功能.只需将安装文件复制到目标计算机的正确位置即可进行部署吗?或者还有什么我需要做的?一个简单的批处理文件是否可以具有如下代码:

Hello Everyone,

I have a C# application. I am in the deployment phase. The application consists of some MS Office add in features. Can deployment be possible just by copying the installation files into the proper location of the target machine? or is there anything else I need to do? Can a simple batch file having code like:

XCOPY <src file path> <destination file="" path=""> \e \v</destination>



足够的?

我如上所述创建了一个批处理文件,将其运行并将文件复制到所需位置.但是该应用程序未显示为已安装.当我通过控制面板下的添加/删除程序时,我什至找不到它.我正在Windows XP上进行测试
带有MS Office 2007的SP3.

我知道我在这里缺少一些东西来完成它,但是可以告诉我这是什么吗?

预先感谢,

begg.



enough?

I created a batch file as above,ran it and got my files copied into the desired location. But the application does not show up as installed. I cannot even find it when i go through add/remove programs under control panel. I am testing on windows XP
SP3 with MS Office 2007.

I know i am missing something here to get it done but can one tell me what is it?

Thanks in advance,

begg.

推荐答案

嗯,据我所知,这是部署程序的最佳方法.而且,这是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


这篇关于尝试使用批处理文件部署应用程序时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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