Hello,
Unfortunately, we do not have predefined support to set the service's working directory.
However, you could try to use the
"Launch EXE with working directory" custom action.
For instance, the behavior from the
"Services" page can be replicated by using the system tool
sc.exe.
The custom action should be scheduled between the
"InstallServices" and
"MsiConfigureServices" standard actions, with its execution time being of
"When the system is being modified (deferred)".
By default, the above specified standard actions do not show in the
"Custom Actions" page -->
"Install Execution Stage". In order to show them, please right click on any action group -->
"Show Standard Action" -->
"Add Resources" --> select
"Install Services". Now please repeat this steps for the
"MsiConfigureServices" as well.
In order to schedule your custom action between these two, simply drag and drop it accordingly.
Hope this helps.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging