TranslucentTB / TranslucentTB

A lightweight utility that makes the Windows taskbar translucent/transparent.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: TranslucentTB Fatal Error - 0x80070003

Venus642 opened this issue · comments

Please check for a duplicate first

  • I have checked the issue tracker if my bug has already been fixed or answered in another (possibly closed) issue.

Steps to reproduce the issue

error

Expected results

I updated under Windows 2023.1 to 2023.2 with "TranslucentTB-portable-x64.zip"
and get this error message when windows starts:
Failed to copy ExplorerHooks.dll
0x80070003: The system cannot find the specified path.

Actual results

Where is the entry ExplorerHooks.dll made?
As soon as Windows starts, the error message appears. How can the problem be fixed? The previous version ran fine.

Windows version

Windows 11 SV2 (builds 22621-22622)

Other details

No response

Relevant log output

No response

The file gets copied to the temporary folder. Does yours exist?

No, the file is not copied to the temporary folder when Windows starts.
Folder TranslucentTB is created but the files
"ExplorerHooks.dll" and "ExplorerTAP.dll" are only created when you start the program manually.
[critical] [loadabledll.cpp:51] Failed to copy ExplorerHooks.dll (0x80070003: Das System kann den angegebenen Pfad nicht finden.)

When you create a batch under
... \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
with copy the files to tmp folder that doesn't work
because the error window error message comes first.

You extracted the entire ZIP file that TTB comes in, right?

Yes.
extracted

commented

I'm having the same issue
image

It's a 2023.2 problem. Downgrade to 2023.1 and you have not the problem more..

commented

It's a 2023.2 problem. Downgrade to 2023.1 and you have not the problem more..

@Venus642 Yes, I've rolled back to 2023.1

@sylveon I know the problem is

std::filesystem::copy_file(dllPath, tempDllPath, std::filesystem::copy_options::update_existing, err);

The folder %temp%/TranslucentTB does not necessarily exist on the computer, so the API should be called first to create it.
But I don't know how to fix it because I'm not a C++ programmer.

Good catch. Creating that directory should work as a workaround. The fix is relatively easy.

No. Creating the directory in the tmp directory and inserting the two .dll doesn't help. Especially not if the tmp directory is on a RAM drive. It only works properly with 2023.1

commented

When you create a batch under
... \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
with copy the files to tmp folder that doesn't work
because the error window error message comes first.

Are you copying files using this method? Creating a startup item in the Startup folder does not guarantee that it will run before TranslucentTB starts (Windows Task Scheduler may be possible). This is different from directly creating a folder in the program.

I'm having the same exact problem and would love to know what the problem might be and how to fix it

how to roll back to 2023.1

Fixed in 2024.1

image using version 2024.1, is it a same problem?