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 / .NET Framework / Setup / June 2008

Tip: Looking for answers? Try searching our database.

Launch condition to uninstall previous version of application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kota - 07 May 2008 14:18 GMT
Hi,

My previous version of application was built using Install shield and the
current version, i am developing throuhg setup and deployment VS2005 project.

1) I wanted to check, if my old application exists, remove the application
first and prompt for restart the PC before installing the new application.

Can anybody help me, how can i achieve this using setup & delployment.

2) if above solution is not possible, atleast i should prompt a message
that, install the previous version before installing the new one. Since both
not built using VS2005, i can't add condiition "remove previous version" =
TRUE.

Using Lanuch condition, we can check for File lanuch condition, search for
file, if exists, installation proceeds, with out showing error msg.
I am trying to do the opposit way, if the file exists, i should abort the
installation & prompting a message that, install the old application first.

Thanks,
Prafulla
Phil Wilson - 07 May 2008 19:35 GMT
First keep in mind that you're not going to be able to use Visual Studio
setups to do everything that an InstallShield setup can do, because Visual
Studio doesn't offer support for all the Windows Installer features like
InstallShield and other products do.

Yes you can use RemovePreviousVersions. Internally this is an MSI thing, not
something specific to Visual Studio projects. You use the UpgradeCode of the
previous version of the product and refer to the versions you want to
upgrade. That's worth a try.

Why the restart after the uninstall?

Signature

Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972

> Hi,
>
[quoted text clipped - 21 lines]
> Thanks,
> Prafulla
Phil Wilson - 07 May 2008 22:35 GMT
p.s. The version of your setup project needs to be higher than that
InstallShielde project so that RemovePrevviousVersions will see it as a
previous (older) version.

Signature

Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972

> First keep in mind that you're not going to be able to use Visual Studio
> setups to do everything that an InstallShield setup can do, because Visual
[quoted text clipped - 37 lines]
>> Thanks,
>> Prafulla
kota - 08 May 2008 16:00 GMT
Hi,

Thanks for your reply, I looked through the Product GUId for previous
release in HKCR\Installer\Components, but my product is not listed here, what
my guess is, may be product ID is not generated here. I was not the person,
who released the previous version.

If product GUID not exists, I cant use this in the Upgrade code of
deployment project.

Is there any other method to remove the application?

Thanks,
prafulla
Phil Wilson - 08 May 2008 17:50 GMT
I'm not sure what you're doing looking for Product guids in the registry.
All you need to know is the UpgradeCode of the older product built by
InstallShield. If you don't know it for some reason but that product is
installed on the system I'd look for the cached MSI file in
windows\installer, open it with Orca and look at the UpgradeCode in the
Property table.
Signature

Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972

> Hi,
>
[quoted text clipped - 12 lines]
> Thanks,
> prafulla
Amod - 18 Jun 2008 06:37 GMT
Hi..
I found the solution.
There is a property "Version" =1.0.0
change it to any value e.g. 1.0.1
Now it will ask to change product code automatically just click "yes"
n thats it.
Build the new relase & install it.
The previous verison will get uninstalled first. :)

You can see the linkfor explanation here
http://www.developingfor.net/setup-and-deployment/uninstalling-a-previous-versio
n-from-an-msi.html


Regards
Amod

> I'm not sure what you're doing looking for Product guids in the registry.
> All you need to know is the UpgradeCode of the older product built by
[quoted text clipped - 18 lines]
> > Thanks,
> > prafulla

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.