Windows Service Silent Update: Difference between revisions

Jump to navigation Jump to search
Line 51: Line 51:
The directory being watched on Windows XP and below can be found in: <br>C:\Documents and Settings\All Users\Application Data\Mozilla\updates
The directory being watched on Windows XP and below can be found in: <br>C:\Documents and Settings\All Users\Application Data\Mozilla\updates


Since the service is currently planned to only be started when needed, we may just have it scan a directory, do the work items it needs to, and then stop itself automatically.  
Since the service is only started when needed, we pass the information to the service via command line on service start.  
The service security will be modified with a special [http://msdn.microsoft.com/en-us/library/aa379298.aspx ACE] which allows non elevated processes to start and stop it.  Setting these permissions on the service is needed because by default services can only be started and stopped by elevated processes.  This is possible via the Win32 API [http://msdn.microsoft.com/en-us/library/windows/desktop/aa379589%28v=vs.85%29.aspx SetServiceObjectSecurity].
The service security will be modified with a special [http://msdn.microsoft.com/en-us/library/aa379298.aspx ACE] which allows non elevated processes to start and stop it.  Setting these permissions on the service is needed because by default services can only be started and stopped by elevated processes.  This is possible via the Win32 API [http://msdn.microsoft.com/en-us/library/windows/desktop/aa379589%28v=vs.85%29.aspx SetServiceObjectSecurity].


Confirmed users
394

edits

Navigation menu