Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
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
Posted
Comments
Captain Price 3-Dec-11 3:32am    
Try Install Shield. It is a most trusted setup wizard from the users. Search in Google ! You'll find. Easy, Fast...[etc]

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...:))
 
Share this answer
 
v2
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 ????
 
Share this answer
 
;P
:-\  :-\
:-\
 
Share this answer
 
Hi,

How about adding a custom action as an executable file that takes backup, VS 2005 has an option of offering a executable file as custom action at the time of Unistall.

When you reinstall your application, it will unistall the old application, I guess at that time your custom action defined application will execute and take backup.

Hope This will Help.


Thanx,
Adil...:))
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900