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

C#

 
GeneralRe: p/invoke c++ classes with virtual functions Pin
mintguy6-Feb-06 22:06
mintguy6-Feb-06 22:06 
GeneralRe: p/invoke c++ classes with virtual functions Pin
leppie6-Feb-06 22:15
leppie6-Feb-06 22:15 
QuestionHow to use Pay Pal Pro [Urgent] Pin
Virendrak5-Feb-06 22:44
Virendrak5-Feb-06 22:44 
AnswerRe: How to use Pay Pal Pro [Urgent] Pin
exhaulted6-Feb-06 0:27
exhaulted6-Feb-06 0:27 
QuestionMDI data storage in XML Pin
bharath_kraj5-Feb-06 22:34
bharath_kraj5-Feb-06 22:34 
AnswerRe: MDI data storage in XML Pin
exhaulted6-Feb-06 0:26
exhaulted6-Feb-06 0:26 
GeneralRe: MDI data storage in XML Pin
bharath_kraj7-Feb-06 2:41
bharath_kraj7-Feb-06 2:41 
QuestionInstalling Windows Services. Double Quotes in Executable File Pin
dmivlad5-Feb-06 22:07
dmivlad5-Feb-06 22:07 
Hello!

I have the following problem.
I've created windows service on MS Visual Studio 2005
and I am trying to install it using InstallUtil.exe which is in Framework 2.

I need to pass parameter to the executable file of the service.
I override method Install of my ServiceInstaller the following way:

public override void Install(IDictionary savedState)
{
Context.Parameters["assemblypath"] += " parameter";

base.Install(savedState);
}

When InstallUtil finishes working I have my installed service but in Executable File I have the value of Context.Parameters["assemblypath"] placed in double quotes:
"C:/.../myservices.exe parameter". When i try to start this service I have "File Not Found" exception. I replaced double quotes in regedit and service started normally.
The question: Is there any normal way to install service so that it wouldn't have double quotes, or the executable path would look like: "C:/.../myservices.exe" parameter.

Thank you for possible answers!





Dmitry Uvarov
QuestionPlease help - How to get the Path of Executable of a Windows Service... Pin
Tigger995-Feb-06 21:56
Tigger995-Feb-06 21:56 
QuestionDisplaying the system menu Pin
AB77715-Feb-06 21:11
AB77715-Feb-06 21:11 
AnswerRe: Displaying the system menu Pin
exhaulted6-Feb-06 0:35
exhaulted6-Feb-06 0:35 
GeneralRe: Displaying the system menu Pin
AB77716-Feb-06 0:41
AB77716-Feb-06 0:41 
QuestionVirtual Directory in Web Application Pin
raheeli5-Feb-06 20:02
raheeli5-Feb-06 20:02 
AnswerRe: Virtual Directory in Web Application Pin
leppie5-Feb-06 20:48
leppie5-Feb-06 20:48 
Questionimplementing ajax Pin
sharma sanjeev5-Feb-06 19:52
sharma sanjeev5-Feb-06 19:52 
AnswerRe: implementing ajax Pin
osamahmirza9-Feb-06 17:45
osamahmirza9-Feb-06 17:45 
GeneralRe: implementing ajax Pin
osamahmirza9-Feb-06 17:50
osamahmirza9-Feb-06 17:50 
GeneralRe: implementing ajax Pin
sharma sanjeev9-Feb-06 19:41
sharma sanjeev9-Feb-06 19:41 
QuestionTo get Msgbox in VB to C# Pin
vasundra5-Feb-06 19:10
vasundra5-Feb-06 19:10 
AnswerRe: To get Msgbox in VB to C# Pin
Robert Rohde5-Feb-06 19:30
Robert Rohde5-Feb-06 19:30 
Questionpassing a struct Pin
VanEtienne5-Feb-06 19:05
VanEtienne5-Feb-06 19:05 
AnswerRe: passing a struct Pin
rakesh_nits5-Feb-06 19:33
rakesh_nits5-Feb-06 19:33 
AnswerRe: passing a struct Pin
Robert Rohde5-Feb-06 19:34
Robert Rohde5-Feb-06 19:34 
GeneralRe: passing a struct Pin
VanEtienne5-Feb-06 20:02
VanEtienne5-Feb-06 20:02 
GeneralRe: passing a struct Pin
rakesh_nits5-Feb-06 21:32
rakesh_nits5-Feb-06 21:32 

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.