Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / April 2004

Tip: Looking for answers? Try searching our database.

Windows Installer overrides registry values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Hartog - 13 Apr 2004 06:51 GMT
I created an installer package which has been installer by several clients. Now I want to create a new version. I increased the version number and changed the upgrade code of the installer package and set the RemovePreviousVersion property to True and set the DetectNewerInstallerVersion to True as well

I have several registry setting setup in the registry editor. However if the client has a previous version of the application installed I want the system to remember those settings and not overrige them. Because the RemovePrevioiusVersion property is set to True the system removes all setting after which they are lost. However if I dont set this property to true the system willl install 2 version of the application on the target machine

How can I create a package that overrides (or removes) the old version but doesn't override the registr values so that previous configuration settings will be maintained? I spend many days trying to find a solution but haven't had much luck. Also it must be possible to use this package as the first installer meaning that if the client never had the application installed before, he can run the setup to  install the application. In other words it is not just a patch for older versions

Many thanks, Paul
Phil Wilson - 15 Apr 2004 16:57 GMT
Within the constraints of VS setups, custom actions and major upgrades
(RemovePreviousVersions) you can do something like this:
Have an uninstall custom action that saves those registry entries,
conditioned on UPGRADINGPRODUCTCODE which is set when you are being
uninstalled by a major upgrade.
Have an install custom action that looks for the saved registrry entries and
installs them.
Signature

Phil Wilson
[MVP Windows Installer]

> I created an installer package which has been installer by several clients. Now I want to create a new version. I increased the version number
and changed the upgrade code of the installer package and set the
RemovePreviousVersion property to True and set the
DetectNewerInstallerVersion to True as well.

> I have several registry setting setup in the registry editor. However if the client has a previous version of the application installed I want the
system to remember those settings and not overrige them. Because the
RemovePrevioiusVersion property is set to True the system removes all
setting after which they are lost. However if I dont set this property to
true the system willl install 2 version of the application on the target
machine.

> How can I create a package that overrides (or removes) the old version but doesn't override the registr values so that previous configuration settings
will be maintained? I spend many days trying to find a solution but haven't
had much luck. Also it must be possible to use this package as the first
installer meaning that if the client never had the application installed
before, he can run the setup to  install the application. In other words it
is not just a patch for older versions.

> Many thanks, Paul
Paul Hartog - 18 Apr 2004 11:46 GMT
Thanks

Paul
Phil Wilson - 18 Apr 2004 20:17 GMT
I should add that UPGRADINGPRODUCTCODE is set in the old install as it is
upgraded and uninstalled by the new incoming product, just to make it clear.
If you've already shipped the first version of the product it's too late to
change a custom action in it.
Signature

Phil Wilson
[MVP Windows Installer]

> Thanks!
>
> Paul

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.