exilon / QuickLib

Quick development library (AutoMapper, LinQ, IOC Dependency Injection, MemoryCache, Scheduled tasks, Json and Yml Config and Options pattern, Serializers, etc) with crossplatform support for Delphi/Firemonkey (Windows,Linux,OSX/IOS/Android) and freepascal (Windows/Linux).
Apache License 2.0
621 stars 185 forks source link

Quick.AppService Starting with Param #65

Open fintechyazilim opened 3 years ago

fintechyazilim commented 3 years ago

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.

fintechyazilim commented 3 years ago

MyServiceConsole.zip

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.

fintechyazilim commented 3 years ago

!! NOTE !! Also you can't remove the service if you install my service with a Parameter You need to delete it from registry.