philb1208
Posts: 44
Joined: Thu Jul 04, 2019 3:24 pm

Windows services with different config options

Hello,

When i install my application it grabs the config file from a remote server. This is working great. I have two rules set up

1) if the "system type" = "Citrix XenApp" then download http://[config_url]/XenApp.conf

2) if the system type is != "Citrix XenApp" then download http://[config_url]/config.conf

These files are downloaded fine when i test this, however the section of my installer that creates the service installs it provides the default /config.conf file

Is there a way to set which config i should use based on the one downloaded? So if i download the XenApp.conf then the section that defines my service would create the service and tell it to use that XenApp config.

At the moment the "config" part of the file is hard wired into my service. I only need to change the file name itself. The URL and the file extension would be the same throughout.

Thanks.
philb1208
Posts: 44
Joined: Thu Jul 04, 2019 3:24 pm

Re: Windows services with different config options

Hi,

I found a way around this now. I've removed the bits from the config that could change and download them separately now so i don't need to change the config file thats in use when installing the service.

Thanks
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Windows services with different config options

Hello Phil,

Thank you for your followup on this and for sharing your solution with us.

I am glad you got this working.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”