nosbor
nosbor

Reputation: 2999

Program is not starting at windows 7 startup

I read some topics here, but I haven't found the solution of my problem. I wrote application(C#, WPF, EF, sql server compact) that should start at windows startup. I tried to achieve that in two ways:

  1. Add entry to windows register. Unfortunately that wasn't work on Windows 7. I found here that adding a shortcut to Startup folder can solve my problem...
  2. I've added shortcut to my application in Startup folder. Unfortunately again it is not working...

My application is starting with admin permissions because is using external dll's sql server compact. Maybe this is reason? In addition my application is not signed and probably will not be. Also writing a wcf service could be bad idea in my application.

Do you have any suggestions, or solutions for that problem?

Upvotes: 0

Views: 1088

Answers (2)

nosbor
nosbor

Reputation: 2999

The solution for that problem was to make user to install sql server compact on his own computer instead of embeding it in application folder and change permissions for application to asInvoker from admin.

Upvotes: 0

Christopher Painter
Christopher Painter

Reputation: 55581

It's against windows guidelines ( and enforced by the operating system ) to put a program that requires UAC elevation in the startup process. It's a horrible user experience to be prompted for elevation every time they logon to a computer.

I would factor the wcf / sql into a service and keep the client side UI elevation free.

Reference: Error message when you start a Windows Vista-based computer: "Windows has blocked some startup programs"

Upvotes: 2

Related Questions