Tuesday, June 26, 2018

windows 10 startup at first logon



We only need to have our program running after the first user login, so no need for an earlier start.  Also none of the functions are required to be present when the user is not logged on, so logoff killing all applications, including this one is okay.

The start menu example:

C:\Users\jws\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

is sufficient for starting the fso.  shortcut to app needs to be installed there to launch

manual way to do it:
https://www.windowscentral.com/how-launch-apps-automatically-during-startup-windows-10

shell:startup

shell:AppsFolder

will bring up installed apps and startup folder (abs path above) for the user it is run on.

application is run w/o admin privileges so should be find with just a shortcut, not rights elevation.

https://www.howtogeek.com/208224/how-to-add-programs-files-and-folders-to-system-startup-in-windows-8.1/

With registry entries

https://winaero.com/blog/how-to-add-or-remove-startup-apps-in-windows-10/

To add or remove startup apps for the current user from the Registry, you need to follow the instructions below:
  • Open Registry Editor.
  • Go to the following key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run.
  • There you will find startup items for current users which are stored in the Registry:
If we need runonce vs. run always.

https://docs.microsoft.com/en-us/windows/desktop/SetupApi/run-and-runonce-registry-keys

The Windows registry includes the following four keys:
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
 complaint from github about Installshield

https://github.com/HandBrake/HandBrake/issues/414




-30-

No comments:

Post a Comment