Windows应用程序部署 [英] Windows application deployment

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

问题描述

Hello Experts,


我使用带有C#的vs.net 2002创建了一个Windows应用程序,现在我需要部署该项目

。该项目涉及向注册表添加字符串值

并创建文本文件。问题是如何创建项目中包含的卸载项目的
a卸载程序,

将删除创建的注册表值,以及文本文件?

感谢先进,

Benny


***通过Developersdex发送 http://www.developersdex.com ***

不要只参加USENET ...获得奖励!

解决方案

嗨Benny,


添加一个新的安装项目到你的解决方案在解决方案资源管理器中右键单击安装项目

,从上下文菜单中选择View,Registry,然后按

添加所需的键。安装项目生成的* .msi文件将

负责安装/卸载新的注册表项。


Joe

-

Joe Mayo,作者/导师

需要C#/ .NET培训吗?

访问 www.mayosoftware.com

C#教程 - www.csharp-station.com


" Benny" <一个******* @ devdex.com>在消息中写道

news:uJ **************** @ TK2MSFTNGP12.phx.gbl ...

Hello Experts,

我使用带有C#的vs.net 2002创建了一个Windows应用程序,现在我需要部署该项目。该项目涉及向注册表添加字符串值和创建文本文件。问题是我如何创建一个包含在项目中的卸载程序,它将卸载项目,
将删除创建的注册表值以及文本文件?

先谢谢了,

Benny

***通过Developersdex发送 http://www.developersdex.com ***
不要只是参加USENET ......获得奖励!



您好,


您可以使用VS.NET附带的Windows Installer 2.0。

使用WI,您可以创建一个部署包(msi),它将在注册表中添加

值,卸载后将删除它们。

关于文本文件,我不确定(用于自动删除),但你可以

总是在安装程序包中定义一个自定义步骤,你可以在其中做任何你想要的


Branimir


-

Branimir Giurov

MCSD.NET,MCDBA

" Benny" <一个******* @ devdex.com>在消息中写道

news:uJ **************** @ TK2MSFTNGP12.phx.gbl ...

Hello Experts,

我使用带有C#的vs.net 2002创建了一个Windows应用程序,现在我需要部署该项目。该项目涉及向注册表添加字符串值和创建文本文件。问题是我如何创建一个包含在项目中的卸载程序,它将卸载项目,
将删除创建的注册表值以及文本文件?

先谢谢了,

Benny

***通过Developersdex发送 http://www.developersdex.com ***
不要只是参加USENET ......获得奖励!



>我使用带有C#的vs.net 2002创建了一个Windows应用程序,现在

我需要部署项目。该项目涉及向注册表添加字符串值和创建文本文件。问题是我如何创建一个包含在项目中的卸载程序,它将卸载项目,
将删除创建的注册表值以及文本文件?




使用一个很好的安装程序包来完成此任务。 VS.NET 2002

包括创建安装项目的支持,它将使用

MS Windows Installer技术并创建.MSI安装包。


如果您正在寻找更轻巧,更容易理解的东西,我强烈推荐免费的InnoSetup套餐(

与ISTool GUI前端相结合) - 它创建了独立的EXE

安装程序,这些安装程序非常容易发送,它包括卸载

suppport。


InnoSetup - 免费安装程序
http:// www.jrsoftware.org/isinfo.php


ISTool - InnoSetup的免费GUI前端
http://www.istool.org/


Marc

================================================== ==============

Marc Scheuner愿你的来源与你同在!

伯尔尼,瑞士m.scheuner(at)inova.ch


Hello Experts,

I have created a windows application using vs.net 2002 with C#, and now
I need to deploy the project. The project involves adding string values
to the registry and created text files. The question is how can I create
a uninstaller included in the project which will uninstall the project,
which will delete the registry values create, as well as the text files?
Thanks in advanced,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!

解决方案

Hi Benny,

Add a new Setup project to your solution. Right-click on the setup project
in the Solution Explorer, select View, Registry from the context menu, and
add they key you want. The *.msi file produced by the setup project will
take care of installation/uninstallation of the new registry keys.

Joe
--
Joe Mayo, Author/Instructor
Need C#/.NET training?
visit www.mayosoftware.com
C# Tutorial - www.csharp-station.com

"Benny" <an*******@devdex.com> wrote in message
news:uJ****************@TK2MSFTNGP12.phx.gbl...

Hello Experts,

I have created a windows application using vs.net 2002 with C#, and now
I need to deploy the project. The project involves adding string values
to the registry and created text files. The question is how can I create
a uninstaller included in the project which will uninstall the project,
which will delete the registry values create, as well as the text files?
Thanks in advanced,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!



Hi there,

you can use Windows Installer 2.0, which comes with VS.NET.
With WI, you can create a deployment package (msi), which will add the
values in the registry and upon uninstall will delete them.
About the text file, I''m not sure (for automatic deletion), but you can
always define a custom step in the installer package, in which you can do
whatever you want.

Good luck,
Branimir

--
Branimir Giurov
MCSD.NET, MCDBA
"Benny" <an*******@devdex.com> wrote in message
news:uJ****************@TK2MSFTNGP12.phx.gbl...

Hello Experts,

I have created a windows application using vs.net 2002 with C#, and now
I need to deploy the project. The project involves adding string values
to the registry and created text files. The question is how can I create
a uninstaller included in the project which will uninstall the project,
which will delete the registry values create, as well as the text files?
Thanks in advanced,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!



>I have created a windows application using vs.net 2002 with C#, and now

I need to deploy the project. The project involves adding string values
to the registry and created text files. The question is how can I create
a uninstaller included in the project which will uninstall the project,
which will delete the registry values create, as well as the text files?



Use a good installer package that will do this for you. VS.NET 2002
includes support to create Installation projects, which will use the
MS Windows Installer technology and create .MSI installation packages.

If you''re looking for something more light-weight, and easier to
understand, I''d strongly recommend the free InnoSetup package (in
conjunction with the ISTool GUI frontend) - it creates stand-alone EXE
installers, which are very easy to send out, and it includes uninstall
suppport.

InnoSetup - free Installer
http://www.jrsoftware.org/isinfo.php

ISTool - free GUI front-end for InnoSetup
http://www.istool.org/

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch


这篇关于Windows应用程序部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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