all groups > visual studio .net setup > may 2005 >
You're in the

visual studio .net setup

group:

Question on configuring Setup Project in VS.NET


Question on configuring Setup Project in VS.NET Dotnetjunky
5/23/2005 5:36:02 PM
visual studio .net setup:
Hi

Here is my scenario. I developed version 2 of my application and I created a
setup project for it. When users run the installation file, I want to ask
them whether they want to uninstall old version (which is version 1.) In
VS.NET, I see the option "Remove old version" in the Property pane of the
setup project. So, is there anyway to hook up this action to a checkbox in a
custom UI dialog ?

Thanks in advance.

Dotnetjunky

RE: Question on configuring Setup Project in VS.NET timmac NO[at]SPAM online.microsoft.com
5/26/2005 12:00:00 AM
Great Question! Yes, you can create a custom UI dialog for this, but you
will need to create a public property in the MSI that you can reference and
set as a condition for the RemoveExistingProducts Action.

I would also review the Major Upgrade information on MSDN.

Major Upgrades
http://msdn.microsoft.com/library/en-us/msi/setup/major_upgrades.asp

Cheers,
Tim Macaulay
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights
Re: Question on configuring Setup Project in VS.NET Phil Wilson
5/26/2005 10:05:13 AM
Not by using the Visual Studio IDE, no. RemovePreviousVersions causes the
MSI file to contain an unconditional sequence of events that searches for
the prior version and uninstalls it (FindRelatedProducts,
RemoveExistingProducts). Like Tim says, you'd need to manually edit the MSI
file to add your checkbox condition property to one of those actions.
--
Phil Wilson [MVP Windows Installer]
----
[quoted text, click to view]

Re: Question on configuring Setup Project in VS.NET Dotnetjunky
5/27/2005 2:57:02 AM
Thanks for your reply. However, I don't know how to manully edit MSI file and
what actions I need to attach my checkbox condition property to. Can you shed
more light on it ?

Thanks


[quoted text, click to view]
Re: Question on configuring Setup Project in VS.NET Phil Wilson
5/28/2005 2:28:38 PM
That's a huge topic - there's the Windows Installer SDK, a tool called Orca
(search the web). It's why there are tools like these, many of which have
IDE support for what you want to do.
http://installsite.org/pages/en/msi/authoring.htm
--
Phil Wilson
[Microsoft MVP-Windows Installer]

[quoted text, click to view]

AddThis Social Bookmark Button