Unload a .NET DLL from an unmanaged process

后端 未结 5 738
时光取名叫无心
时光取名叫无心 2020-12-09 16:33

I\'m extending my Inno-Setup script with code that I can best implement in C# in a managed DLL. I already know how to export methods from a managed DLL as functions for use

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 16:59

    You could add a batch script (in the form of running cmd -c) to be executed at the end of setup that waits for the file to be deletable and deletes it. (just make sure to set the inno option to not wait for the cmd process to complete)

    You could also make your installed program detect and delete it on first execution.

提交回复
热议问题