Working Folder not working for Java Services - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

micke
Posts: 5
Joined: Tue Jun 20, 2006 12:44 pm

Working Folder not working for Java Services

When I execute my Java application as a Java Service the working folder is set to C:\windows\system32. I have selected to "Set current directory to product folder" but it is not working. When i run the application from the start menu the working folder is correct.

Am I doing anything wrong or is this a known bug?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

We cannot reproduce this error on our computers. Please send the AIP and ini file to support at advancedinstaller dot com.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
adkl
Posts: 1
Joined: Wed Jan 03, 2007 3:42 pm

Re: Working Folder not working for Java Services

micke wrote:When I execute my Java application as a Java Service the working folder is set to C:\windows\system32. I have selected to "Set current directory to product folder" but it is not working. When i run the application from the start menu the working folder is correct.

Am I doing anything wrong or is this a known bug?
Hi, I am experiencing the same problems. The statement

strIniFileName = System.getProperty("user.dir")+"" +"MyIni.ini";

works when not running as a service, but that system property is returns an empty string when running as a service!

By the way, I am running version AdvancedInstaller version 4.3.

Could you please reply whether this is a known bug and whether it is planned to be solved.

Rehards,
Addy.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please make sure you have the "Set current directory to product folder" options selected.

However if the problem persist please send a small test case (a .zip with all project files in it) that reproduce this behavior to support at advancedinstaller dot com.

This will help us greatly to provide a solution in the shortest possible time.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”