TCNOco / TcNo-Acc-Switcher

A Super-fast account switcher for Steam, Battle.net, Epic Games, Origin, Riot, Ubisoft and many others!
GNU General Public License v3.0
1.8k stars 121 forks source link

Can't install #45

Closed Vic2077 closed 3 years ago

Vic2077 commented 3 years ago

When it comes to installing WebView2 it says that "Installator's archive is damaged or invalid. Download Microsoft Edge once again.", or something like that, then downloads the new one and says the same. I can't proceed past this step. =(

Vic2077 commented 3 years ago

QIP Shot - Screen 00011991 05 07 21 05-47-34

TCNOco commented 3 years ago

I've never seen this before... You can find WebView 2 downloads on Microsoft from here: https://developer.microsoft.com/en-us/microsoft-edge/webview2/

The version the program links to is the "Evergreen Bootstrapper", the option to the far left. It's a small file that downloads the rest of the files. Try downloading the "Evergreen Standalone Installer", x64. The link right next to it. Else, try the latest "Fixed Version". At the time of writing is 91.0.864.64 .

Let me know if that fixes your issue.

Vic2077 commented 3 years ago

"Evergreen Standalone Installer", x64 also gives an error message: "The Installer was unable to unpack the archive. Download Microsoft Edge once again." QIP Shot - Screen 00012008 06 07 21 08-42-34

Vic2077 commented 3 years ago

The "Fixed Version" 91.0.864.64 is some sort of .cab file. Where do I put or how do I open that?

Vic2077 commented 3 years ago

By the way, the original MicrosoftEdgeWebview2Setup.exe is working differently today: the window does some operations for some time, and then automatically disappears without any error or successful completion messages. But the program itself is still just a black rectangle with nothing on it (although, the mouse cursorchanges to a "hand" when I hover it over certain areas of that rectangle, indicating that there should probably be some active elements of the program in those areas, which are not being drawn properly.

QIP Shot - Screen 00012007 06 07 21 08-35-12

Is this app even supposed to work on Windows 7 x64?

TCNOco commented 3 years ago

According to Microsoft's Supported Platforms list, Windows 7 support is listed, or at least for "the same support cycle as Microsoft Edge... Which says they will support Edge on Windows 7 until January 15, 2021. Info here.

So yes, it should be supported.

Unfortunately, this software isn't made or maintained by me, it's Microsoft doing that... The most active 'bug report' page I can find is this WebView2 Feedback page. Searching for Windows 7 shows some results. one looking promising, but seems unrelated.

I installed Windows 7 x64 onto a virtual machine, and it installed just fine. Everything installed as it does on Windows 10... However, when it runs, it opens the same blank window as you see. The WebView2 is only partially working. You can right-click and interact with the page, but it's completely blank. Why? I have no idea... This program does only officially support Windows 10+, but I'd like to get it working with 7 as well, as some people still use it.

From what I've found, to install .CAB files:

  1. Open Command Prompt as Administrator
  2. Enter: dism /online /add-package /packagepath:"<PUT-CAB-FILE-PATH-HERE>", substituting that last bit for the .cab's path. For example: `dism /online /add-package /packagepath:"C:\Users\TCNO\Downloads\Edge.cab".

Let me know if installing from the 'fixed version's CAB file works properly, or if you make other progress.

-- The ...Server.exe file usually opens and you can use the program in a browser, but since I needed to adjust some settings it has stopped working that way. In the next update coming soon, you should be able to run the server again and use it from a browser for now at least.

Vic2077 commented 3 years ago

Okay, I've tried to install the "fixed version" .cab. It has also failed to install. dism.log

I guess I'll have to wait for the next update and use the browser version then...

Also, can the program be used through some .bat files or something like that? So I could just input my accounts login data in some cfg files, and switch between them by runing some .bat files or something like that?

TCNOco commented 3 years ago

You can use the CLI to change accounts through the command line... But I have no idea if it'll work without launching the actual program.

That update I mentioned should be out now, so just download the latest version from GitHub and install it. You can then run TcNo-Acc-Switcher-Server.exe and use the program through the URL listed in that window, usually something along the lines of localhost:5000. I'm not sure how much of the program will work through a browser. Changing icons through the Right-Click menu shouldn't work, and small things like that.

Unfortunately with not being able to install WebView2... It's a Microsoft product and I'm not able to help... This (https://github.com/MicrosoftEdge/WebView2Feedback/issues) seems to be Microsoft's official support hub for everything WebView2, so you'd likely find an answer here posting as much info as possible. Just failing to install WebView2. Most of everything seems to get an answer after a few days.

Vic2077 commented 3 years ago

Thanks. Well, I'll try that, but if it won't work, I guess I'll just give up on this program and search for alternatives that will work, or just resort back to using ASF, diffrent Chrome profiles for each of my Steam accounts and manual relogging in the Steam Client (if needed), until I'll get a new SSD and nstall a fresh copy of Win10 on it. My OS is very old and a lot of things is already broken it it (especially Microsoft-related stuff) so it needs a re-installation for a long time already, anyway... And, well, I guess this program is just one of the things that don't work properly in it...

Vic2077 commented 3 years ago

Where that localhost address should be shown? TcNo-Acc-Switcher-Server.exe closes right after startup with no warnings or anything. (cmd window pops up for a split second, then disappears, and nothing else hapens, after I doubleclick the .exe)

TCNOco commented 3 years ago

Then it's still broken. Make sure you've downloaded a fresh copy of the program from this GitHub. It should look like this image

Try typing CMD into the folder path, and hit Enter image

Type TcNo-Acc-Switcher-Server.exe, the same as the program and hit Enter to make sure it doesn't disappear immediately. image

You should then either see it work or hopefully an error message you can copy/paste into this thread.

Vic2077 commented 3 years ago

Nothing happens: QIP Shot - Screen 00012103 14 07 21 12-54-16

TCNOco commented 3 years ago

:/ alright... It seems like this program only really works on Windows 10 for now. I'll try and improve Windows 7 compatibility. If anyone has anything to add, I'm all ears.

TCNOco commented 3 years ago

Got a response on the aforementioned thread I posted with Microsoft... More info is needed.

Hit Start+R, type dxdiag and hit enter. This brings up some system info (after some time). Screenshot the System tab, as well as Display 1, and send them here. If any of the other Display tabs show a different graphics card, screenshot those too

Vic2077 commented 3 years ago

QIP Shot - Screen 00012468 21 07 21 20-11-14 QIP Shot - Screen 00012469 21 07 21 20-11-23 QIP Shot - Screen 00012470 21 07 21 20-11-31

TCNOco commented 3 years ago

@Vic2077 I have almost finished the CEF alternative browser for the account switcher - fixing the "empty screen issue". Do download the test version from here: https://tcno.co/Projects/AccSwitcher/CEFTemp/TcNo-Acc-Switcher-CEFBeta.7z

Short version: Please run it 3 times, on the third error it downloads some missing files, and should launch again with a different 'browser', and should work properly. Let me know if you have any luck with this.

Long version: Extract and run it from any folder, and let me know if it works any better. It should be fine. The screen will be blank on the first launch, and an error should show saying "download WebView" - Click cancel. It creates a file called WebViewNotInstalled in the install directory. The second launch shows the error again, allowing users who missed the original WebView download to use it normally now. If WebView doesn't work - which it doesn't for you: Click Cancel and launch again. This time the updater should start after clicking OK (a different error will show saying it will now download CEF). The updater should start and download, then extract a file.

This file is downloaded: https://tcno.co/Projects/AccSwitcher/updates/CEF.7z, then extracted into TcNo-Acc-Switcher\runtimes\win-x64\native. AND %AppData%\TcNo Account Switcher\WindowSettings.json is edited to include the line: "ActiveBrowser": "CEF", instead of "ActiveBrowser": "WebView" (also newly added with this new update).

(View updated code here: https://github.com/TcNobo/TcNo-Acc-Switcher/tree/CEF)

Vic2077 commented 3 years ago

Hi. How do I run it? Double clicking TcNo-Acc-Switcher.exe does nothing (I even don't see any related activity in the Task Manager).

сб, 6 нояб. 2021 г. в 18:16, Wesley Pyburn (TechNobo) < @.***>:

@Vic2077 https://github.com/Vic2077 I have almost finished the CEF alternative browser for the account switcher - fixing the "empty screen issue". Do download the test version from here: https://tcno.co/Projects/AccSwitcher/CEFTemp/TcNo-Acc-Switcher-CEFBeta.7z

Short version: Please run it 3 times, on the third error it downloads some missing files, and should launch again with a different 'browser', and should work properly. Let me know if you have any luck with this.

Long version: Extract and run it from any folder, and let me know if it works any better. It should be fine. The screen will be blank on the first launch, and an error should show saying "download WebView" - Click cancel. It creates a file called WebViewNotInstalled in the install directory. The second launch shows the error again, allowing users who missed the original WebView download to use it normally now. If WebView doesn't work - which it doesn't for you: Click Cancel and launch again. This time the updater should start after clicking OK (a different error will show saying it will now download CEF). The updater should start and download, then extract a file.

This file is downloaded: https://tcno.co/Projects/AccSwitcher/updates/CEF.7z, then extracted into TcNo-Acc-Switcher\runtimes\win-x64\native. AND %AppDaata%\TcNo Account Switcher\WindowSettings.json is edited to include the line: "ActiveBrowser": "CEF", instead of "ActiveBrowser": "WebView" (also newly added with this new update).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TcNobo/TcNo-Acc-Switcher/issues/45#issuecomment-962466202, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFLEMNAXSIGIG3YE4KXTVDTUKVBF5ANCNFSM47Z2VC4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

TCNOco commented 3 years ago

A quick workaround for not being able to open it at all, if you're struggling (and assuming you have all requirements installed - don't worry about WebView2). Open the Updater folder, wherever you extracted it to.

  1. Click at the top (here): image
  2. type TcNo-Acc-Switcher-Updater.exe downloadCEF, and hit enter.
  3. Start+R and type %AppData%\TcNo Account Switcher, then hit Enter.
  4. Create a new file called WindowSettings.json, open it with Notepad, then enter: {"ActiveBrowser": "CEF"} and save it.
  5. Run TcNo-Acc-Switcher.exe

Let me know if things work. [Required runtimes: .NET 5 Desktop Runtime & ASP.NET Core 5]

Vic2077 commented 3 years ago

2 and #5 gave me this:

[image: QIP Shot - Screen 00014079 06.11.21 20-16-03.png] %AppData%\TcNo Account already had WindowSettings.json in it

{ "WindowsAccent": false, "StreamerModeEnabled": true, "ServerPort": 38604, "WindowSize": "800, 450", "Version": "2021-07-01_00", "DisabledPlatforms": [], "TrayMinimizeNotExit": false, "ActiveTheme": "Dracula_Cyan", "ActiveBrowser": "WebView", "Language": "", "ShownMinimizedNotification": false, "StartCentered": false }

I've renamed it before doing #4

сб, 6 нояб. 2021 г. в 19:49, Wesley Pyburn (TechNobo) < @.***>:

Alright. Quick workaround. Open the Updater folder, wherever you extracted it to.

  1. Click at the top (here): [image: image] https://user-images.githubusercontent.com/10319195/140617278-59a3a278-cd15-497d-ad2a-6c79dd083a96.png
  2. type TcNo-Acc-Switcher-Updater.exe downloadCEF, and hit enter.
  3. Start+R and type %AppData%\TcNo Account Switcher, then hit Enter.
  4. Create a new file called WindowSettings.json, open it with Notepad, then enter: {"ActiveBrowser": "CEF"} and save it.
  5. Run TcNo-Acc-Switcher.exe

Let me know if things work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TcNobo/TcNo-Acc-Switcher/issues/45#issuecomment-962478237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFLEMNEXYIPPABCZF3ZD2WTUKVMBLANCNFSM47Z2VC4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

TCNOco commented 3 years ago

The screenshot didn't upload properly :/ However you can just edit the line "ActiveBrowser": "WebView" to be "ActiveBrowser": "CEF"

TCNOco commented 3 years ago

Ah yes, sorry. it's not working because it's missing new theme files -- Working on an update for that too. Download and extract this .7z into %AppData%\TcNo Account Switcher\. It has a themes folder in it, with the missing files in it. https://tcno.co/Projects/AccSwitcher/CEFTemp/AppData.7z

It also has the WindowSettings.json file in it.

Vic2077 commented 3 years ago

Okay, I guess it worked. The app started and detected my main Steam account that I was logged in with at the moment, but when I'm trying to add more accounts to the app or to log in to Steam with my main account that is already in the app using the app, my Steam client seems to get some kind of problem connecting to the servers or something, because it can't open my Profile or Librabry. [image: QIP Shot - Screen 00014084 06.11.21 21-12-38.png]

сб, 6 нояб. 2021 г. в 20:36, Wesley Pyburn (TechNobo) < @.***>:

Ah yes, sorry. it's not working because it's missing new theme files -- Working on an update for that too. Download and extract this .7z into %AppData%\TcNo Account Switcher\WindowSettings.json. It has a themes folder in it, with the missing files in it. https://tcno.co/Projects/AccSwitcher/CEFTemp/AppData.7z

It also has the WindowSettings.json file in it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TcNobo/TcNo-Acc-Switcher/issues/45#issuecomment-962484779, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFLEMNCFBYFQGBK4EEPCOJTUKVRTPANCNFSM47Z2VC4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

TCNOco commented 3 years ago

Alright, this is now fully released with update 2021-11-20_00. Download here: https://github.com/TcNobo/TcNo-Acc-Switcher/releases/tag/2021-11-20_00

I'm closing this issue as if you're getting a blue screen on launch, simply click Yes when prompted if you want to use CEF ~ Or, if you're not prompted: