Click here to Skip to main content
16,016,781 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Code for Project Pin
Colin Angus Mackay5-Jan-05 9:43
Colin Angus Mackay5-Jan-05 9:43 
GeneralRe: Code for Project Pin
J4amieC5-Jan-05 22:47
J4amieC5-Jan-05 22:47 
GeneralRe: Code for Project Pin
Edbert P6-Jan-05 10:46
Edbert P6-Jan-05 10:46 
GeneralAccessing other code base file in VB.NET Pin
fibman5-Jan-05 7:27
fibman5-Jan-05 7:27 
GeneralRe: Accessing other code base file in VB.NET Pin
T Manjaly5-Jan-05 10:04
T Manjaly5-Jan-05 10:04 
GeneralWindows Service Automatic Start Pin
Todd_S5-Jan-05 7:15
Todd_S5-Jan-05 7:15 
GeneralRe: Windows Service Automatic Start Pin
Barathan6-Jan-05 2:14
Barathan6-Jan-05 2:14 
GeneralRe: Windows Service Automatic Start Pin
Todd_S7-Jan-05 8:03
Todd_S7-Jan-05 8:03 
Thanks for your reply.

Actually, I do have the service automatically starting during the OS start-up using the method you described. What I want to do is have the service automatically started right after installation (without requiring a reboot).

I was eventually able to accomplish this by putting the following code in the ProjectInstaller.vb file. The program "MyApp" is a console application that starts, stops, pauses, etc. the service using various command parameters (in this case, "/start,MyService").

'Auto-start the service after installation.
Dim psInfo As New System.Diagnostics.ProcessStartInfo("C:\Program Files\MyApp.exe", "/start,MyService")
psInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
Dim myProcess As Process = System.Diagnostics.Process.Start(psInfo)

Thanks,
Todd_S
GeneralCF .Net Update Database from Dataset Datatable Pin
careysc5-Jan-05 5:03
careysc5-Jan-05 5:03 
GeneralAltering contents of a string Pin
SimesK5-Jan-05 4:55
sussSimesK5-Jan-05 4:55 
GeneralVARIANT leaks in VB.NET Pin
Jonathan [Darka]5-Jan-05 3:26
professionalJonathan [Darka]5-Jan-05 3:26 
Generalcalling subs from other classes Pin
fo0lish5-Jan-05 2:37
fo0lish5-Jan-05 2:37 
GeneralRe: calling subs from other classes Pin
T Manjaly5-Jan-05 5:37
T Manjaly5-Jan-05 5:37 
GeneralRe: calling subs from other classes Pin
fo0lish5-Jan-05 7:23
fo0lish5-Jan-05 7:23 
GeneralRe: calling subs from other classes Pin
T Manjaly5-Jan-05 9:04
T Manjaly5-Jan-05 9:04 
GeneralRe: calling subs from other classes Pin
fo0lish5-Jan-05 9:20
fo0lish5-Jan-05 9:20 
GeneralNeed Help for Crystal Report Page Setup Pin
Murtuza Husain Miyan Patel5-Jan-05 2:04
professionalMurtuza Husain Miyan Patel5-Jan-05 2:04 
GeneralRe: Need Help for Crystal Report Page Setup Pin
Barathan6-Jan-05 2:34
Barathan6-Jan-05 2:34 
GeneralRe: Need Help for Crystal Report Page Setup Pin
Barathan6-Jan-05 2:38
Barathan6-Jan-05 2:38 
Generalaspi Pin
Anonymous5-Jan-05 1:43
Anonymous5-Jan-05 1:43 
GeneralAI Pin
ironic20055-Jan-05 1:36
ironic20055-Jan-05 1:36 
GeneralRe: AI Pin
Colin Angus Mackay5-Jan-05 5:45
Colin Angus Mackay5-Jan-05 5:45 
GeneralFile.Copy File Not Found Exception. Pin
netSam4-Jan-05 21:04
netSam4-Jan-05 21:04 
GeneralRe: File.Copy File Not Found Exception. Pin
Dave Kreskowiak5-Jan-05 1:47
mveDave Kreskowiak5-Jan-05 1:47 
GeneralRe: File.Copy File Not Found Exception. Pin
netSam5-Jan-05 2:38
netSam5-Jan-05 2:38 

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.