keyongtech


  keyongtech > dotnet.framework.* > dotnet.framework.setup > 07/2008

 #1  
05-07-08, 02:18 PM
kota
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
 #2  
05-07-08, 07:35 PM
Phil Wilson
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?
 #3  
05-07-08, 10:35 PM
Phil Wilson
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.
 #4  
05-08-08, 04:00 PM
kota
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
 #5  
05-08-08, 05:50 PM
Phil Wilson
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.
 #6  
06-18-08, 06:37 AM
Amod
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-a...om-an-msi.html


Regards
Amod



"Phil Wilson" wrote:
[..]
 #7  
07-23-08, 06:24 AM
VB.Net
vb.net is supposed to work for different versions. is it not it? .net is
xcopy and not registry based.




"kota" <kota> wrote in message
news:2cd2
[..]
Similar Threads
Uninstall previous version

The software I am developing is targeted to users with minimal computer skills is it possible with the installer to setup up the following logic. Detect if previous version...

----------------Can't uninstall .-.-.-.-.- Previous version is bet

I cannot uninstall the program... i like the previous version of windows, it is better for me I guess, so please don't change the design

How to check the OS version in launch condition?

How to check the OS version in launch condition? Hi there, I'm working on a VS.NET setup project and I need to check the version of the opearting system (if it is Windows...

uninstall previous version

I recently upgraded to XP Home Edition from Windows 98SE and want to recover the disk space used by Win98. Add/Remove programs does not show it. Should I simply delete the...

uninstall to previous version OF .........

Are there easy ways to uninstall win98 SE upgrade? ALSO: Are there easy ways to uninstall dirextx 9b ? Are there easy ways to uninstall windows media player 9 ?


All times are GMT. The time now is 10:56 AM. | Privacy Policy