Packaging Script as Exe: Single Executable?

For the Packaging Script as Exe feature, would it be possible to bundle the appconfig and statically linked DLLs into the one executable, perhaps using something like ILMerge?

This would be useful for creating a single executable for use by very unskilled end-users.

We are looking at doing something like that using the single-file publishing for .NET but the PowerShell SDK has some issues running within the single-file executable. I hope some of this is resolved in the .NET 6.0 release or a future version of the PS SDK.

That said, it would be possible to use other tools to do this as well. I’ll open a feature request for this so we can do some research.

1 Like

@adam May I suggest GitHub - Systemcluster/wrappe: Packer to create self-contained single-binary applications from executables and directory trees ?

1 Like

Reminds me of: GitHub - dgiagio/warp: Create self-contained single binary applications

I’ll take a look.

The ‘wrappe’ is based on the ‘warp’ but it has more features and the author still works on it.

1 Like