0

Is it possible to load DLL located inside the unins000.exe instead of a file system or {app} path?

I want to hide this DLL and load it only while uninstalling.

Thank you

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
David Test
  • 13
  • 1

1 Answers1

0

It's difficult to embed files into the uninstaller (unins000.exe).

But it's possible, see my answer to How keep uninstall files inside uninstaller?


Another way to "hide" the DLL, you can just rename it to some non-obvious extension.

Or to go a step further, pack it for some archive format. You can use Windows .cab format for example. For that you have tools (extract.exe and makecab.exe in all modern versions of Windows (XP and up at least).

Note that no matter what you try, there's no way to prevent the user from accessing the DLL (even if you embed it to the uninstaller). You can only make it hard.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
  • I think a valid reason other than just hiding the DLL, would be that perhaps you want the uninstaller to be self-contained. For instance if the app directory was corrupted and the DLL deleted, as a user you'd not be able to uninstall the remaining files / registry entries. – caesay May 19 '16 at 05:38
  • But the uninstaller is the app directory too. So it would be corrupted too. – Martin Prikryl May 19 '16 at 05:50