Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help to run my application without windows logon

 
prakasham selamban
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends

I need help to execute my application without windows log on. I have developed a login application which should be executed before windows logon screen .

thanks in advance
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prakasham,
Welcome to the Ranch.

I don't think thats possible.
Why would you want to do it in the first place?
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want an application to run on Windows before you login then you have to run it as a service.
Google for java service wrapper for ways to do this with a Java application.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if it's run as a service I doubt if the OPs login screen can be displayed before the OS login screen.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Even if it's run as a service I doubt if the OPs login screen can be displayed before the OS login screen.


If its running using the Admin account the service will run if the machine is up and no one is logged on. Writing a Java application that interupts the OS logon process is the really hard part.

This is one of those things that would make me ask why you were doing this. Active Directory gives fairly rich authorisation and authentication mechanisms, what else could you need that it doesn't provide? If you want this to run on machines that are not on the network how do you prevent people circumventing your application (by logging in as admin for example)?
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Even if it's run as a service I doubt if the OPs login screen can be displayed before the OS login screen.


I missed the bit about it being a login application.
If the OP is writing something as Windows specific as this, I would suggest that Java is the wrong language to write it in. It is certainly possible to hook in to the Windows login process, but the APIs that allow this are all written in C/C++.
 
prakasham selamban
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:Hi Prakasham,
Welcome to the Ranch.

I don't think thats possible.
Why would you want to do it in the first place?


Hello friend

Now i am doing finger print based login. If i use my java login screen as a jar file it works fine and its execute before windows log on screen. I want to sample code to change registry values through java code.

Thanks for your previous reply
 
Scott Cheadle
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
prakasham selamban wrote:
Maneesh Godbole wrote:Hi Prakasham,
Welcome to the Ranch.

I don't think thats possible.
Why would you want to do it in the first place?


Hello friend

Now i am doing finger print based login. If i use my java login screen as a jar file it works fine and its execute before windows log on screen. I want to sample code to change registry values through java code.

Thanks for your previous reply


What you want is a GINA hook. You can't achieve this in Java, realistically you need to use Visual C++. The following is an article describing how to go about customising GINA.

http://msdn.microsoft.com/en-us/magazine/cc163803.aspx

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic