Would it be possible to have a .net Custom action running from a temporary file? I need a custom action to use c# code but after it is finished i no longer want the assembly to hang around.
Unfortunately .NET Installer Class Actions cannot use temporary files. However, at the end of the installation you can use a custom action to delete the file. Please note that the User Guide contains the Remove a file or a folder during installation how-to which may help you.