We help IT Professionals succeed at work.

Create a patch with Visual Studio 2005 (or a free tool) that will replace some files

Medium Priority
416 Views
Last Modified: 2013-11-26
Hi all,

I'd like to create a patch with Visual Studio 2005 (or a free tool), that will do the following:

 - Find an installation location of a program I've previously installed (I know how to find it in registry)
 - Show a message if program has not been found on computer
 - Replace some of the files, but not all, by new ones

Can anybody help me to do that please?

Thank you by advance,
Julien
Comment
Watch Question

Dirk HaestProject manager
CERTIFIED EXPERT
Commented:

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks for your comment

It doesn't really match what I'm looking for, because using RemovePreviousVersions set to true in my installer will uninstall all files, and I only want to replace some of them.

I'm currently looking on this good article:
http://murrayon.net/2008/03/creating-patch-installers.html

If you have additional ideas, thanks by advance.

Author

Commented:
Finally I've created a new windows application in Visual Studio, that contains files to copy and forms to display information to user.
Then I use IEXPRESS (present in Windows XP) to compress all the files as an exe installer that will extract all files in a temporary folder and execute my application. These files are then deleted when the installation form is closed by the user.
Éric MoreauSenior .Net Consultant
CERTIFIED EXPERT
Top Expert 2016
Commented:
Isn't it what ClickOnce does?
CERTIFIED EXPERT
Commented:
> Find an installation location of a program I've previously installed (I know how to find it in registry)

create system search.

> Show a message if program has not been found on computer
create custom action that will work depending on the value of the property being the result of the system search

 - Replace some of the files, but not all, by new ones
define how should the system decide which ones to replace and which not to.
CERTIFIED EXPERT
Commented:
re. 1 and 2 - or you can simply create the custom action that will check registry key and show the message depending on the result.

Author

Commented:
Thanks for the post vadimrapp1, it's exactly how I thought to do the job, but I need to automatically install the patch if I find the installation path, so I prefer to build a new application to do that, it's more simple in this case.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.