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

Page 4 of 5 FirstFirst ... 2345 LastLast

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

    yesyes said:
    It's in the attached zip file.
    I ran it via Command Prompt and got the following:

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

    How to auto-start my own .NET app when Windows starts?-testing2.jpg
      My Computer


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

    dalchina said:
    Have you tried my post #21? It launches from the command line, so.. (no idea what the underlying problem is though!)
    Sorry, I missed that today. I tried now.
    This is the weirdest one yet! According to my app log and Task Manager it is running, but the UI did not open. No window at all! I tried twice to rule out some weird one-off issue (can it actually get any weirder??)
      My Computer


  3. Posts : 35,545
    Win 10 Pro (21H2) (2nd PC is 21H2)
       #33

    It runs from a scheduled task as per my #21 ok, using 'Run'.
    How to auto-start my own .NET app when Windows starts?-1.png
      My Computers


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

    Matthew Wai said:
    I ran it via Command Prompt and got the following:
    It does now seem to run when run from command prompt on my machine too.
    Any chance you could try if it auto-starts on your machine, please?
      My Computer


  5. Posts : 35,545
    Win 10 Pro (21H2) (2nd PC is 21H2)
       #35

    Also runs as a task on logging on from task scheduler as Try3's suggestion way back.
    How to auto-start my own .NET app when Windows starts?-1.png
      My Computers


  6. Posts : 5,209
    21H1 64 Bit Home
       #36

    yesyes said:
    OK, I've made a minimal version that should run fine. The executable is exactly the same, but I removed most of the "plug-in" DLLs and created a minimal config.
    It's in the attached zip file.
    Runs fine for me on reboot. No problem.

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

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

    As it's self written and unsigned some security software will not like it and block it.


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

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

    How to auto-start my own .NET app when Windows starts?-zemana-antimalware.jpg
      My Computer


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

    As it's self written and unsigned some security software will not like it and block it.
    Too true- Avast has gone away for over 30 mins now and reported 'it's cracking' !
      My Computers


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

    yesyes said:
    It does now seem to run when run from command prompt on my machine too.
    Any chance you could try if it auto-starts on your machine, please?
    Firstly, create an elevated shortcut according to the following tutorial:
    How to Add Create Elevated Shortcut to New Context Menu in Windows 10

    I have just done so. See below:

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

    Then, go to Task Scheduler Library-->Apps-->Homeautomation.Manager-->Properties-->Trigger.
    Select "At system startup".

    How to auto-start my own .NET app when Windows starts?-task-scheduler.jpg
      My Computer


  9. Posts : 35,545
    Win 10 Pro (21H2) (2nd PC is 21H2)
       #39

    What security program are you running? I'm using Avast, so some Defender features are disabled.
      My Computers


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

    How to auto-start my own .NET app when Windows starts?-task-scheduler-2.jpg

    It works when I manually run the task.
      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 00:09.
Find Us




Windows 10 Forums