Updating fails

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
peepppeepp6
New User
Posts: 1
Joined: Sat Sep 17, 2022 1:27 pm

Re: Updating fails

Post by peepppeepp6 »

I feel it's missing a folder in that path. With the extra backslash I mean. Could this be the case, or is it just one of those quirky things that you programmer do..?
User avatar
4c3T
Member
Posts: 22
Joined: Sat May 27, 2017 11:10 am

Re: Updating fails

Post by 4c3T »

Wow... Difficult to come up with something of your own?
I first thought it was something wrong with loading the page since I recognized that whole sentence, but I see that you're pulling a Hollywood rehashing old stuff. :roll:
The more, the merrier, but not with people. Those we can do with less of. Save Earth, stop procreating :!:
User avatar
4c3T
Member
Posts: 22
Joined: Sat May 27, 2017 11:10 am

Re: Updating fails

Post by 4c3T »

Hi again. I'm still getting this error on some of my computers. I think it's time to remake this download function.
I got this from the log file (Last lines that was of importance):
21-03-2026 21:45:38.126> Downloading X-Mouse Button Control v2.21 Beta 59...
21-03-2026 21:45:38.445> Unable to download the update package. Please visit the website or try again later. (Error code -2146697208: Det gick inte att hämta den angivna resursen. )
Text in Swedish translates to "Unable to download the specified resource", would suggest "Object not found", or 404, but what's strange is that this works flawless on some of my other machines.
No idea why. Running Windows Server 2022 Datacenter on this, so it could be something related to user rights, but I do run in admin-mode (UAC disabled + various tweaks so that I have pretty much full control), and I use the Administrator account which shouldn't affect anything, but what do I know..? :angel:
The more, the merrier, but not with people. Those we can do with less of. Save Earth, stop procreating :!:
User avatar
phil
Site Admin
Posts: 8030
Joined: Sun Apr 06, 2003 11:12 pm

Re: Updating fails

Post by phil »

Chances are (if its a 404) that one of my download servers was unavailable at the time. Or does this log repeat itself every time you try and download?
Do you get the change notification text saying whats new (as that is served from the same server the download links go though). I run multiple VPS's to host the download (all in the UK) but ALL links do go through a single server (single point of failure I guess) to redirect TO the VPS download sites, so if that was down this might explain it, but then you wouldn't be able to access the forums in that case (I suspect). I really do need to completely revamp my IT infrastructure but I simply haven't got the time to spend on my home/VPS networks at the moment - work is swamping me!

Unrelated, I have added in the most recent beta, extra validation of the downloaded updates in an ever increasing world of continuous cyber threats (but I guess if your running a server in full admin mode with UAC disabled you have been able to isolate yourself from that (or pretend it does not exist lol) but unfortunately I seem to be spending/wasting far too much time on security stuff these days (mostly at work of course) and its a royal pain having to chase everything and lock down to a difficult to use level :(

I simply don't have the time to re-implement the whole thing at the moment (heck, I cant even find time to get XMBC to a releasable standard at the moment), but at the same time I've only ever had one issue reported here - and its your issue. Which either means its very uncommon OR no one else is use the auto-update feature... Maybe I can add some more logging or some retries if the download fails.... Maybe I need to add some more severs - right now there are primarily two, sharing the DNS entries so it will choose one of the two. Maybe I need to revise that somehow and distribute it better (if one fails, try the other, and add a few more backup locations maybe).
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR5,
nVidia RTX 5070TI
User avatar
4c3T
Member
Posts: 22
Joined: Sat May 27, 2017 11:10 am

Re: Updating fails

Post by 4c3T »

I just re-installed v2.21 Beta 40 to test the update function, and I still get the same error as before, error code 2146697208: Unable to download the resource (Again, translation from Swedish).

Maybe you could include IPs as well in case DNS doesn't resolve?
No other mirror-sites you can use and add these to a list. First check each with maybe a ping to check response time and whatnot, and also if it resolves. If not check a list of IPs perhaps?
I know some Linux dists does something similar for package sources and backup-sites.

Any chance that VPN is blocked btw? I forgot to mention this. Not using VPN isn't an option for me since I'm using WireGuard on my router.

Maybe you could provide a direct download link so that any manual upgrades goes a bit quicker, in case everything else fails.

And, for the love of god (or any other deity), could you please make a pop-up window after upgrade/installation instead of starting the web browser?
I dread this every time I'm re-installing or just booted up a PC since I'm usually keep multiple tabs and windows with sites, and this is consuming lots of resources when you don't need it, like when reinstalling Windows.
I do think many would appreciate this as I'm sure I'm not the only one who does this - After all, a while back Firefox added this autostart as a feature (Why I don't understand, especially when there's no options for delay!).
The more, the merrier, but not with people. Those we can do with less of. Save Earth, stop procreating :!:
User avatar
phil
Site Admin
Posts: 8030
Joined: Sun Apr 06, 2003 11:12 pm

Re: Updating fails

Post by phil »

The reason it opens the browser window is to open the URL that counts installations... nothing more... I suppose I might be able to do that another way without using the browser... I will add it to the list to look into. But the web page is there to give useful info and links to the chnage log etc. so Im not sure I want to hide that (and no, I couldn't do it it a popup window from the installer as I dont think the NSIS installer has any way to show a webpage other that by opening it in the browser).

I very much doubt the VPN has any effect -unless somehow its getting caught in a block list on my firewall.. Unlikely as I only tend to block outgoing requires for adblock and such - should not impact incoming HTTP stuff. I can probably add a manual download link/button if the update fails to download... All the download requests, as I say go through a single point of failure on my server here to get the actual URL to do0wnload the latest version from a SQL database here... I suspect thats the problem - so getting the manual link will be just as troublesome (the same as the link I previously sen you - the numbers are the end relate to the actual version requested)

This is the link to the latest beta update installer (x64) always:
https://www.highrez.co.uk/scripts/downl ... atex64Beta

And for a specific version (in this case, also the latest but you get the idea from the numbers are the end)
https://www.highrez.co.uk/scripts/downl ... on=2210059

Again, if those links are working then I don't know why the built in update would fail to get it from there... But I can add retry etc.
Not right now, too much other life and work stuff going on at the moment.

EDIT: Next time you try it and it fails, make a note of the time and let me know - ideally let me know (by PM not here in the forum) your public facing IP too - I can try and check the server logs/firewall logs for errors maybe. Might have to be a little coordinated on that though - so I can maybe watch the live logs as you try it!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR5,
nVidia RTX 5070TI
User avatar
4c3T
Member
Posts: 22
Joined: Sat May 27, 2017 11:10 am

Re: Updating fails

Post by 4c3T »

Both links works on the two computers I tested with. One with direct access to my router with VPN which installs updates with no issues, the other machine trough VPN client, through the router (Note, I do this due to port mapping, as well as an added layer of encryption) also was able to download these two files. This machine is the one that fails updates.

I'll try to remember making a note of the timestamp and such next time it happens. I see this issue from time to time on different machines or installations, so I'm guessing it got something to do with Windows and in which order I have installed and tweaked things perhaps. I always install WinAero Tweaker and run the basic debloat stuff, then I run a .reg-file to disable UAC and give me full admin access (Works on pretty much all Windows, 7 and up. Not sure about 11 since I don't want nor like it), as well as OpenShell Menu and 7+ Taskbar Tweaker to get the menu small, FAST!!!! and not messy (XP-look roxx!). I also disable the Aero-crap so that windows don't "snap-to" or drag & drop doesn't interfere with the auto-maximize crap an such - Basically a very usable Windows, and 3 monitors with plenty of area of view.


Btw, I haven't been tinkering much with Visual Studio in the past few years, but I did in early Y2k a bit, and I was into Visual BASIC a bit, and I do remember that you could run simple HTML in like a frame or whatever that was, and this used the built-in Internet Explorer at the time, and I would venture a guess that these might be some similar feature in modern versions that uses something similar? I have no idea, but I know Visual Studio is a large bag of cool tricks and there are many possibilities to make amazing stuff. Not sure where I was going with that as you're probably more familiar with that stuff than I am...
The more, the merrier, but not with people. Those we can do with less of. Save Earth, stop procreating :!: