0

I have created an installer via Visual Studio Installer for a windows form app, that is needed to run at startup.

I am using Visual Studio 2015, and set it up by adding the registry key HKey_Current_User\Software\Microsoft\Windows\CurrentVersion\Run.

Currently it creates a bat file, in the \Start Menu\Programs\Startup, is this correct behavior?

Locally, I have been able to install it and it runs automatically on startup. But on some machines we are having an access is denied issue on startup.

I am not sure if there is something I can do, to prevent this access is denied exception.

Thanks

PhilDW
  • 20,260
  • 1
  • 18
  • 28
arcbound08
  • 107
  • 8
  • Are you installing per-user or per-machine? – Christopher Painter Feb 15 '17 at 11:52
  • per machine, for all uses of that machine, thanks – arcbound08 Feb 15 '17 at 12:06
  • If you're saying that your forms app starts and creates a bat file in the \Startup folder but it fails, then your program requires elevation to put things in the Startup folder and you haven't got that privilege. That could be a UAC setting issue, and also some AV products may prohibit access to Startup locations. – PhilDW Feb 15 '17 at 17:37

0 Answers0