Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows 10, app refuses to start #82

Open
kurktchiev opened this issue Dec 24, 2021 · 4 comments
Open

windows 10, app refuses to start #82

kurktchiev opened this issue Dec 24, 2021 · 4 comments

Comments

@kurktchiev
Copy link

on first run i got the SmartScreen popup asking me if i was sure, which i said I was. I put my ini file in the correct location and started the binary, but nothing comes up in Task Manager. Put it in the startup folder and rebooted for good measure, it is still not starting and no log file is being generated.

@jrr
Copy link
Contributor

jrr commented Dec 24, 2021

Have you tried running it from a command prompt?

@kurktchiev
Copy link
Author

That I have not yet

@stevegore
Copy link

FWIW I have it running by adding it to a Windows batch file, and adding that batch file to the start up folder. Have yet managed to get it to start minimised though so it's not the best.

@LegendaryB
Copy link

FWIW I have it running by adding it to a Windows batch file, and adding that batch file to the start up folder. Have yet managed to get it to start minimised though so it's not the best.

My solution was a launcher.bat + a helper vbs script. Here you go:

hidecmd.vbs
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

launcher.bat
wscript "hidecmd.vbs" "display_switch.exe"

I decided to execute the launcher.bat via registry instead of adding it to the startup folder. At startup the cmd window can be seen for a short time but afterwards its hidden. Maybe 1 second visible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants