Click here to Skip to main content
15,888,802 members
Home / Discussions / C#
   

C#

 
GeneralRe: Install Windows Service Pin
Kevin Marois29-Mar-15 10:30
professionalKevin Marois29-Mar-15 10:30 
AnswerRe: Install Windows Service Pin
Richard Andrew x6429-Mar-15 15:00
professionalRichard Andrew x6429-Mar-15 15:00 
GeneralRe: Install Windows Service Pin
Dave Kreskowiak29-Mar-15 17:16
mveDave Kreskowiak29-Mar-15 17:16 
GeneralRe: Install Windows Service Pin
Kevin Marois30-Mar-15 1:27
professionalKevin Marois30-Mar-15 1:27 
AnswerRe: Install Windows Service Pin
Richard Deeming30-Mar-15 2:27
mveRichard Deeming30-Mar-15 2:27 
GeneralRe: Install Windows Service Pin
Dave Kreskowiak30-Mar-15 2:30
mveDave Kreskowiak30-Mar-15 2:30 
GeneralRe: Install Windows Service Pin
Kevin Marois30-Mar-15 2:41
professionalKevin Marois30-Mar-15 2:41 
GeneralRe: Install Windows Service Pin
Dave Kreskowiak30-Mar-15 3:27
mveDave Kreskowiak30-Mar-15 3:27 
Kevin Marois wrote:
Ya, in 2012 it was removed. For 2013 there's an extension[^] that adds it back in.


Hmmm, never knew that. It's a simplistic project that doesn't support much beyond a simple installation without a bunch of customization. Frankly, it's a waste as other products do the job far better and easier.

A Windows Service is not really a "standard project" as far as an installer is concerned. It's got extra work that needs to be done to setup and register the service beyond what you'd do in a "throw down executable files and a shortcut" application install.


Kevin Marois wrote:
I followed a number of articles about "Windows Service Installer", and they all lead to running a DOS command, which is what confuses me. People who pay for and download my product are not going to run a DOS command to install anything.
 
InstallUtil if great - IF you have VS on that machine.


And THIS is why you don't use the Setup and Deployment project. You use a product that does this stuff for you! InstallShield is just one of many authoring tools that does all the installation work out-of-the-box. Well, at least the full version does. I don't know about the LE version. Other products are the same way. You don't have to add InstallUtil to your installer or write the code to execute it in a custom action in the installer. It's all done for you.

If you want to use the Setup and Deployment project, you have to add the InstallUtil.exe to your installation files. Then you have to write a custom action to execute the command lines to run InstallUtil with the appropriate command line options.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: Install Windows Service Pin
Kevin Marois30-Mar-15 3:29
professionalKevin Marois30-Mar-15 3:29 
GeneralRe: Install Windows Service Pin
Dave Kreskowiak30-Mar-15 3:58
mveDave Kreskowiak30-Mar-15 3:58 
GeneralRe: Install Windows Service Pin
Kevin Marois30-Mar-15 3:59
professionalKevin Marois30-Mar-15 3:59 
AnswerRe: Install Windows Service Pin
Pete O'Hanlon30-Mar-15 2:42
mvePete O'Hanlon30-Mar-15 2:42 
GeneralRe: Install Windows Service Pin
Kevin Marois30-Mar-15 2:44
professionalKevin Marois30-Mar-15 2:44 
QuestionDbEntry Pin
Anele Ngqandu29-Mar-15 4:13
Anele Ngqandu29-Mar-15 4:13 
AnswerRe: DbEntry Pin
Dave Kreskowiak29-Mar-15 7:48
mveDave Kreskowiak29-Mar-15 7:48 
QuestionSelectednode.text is always null Pin
Member 1070832729-Mar-15 3:36
Member 1070832729-Mar-15 3:36 
QuestionHangMan C# need help! Pin
Munteanu Silviu28-Mar-15 7:21
Munteanu Silviu28-Mar-15 7:21 
AnswerRe: HangMan C# need help! Pin
Sascha Lefèvre28-Mar-15 8:23
professionalSascha Lefèvre28-Mar-15 8:23 
AnswerRe: HangMan C# need help! Pin
Bjørn8-Apr-15 4:24
Bjørn8-Apr-15 4:24 
QuestionPPPoe connection creation in c# Pin
KARFER28-Mar-15 4:00
KARFER28-Mar-15 4:00 
Questionlocalazation simulation Pin
huthiafa27-Mar-15 23:33
huthiafa27-Mar-15 23:33 
GeneralRe: localazation simulation Pin
Richard MacCutchan27-Mar-15 23:57
mveRichard MacCutchan27-Mar-15 23:57 
QuestionGlobal variable in C# Pin
aahamdan27-Mar-15 23:24
aahamdan27-Mar-15 23:24 
AnswerRe: Global variable in C# Pin
OriginalGriff28-Mar-15 0:27
mveOriginalGriff28-Mar-15 0:27 
GeneralRe: Global variable in C# Pin
aahamdan4-Apr-15 4:07
aahamdan4-Apr-15 4:07 

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.