rgriebl / brickstore

An offline BrickLink inventory management tool.
https://www.brickstore.dev/
GNU General Public License v3.0
110 stars 27 forks source link

Code 0x80070005 #803

Closed TheLittleBrickShop closed 5 months ago

TheLittleBrickShop commented 5 months ago

Describe the bug I seem to have this issue every time there is an update. It results in me having to re download the program from scratch. When you initially install BrickStore, you have to run it as an administrator and it installs just fine. BrickStore occasionally has updates. These pop up as a notification with the option to install. It doesn't give me the option to run the install as an administrator so always comes up with an error message meaning the installation/update is never successful. It removes the BrickStore shortcut from my desktop and is impossible to then find the program when searching for it. What can I do to prevent this from happening and authorising the updates as an administrator?

Screenshots 20240110_093629

System information

BrickStore 2024.1.2 (build: 1143)

Additional context Add any other context about the problem here. You can also attach BSX files, but GitHub only accepts these if added to a ZIP file first.

rgriebl commented 5 months ago

Your windows installation is broken and the installer cannot create an entry in the start menu. There is nothing I can do on BrickStore's side to fix or circumvent that. Short of reinstalling Windows, your best bet is to google for IPersistFile::Save failed 0x80070005 and see what comes up.

rgriebl commented 5 months ago

Also: "When you initially install BrickStore, you have to run it as an administrator and it installs just fine. " Why do you have to run it as admin?

TheLittleBrickShop commented 5 months ago

Thanks for your quick reply. Having Googled it as you suggested, I think it may be the anti virus software creating the 'save failed' error. The right click and 'running as an administrator'. that's actually in your installation instructions :)

image
rgriebl commented 5 months ago

It's in the instructions, but with the caveat "this shouldn't happen" :) I think the IPersist failure when installing updates is just a result of installing BrickStore as admin in the first place (the start menu entry is created with admin privileges, so the normal updater is not allowed to overwrite it). The actual real problem on your machine is the need to install BS as admin in the first place. I can't help you with that, as I cannot reproduce it. I just had a few bug reports over the years and that's why I added that paragraph to the installation instructions. Please let me know if you can figure something out!

TheLittleBrickShop commented 5 months ago

If I don't use the option to run as an administrator, these are the various warnings I get until the fatal Save Fail :)

Error 1 Error 2 Error 3 Error 4 Error 5