We have a .NET application that will be distributed via a USB drive. End users will mount the drive and double-click on the EXE (.NET exe) to start it WITHOUT installing it.
Now the problem is that if .NET is not installed, we would like to run the .NET installer, rather than displaying the default boot message that MS installed there. The installer will be distributed with the application via USB.
One way to do this could be by replacing the PE stub in the .NET executable. But I donβt see the / STUB switch in the C # compiler (although it had C compilers).
What else can you think of?
Update: thanks to Tim Robinson, I understand that Windows does not handle the PE stub. Therefore, the ClickOnce solution seems the only viable. I will check ClickOnce.
source share