QuickLib
QuickLib copied to clipboard
Quick.AppService Starting with Param
Hi,
I install the Application with a parameter. Example: MyApplicaiton MyParam1 /install
After the installation, When i try to start the application ParamStr(1) gives me empty value.
When i make a normal service application without using Quick.AppService, ParamStr(1) gives me the parameter which i give on installation.
How can i get params on start?
Best Regards, Serhan.
MyServiceConsole.exe TEST /install
Give a parameter when you are installing the application. (I'm setting the ImagePath at the end of the code) But i can't get paramtr(1) when i start the application even it's not starting. On the other hand this approch is working in classic service application.
!! NOTE !! Also you can't remove the service if you install my service with a Parameter You need to delete it from registry.