ExplorerPatcher icon indicating copy to clipboard operation
ExplorerPatcher copied to clipboard

Update failed - LINK : fatal error LNK1104: cannot open file 'funchook.lib'

Open AideeAmei opened this issue 7 months ago • 12 comments

Before reporting your issue

  • [x] I have confirmed that this issue does not happen when ExplorerPatcher is not installed
  • [ ] I do not have "register as shell extension" enabled
  • [x] I have tried my best to check existing issues

Repro ExplorerPatcher versions

22621.4317.61.1

Repro Windows Versions

Windows 11 24H2 26100.4061 x64

3rd party tweak software installed

Not that I know of - not regarding UI. Only some mouse acceleration and APO equalizer.

Describe the bug

  1. OS starts, ExplorerPatcher update notification prompts. I stop my AV (that would prevent the update completely if enabled) and click on Update.
  2. Console tab opens, executing the update and providing information.
  3. I eat a banana and watch.

Expected outcome

Something like "Update complete".

Actual outcome

There's an error first when building ExplorerPatcher.vcxproj: LINK : fatal error LNK1104: cannot open file 'funchook.lib' [C:\Users\Adam\AppData\Roaming\ExplorerPatcher\ep_make\repo \ExplorerPatcher\ExplorerPatcher.vcxproj]

And then later on the log ends with: "C:\Users\Adam\AppData\Roaming\ExplorerPatcher\ep_make\repo\ExplorerPatcher.sln" (clean;Build target) (1) -> "C:\Users\Adam\AppData\Roaming\ExplorerPatcher\ep_make\repo\ExplorerPatcher\ExplorerPatcher.vcxproj.metaproj" (default target) (14:3) -> "C:\Users\Adam\AppData\Roaming\ExplorerPatcher\ep_make\repo\ExplorerPatcher\ExplorerPatcher.vcxproj" (default target) ( 15:3) -> (Link target) -> LINK : fatal error LNK1104: cannot open file 'funchook.lib' [C:\Users\Adam\AppData\Roaming\ExplorerPatcher\ep_make\re po\ExplorerPatcher\ExplorerPatcher.vcxproj]


There are some warnings along the way that export of symbol should be private, not sure if related.

Additional info

ep_make Build failed.txt

Crash Dumps

No response

Media

No response

AideeAmei avatar May 24 '25 07:05 AideeAmei

Did you also stop windows defender?

pyrates999 avatar May 24 '25 08:05 pyrates999

The same issue. I stopped windows defender but it didn't help.

hypper avatar May 24 '25 22:05 hypper

Add the exclusions to your antivirus: https://github.com/valinet/ExplorerPatcher/releases

Your antivirus will interfere with EP after it is installed.

pyrates999 avatar May 25 '25 00:05 pyrates999

oh you're trying to build it. Go into C:\Users\Adam\AppData\Roaming\ExplorerPatcher\ep_make, and do a search for the file funchook.lib.

pyrates999 avatar May 25 '25 00:05 pyrates999

So i just press "Update program and restart File explorer" And get PS console and see for download repo and build it.

There is no funchook.lib but sources

I've added exclusions to windows defender before and checked it now. It's ok. I stopped defender before update. No result.

hypper avatar May 25 '25 00:05 hypper

Oh, my bad. Now found checked "build locally before install". Unchecked and updated ok

hypper avatar May 25 '25 00:05 hypper

Oh ok. You didn't realize you were trying to build before install. Glad you got it working now.

Please close this then.

pyrates999 avatar May 25 '25 00:05 pyrates999

Thanks for the help. I did not open it :) It was @AideeAmei

hypper avatar May 25 '25 00:05 hypper

Oh, my bad. Now found checked "build locally before install". Unchecked and updated ok

Thanks! I made the same mistake!

EddieFed avatar May 25 '25 22:05 EddieFed

I don't think this option works anymore due to the sources for the taskbar and windows 10 start menu not being included.

pyrates999 avatar May 26 '25 07:05 pyrates999

Interesting. I didn't know about this option. Is it checked by default? I confirm it works without the build.

AideeAmei avatar May 27 '25 08:05 AideeAmei

It should not be checked by default.

pyrates999 avatar May 27 '25 10:05 pyrates999