Determine service execution directory - Advanced Installer Community
markus.egner
Posts: 1
Joined: Wed Dec 14, 2016 3:54 pm

Determine service execution directory

Hi,

Is it possible to determine where an installed service should be executed?
My service.exe is within the app installation folder and it is installed properly, but during the execution I found out that the service is executed in the system32 folder.

My problem is that the service looks for a database file relative from its execution directory. The db-file is also in the app installation dir.

If I install the service manually via the MS installutil.exe (Framework\v4 ....) it works.

Within the installation folder the is a folder called Data, which contains the DB-File.

Now the service looks for it under ...\System32\Data..

which of course does not exist

EDIT: Nevermind... I realized I need to alter design of my code. It's a code issue not an installation /execution issue..
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Determine service execution directory

Hello and welcome to our forums,

I'm glad you got this solved.

If there will be anything we can help you with don't hesitate to write us.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”