views:

195

answers:

3

I have created a Windows service that will run an exe file periodically to check for files on an FTP site, process any that are found, enter data into an SQL database and print a label to a local printer.

Currently we are running Windows XP Professional but if we moved to Vista (or Windows 7) would the increased security prevent my service from functioning? We do not have any Vista machines available so testing is a problem.

The service uses the Local System account and reads from the registry for the trigger period and exe to call. I understand the exe runs in the same level as the service so no user interaction is generated to the screen. We use a label printer connected to a USB port and I know this works on XP even before a user has logged in.

+1  A: 

The short answer is probably 'no' (it does not), but I don't think that posting a question on SO will eliminate the need for testing your application (especially since the long answer is of course 'it depends' - on the security configuration and other software, hardware firewall, etc etc).

cdonner
I agree that I will need to test but that I do not have access to Vista, at least not in the short term. We need to implement the application as soon as possible but if there is anything I can do now to make things easier later...
Swinders
+1  A: 

Hi, you might want to take a look at this thread:

http://stackoverflow.com/questions/22674/what-are-the-main-differences-between-programming-for-windows-xp-and-for-vista/22684

Mark Ingram
Great links about Vista and XP differences in this thread, thanks.
Swinders
A: 

It looks like you can specify the privileges for a service to a greater extent under Vista so using the full access provided by the Local System account would not be necessary.

There is a documnet Services in Windows Vista from Microsoft that introduces the changes introduced under Vista.

On the positive side it looks like if you do not specify any reduced privileges then the default privileges of the account used (Local System in this case) would apply so pending an actual test there should not be a problem.

Swinders