473,238 Members | 1,591 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,238 software developers and data experts.

Bug in Upgrading Window-Service Setup Project (w/ RemovePreviousVersion)

1
Language Used: C#
Project Typed: Setup Project (for .NET Window Service)

Hi Bump into this issue and seriously have a hunch that this is a bug in the .NET setup project. These are the scenario:

- I have an existing Window-Service application written in C#, and was build following the general deploying Window-Service guideline (the Win-Service project has a Installer class that have ServiceProcessInstaller & ServiceInstaller that control the attributes of the window-service to be installed)

Along with the window-service project, there's also a pretty standard VS setup project, which have all its Custom Actions(onInstall OnUninstall rollback etc) pointing to the Window-Service ProjectOutput.

Recently we need to make an update to the window-service app and in this change we need to change the description and the display name of the window service and also the default-location on where the app will be deployed to.

So I went on and update the Setup project by incrementing the version, changing the PRODUCT CODE and keeping the UPGRADE CODE. I set the RemovePreviousVersion to true with the intention to automatically remove the previous version.


Problem is when I run the installation, the setup will pop a message-box:

"Could not find a part of the path [OLD APP-LOCATION-PATH].InstallState"

when this message-box was popped out, all the previous-version install has been removed (the Service is gone and the old Application-folder is gone also from the program files)

SO after doing some-debugging this is what I found out:
Supposed this:
Old-appPath: C:\Program Files\Company\AppVersion1.0\WinSvcApp.exe
New-AppPAth C:\Program Files\Company\AppVersion2.0\WinSvcApp.exe


- When a previous version exist, and RemovePreviousVersion is set to True, the MSI installer will run the un-install on the old application assembly first (see the Old-AppPath above), which is the correct behavior that we want

- BUT after it's finished w/ the un-install and started to install the new version, somehow the assembly-path that the installer is using is still pointing to the OLD application assembly - which explains why it still need to point to the old InstallState path



Again - this is really odd because like I said before, right after the un-install finished I check the File-system in my dev-box and found that all the old files has been removed and the services has been removed also

so my Big question is there anyway to get around this glitch or am I doing anything wrong ????


any help would be greatly appreciated
Dec 12 '07 #1
0 1872

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: pbj | last post by:
my application was created in vb.net, vs 2003. the setup project was also created in vs 2003. one of my application reviewers reported this: The .Net link that is included in the setup is not the...
1
by: Phil Jones | last post by:
Does anyone know how to get VS.NET to make a set-up project for a WindowService that installs it and makes it run? I'm trying to do this with standard Setup Project template using the project...
1
by: JJ | last post by:
Hi, I have gone the setup project route and added the setup project to my solution as in the guide. I have checked the dependancy's and they all seem to be there. Now do I just build the project...
0
by: Adam Clauss | last post by:
I have a C++ COM Addin I wrote for Outlook (2002) using VS.Net 2002. Having completed it, I am now looking to create a setup project and install it on another machine. I created a setup project...
4
by: Howard Kaikow | last post by:
When I build a setup project, the dependency in the setup project is tied to the version in which it was built. Is there a way to build a setup project that can be used in both versions of the...
7
by: HIK | last post by:
Click once can be set up to pole the setup url if there is a newer version or not. I have a project which can only be deployed using a setup project. How can I create the same feature in my setup...
1
by: Fred W. | last post by:
I create a setup project and install version 1.0.0. I want my next release to uninstall 1.0.0 and then install 1.0.1 in its place? How do I do this? I set RemovePreviousVersion to true. I set...
2
by: zacks | last post by:
I have created numerous Setup projects with Visual Studio 2005. I have a current solution that is fairly complex with numerous projects. It contains two primary applications so there are two setup...
0
by: Stephan Steiner | last post by:
Hi I recently switched over to VS2008 and had to create my first setup project (in VS2008) for an already existing project. So I had Visual Studio convert the existing solution, then added a...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.