如何在VB.Net中制作安装文件 [英] How to make a Setup File in VB.Net

查看:107
本文介绍了如何在VB.Net中制作安装文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hiee :)

我对在VS2005中制作安装文件有点了解.

现在我的问题是
我的客户端,当我第一次将软件放入C:\ program files \ MyProgram
时已经使用我的软件的客户端
现在,我将再次向该客户端安装相同的软件
所以我真正想做的是
在安装时,我希望安装文件自动创建一个备份文件夹,在该文件夹上将创建"MyProgram"的备份,然后将新文件安装到客户端

这可能吗?????

我的电子邮件:nadarmuthukumar@yahoo.co.in

hiee :)

i have a little idea about making Setup file in VS2005.

now my problem is
my client, who already use my software when i installed my software the first time it placed into C:\program files\MyProgram

Now i am going to install the same software again to that Client
so what exactly i wanted to do is
While Installing i want my setup file to create a backup folder automatically on which it will create a backup of my "MyProgram" and then install a fresh file to the client

is this possible ?????

my email : nadarmuthukumar@yahoo.co.in

推荐答案



在VS 2005中创建安装项目时,可以选择在安装时创建自定义操作.

您始终可以创建一个可执行文件,从所需位置复制一个文件夹及其内容,然后将其粘贴到另一个所需的LO位置,然后该可执行文件将用于自定义操作"(在您的情况下,请在安装前进行备份).
创建安装程序时,您可以通过以下方式定义自定义操作:

右键单击项目资源管理器中的设置"图标->选择视图->选择自定义操作.

这将打开自定义操作"窗格,您可以在其中定义自定义"操作(以您的情况为例,在安装前先进行备份).

这是为您提供正确轨道的总体思路,希望对您有所帮助.

如果您需要其他详细信息,请告诉我.

谢谢,

Adil ...:))
Hi,

When you are creating setup projects in VS 2005, it has an option to create custom actions while Installation.

You can always create an executable that copies a folder and its contents from the desired location and paste it into another desired lo location,this executable will then be used for Custom Actions(in your case taking backup before installation).

While creating the Setup you can define the custom action by :

Right Click on the Set up icon on in the Project Explorer--> Select View --> Select Custom Actions.

This will open the Custom Actions pane there you can define the Custom action(in your case taking backup before installation).

This is general idea to provide you the right track, hope this will help.

Please let me know if you need any further detail on the same.

Thanx,

Adil...:))


感谢您的回复Adil :)

但是我尝试使用自定义操作
基本上,自定义操作"执行脚本,但是在安装结束时

所以对我来说是无奈的.
因为在执行自定义操作执行其关联的脚本之前,我们的安装先删除文件,然后再安装新文件
因此,删除后将不再使用自定义操作

和其他方法????
Thank you for your response Adil :)

But i tried using Custom Actions
basically Custom Actions execute script''s but at the end of installation

so that is helpless for me.
because before Custom actions Execute its associated Script our Installation remove the File and then Install a fresh File
so After Removing there is no use of Custom Actions

and other method ????


; P
:-\  :-\

:-\


这篇关于如何在VB.Net中制作安装文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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