How to auto-start my own .NET app when Windows starts?

Page 2 of 5 FirstFirst 1234 ... LastLast

  1. Posts : 35,508
    Win 10 Pro (21H2) (2nd PC is 21H2)
       #11

    Out of curiosity, as you've sensibly tried delaying the scheduled task, try running task manually from the task scheduler.
      My Computers


  2. Posts : 14
    Windows 10 Pro [Version 10.0.19041.329]
    Thread Starter
       #12

    Matthew Wai said:
    Manually run the following via Command Prompt and see whether it works.

    Start "" "C:\HA\Homeautomation.Manager.exe"
    Matthew Wai said:
    Manually run the following via PowerShell and see whether it works.

    Start-Process "C:\HA\Homeautomation.Manager.exe"
    In both cases I get the app starting briefly and then crash/close again.
      My Computer


  3. Posts : 7,484
    Windows 10 Home 20H2
       #13

    Press the Windows key + R.
    Run the following:

    C:\HA\Homeautomation.Manager.exe
      My Computer


  4. Posts : 14
    Windows 10 Pro [Version 10.0.19041.329]
    Thread Starter
       #14

    Matthew Wai said:
    Press the Windows key + R.
    Run the following:

    C:\HA\Homeautomation.Manager.exe
    weirdly, that works...
      My Computer


  5. Posts : 7,484
    Windows 10 Home 20H2
       #15

    Good news! Now, run the following via Command Prompt:

    C:\HA\Homeautomation.Manager.exe
      My Computer


  6. Posts : 14
    Windows 10 Pro [Version 10.0.19041.329]
    Thread Starter
       #16

    Matthew Wai said:
    Good news! Now, run the following via Command Prompt:

    C:\HA\Homeautomation.Manager.exe
    That, again, starts the application briefly then crashes.
    I've tried with normal and elevated Command Prompt
      My Computer


  7. Posts : 35,508
    Win 10 Pro (21H2) (2nd PC is 21H2)
       #17

    post #11?
      My Computers


  8. Posts : 14
    Windows 10 Pro [Version 10.0.19041.329]
    Thread Starter
       #18

    dalchina said:
    post #11?
    Tried running the task in Task Scheduler manually using the Run button (I hope that's what you meant?)
    Same thing... Starts briefly, then crashes.

    So, in summary, I can only start the app by manually clicking on the shortcut on the desktop (or the pinned icon on the taskbar) or with Start-Run.
      My Computer


  9. Posts : 7,484
    Windows 10 Home 20H2
       #19

    yesyes said:
    I can only start the app by manually clicking on the shortcut on the desktop
    Copy the shortcut into the following folder:

    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
      My Computer


  10. Posts : 7,484
    Windows 10 Home 20H2
       #20

    Run the following via an elevated Command Prompt:

    sfc /scannow
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:05.
Find Us




Windows 10 Forums