1

I need to test a scenario where an uninstaller encounters an error while trying to delete a file.

The problem is that it's a shortcut, a .lnk file (located in the %AppData%\Microsoft\Windows\SendTo folder).
I can't achieve what I need through changing rights, because the uninstaller runs elevated and it always has rights to delete it.

Is there any tool which can simply "hold the file busy", so that the uninstaller process cannot delete it ? (eg: the way you can't delete an .mp3 while it's playing in winamp... ).

Thanks.

Serban
  • 143
  • 7
  • Did not test this, but see the answer by "marsh-wiggle": ( https://superuser.com/questions/294826/how-to-purposefully-exclusively-lock-a-file ) – Yorik Jul 12 '23 at 14:28
  • Not the officially accepted answer, but another wone from below DOES answer my question:https://superuser.com/a/857831/1232234. Thanks. – Serban Jul 12 '23 at 15:02

0 Answers0