barncastle / Battle.Net-Installer

A tool for installing, updating and repairing Blizzard games through Battle.net.
230 stars 42 forks source link

Opening the app shows command prompt but immediately closes #3

Closed StereopwnZ closed 3 years ago

StereopwnZ commented 3 years ago

I click on it and even if I run it as admin or not the command box shows up for about 1 second then immediately closes. I can't seem to figure out why this is happening.

toannhanb7 commented 3 years ago

@StereopwnZ : you will need to run the app in command line instead of double-click on it. The command is something like bnetinstaller.exe --prod s2 --uid s2_enus --lang enus --dir "C:\Test"

Please read more on the introduction

barncastle commented 3 years ago

As @toannhanb7 said you need to run it from either command line or PowerShell. I've updated the README with some better instructions explaining how to do so. If you continue to have problems feel free to reopen this issue.

StereopwnZ commented 3 years ago

So when I do it that way it tells me BNetinstaller.exe is not a recognized internal or external command, operable program, or batch file.

Update: I never thought of dragging the program to the cmd and using it that way. Got it working lol.

barncastle commented 3 years ago

It sounds like cmd/ps thinks it is a global command rather than an application. You may need to either add quotes around your command and/or prefix it with .\ which should tell it to look for a program e.g. "bnetinstaller.exe" … or .\bnetinstaller.exe ….

Anyway, I'm glad you got it working. I might look at adding some basic wizard at some point in the future if this becomes the defacto tool for installing new Blizzard titles. If anything else crops up, make a new issue and I'll take a look.