Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
GeneralRe: TCPIP client server communications Pin
dwolver15-Sep-10 4:34
dwolver15-Sep-10 4:34 
QuestionI'm trying to get a Session and redirect in Globa.asax Pin
luiz sync15-Sep-10 2:13
luiz sync15-Sep-10 2:13 
AnswerRe: I'm trying to get a Session and redirect in Globa.asax Pin
Calla15-Sep-10 2:42
Calla15-Sep-10 2:42 
Questionsetup and unistall Pin
tomorrow_ft15-Sep-10 2:03
tomorrow_ft15-Sep-10 2:03 
AnswerRe: setup and unistall Pin
Calla15-Sep-10 2:36
Calla15-Sep-10 2:36 
GeneralRe: setup and unistall Pin
tomorrow_ft15-Sep-10 2:48
tomorrow_ft15-Sep-10 2:48 
GeneralRe: setup and unistall Pin
tomorrow_ft15-Sep-10 3:03
tomorrow_ft15-Sep-10 3:03 
GeneralRe: setup and unistall Pin
Calla15-Sep-10 22:47
Calla15-Sep-10 22:47 
No not really. Just to make sure I understand your question correctly, is this your scenario:
You have created a Windows Service (NT Service) and you have added a ProjectInstaller in that project.
You added a Setup project to your solution to install your Windows Service.
Now you want to make an upgrade of your Service, for instance upgrading from version 1.0 to 2.0.

Then you should do the following:
1. Create a Custom action to your Setup project for Install, Commit, Rollback and Uninstall, adding the Project Output.. of your Windows Service.
2. Change RemovePreviousVersion from false to true.
3. Change the Version of your Setup project (i.e. from 1.0 to 2.0).
4. Change the UpgradeCode of your Setup project (I believe VS asks you if you want to change this when you change the Version).
5. If you are using VS 2008 (or 2010?), add the NOT PREVIOUSVERSIONSINSTALLED as a Condition. If you are using VS 2005, this is not necessary (Microsoft changed this behaviour between the 2005 and 2008 version of VS. This means that in 2008 the Service will not really be uninstalled in the Service Control Manager - only the binaries will we changed).

I know i repeated myself a bit from my previous answer, but this is actually the only steps you need to go through to make it work. If it doesn't work - please provide the code in your ProjectInstaller class, because maybe something is missing there. Also provide any error messages displayed.

You should not have to make any commands like "sc delete servisname" etc. All this should be taken care of by MSI.
GeneralRe: setup and unistall Pin
tomorrow_ft16-Sep-10 1:23
tomorrow_ft16-Sep-10 1:23 
GeneralRe: setup and unistall Pin
Calla16-Sep-10 2:48
Calla16-Sep-10 2:48 
GeneralRe: setup and unistall Pin
tomorrow_ft16-Sep-10 3:24
tomorrow_ft16-Sep-10 3:24 
GeneralRe: setup and unistall Pin
Calla16-Sep-10 3:31
Calla16-Sep-10 3:31 
QuestionEmbedding Dependancies in C# Excel Workbook Pin
Grimes14-Sep-10 23:33
Grimes14-Sep-10 23:33 
QuestionLarge ncb file in a C# project Pin
Bernhard Hiller14-Sep-10 22:14
Bernhard Hiller14-Sep-10 22:14 
AnswerRe: Large ncb file in a C# project Pin
_AnsHUMAN_ 14-Sep-10 22:18
_AnsHUMAN_ 14-Sep-10 22:18 
GeneralRe: Large ncb file in a C# project Pin
Bernhard Hiller15-Sep-10 2:09
Bernhard Hiller15-Sep-10 2:09 
AnswerRe: Large ncb file in a C# project Pin
fjdiewornncalwe16-Sep-10 2:06
professionalfjdiewornncalwe16-Sep-10 2:06 
QuestionThread and Webbrowser Control- Want to Create webbrowser on the fly(runtime) Pin
yogeshcgs14-Sep-10 20:34
yogeshcgs14-Sep-10 20:34 
AnswerRe: Thread and Webbrowser Control- Want to Create webbrowser on the fly(runtime) Pin
Dave Kreskowiak15-Sep-10 2:16
mveDave Kreskowiak15-Sep-10 2:16 
AnswerRe: Thread and Webbrowser Control- Want to Create webbrowser on the fly(runtime) Pin
Pete O'Hanlon15-Sep-10 3:45
mvePete O'Hanlon15-Sep-10 3:45 
Questionc# Pin
solanki12314-Sep-10 20:03
solanki12314-Sep-10 20:03 
AnswerRe: c# Pin
Dave Kreskowiak14-Sep-10 20:04
mveDave Kreskowiak14-Sep-10 20:04 
AnswerRe: c# Pin
Abhinav S14-Sep-10 20:24
Abhinav S14-Sep-10 20:24 
AnswerRe: c# Pin
Dave Kreskowiak15-Sep-10 2:12
mveDave Kreskowiak15-Sep-10 2:12 
AnswerRe: c# Pin
PIEBALDconsult15-Sep-10 3:06
mvePIEBALDconsult15-Sep-10 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.