Guest

Java Service Working Directory

Can you set the working directory for a service? What directory will the service be launched from?

Thanks
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

No you can't. Windows Installer doesn't allow it. But why do you need to? You should use GetModuleFileName() to get a module's directory.

Hope that helps,
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”