msabir1
Posts: 3
Joined: Fri Jan 20, 2006 3:52 pm

Windows Service (Java based) stops after log off

I have also emailed AdvancedInstaller tech support and have not heard back from them.

We are using Advanced Installer 4.8.1.
Our product is Java based and it runs a Java program as Windows Service.

The service runs fine after the install, but as soon as you log off, the service stops. We have set the service to start "automatic".

Another weird thing is that when you restart Windows, the service starts automatically without having the user log in to the Windows. However, if user logs in and then logs out, the service stops.

Conclusion: Win32 Service always stops when user logs off -- even if it was running when user was not logged in.

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

Hi,

Please make sure you don't scheduled the service to run under current account (leave "UserName" and "Password" fields empty so the service runs under local system account).

Also in the "Java Products->Virtual Machine" tab under "Edit JVM Parameters" dialog use the "Reduced usage of operating-system signals" option.

Please let us know if the problem persist.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
msabir1
Posts: 3
Joined: Fri Jan 20, 2006 3:52 pm

I have not set it to run under current account.
All, I did was upgrade to latest AI version and rebuid the install file.

This has been fixed by checking "Redued usage of OS signals".
I did not have to do this in older version though.

Thanks
MS

gigi wrote:Hi,

Please make sure you don't scheduled the service to run under current account (leave "UserName" and "Password" fields empty so the service runs under local system account).

Also in the "Java Products->Virtual Machine" tab under "Edit JVM Parameters" dialog use the "Reduced usage of operating-system signals" option.

Please let us know if the problem persist.

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

Return to “Common Problems”