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:
- 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…
- 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?
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.