MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / createExecutableStubForExe

Method createExecutableStubForExe

src/Update/Program.cs:622–636  ·  view source on GitHub ↗
(string fullName)

Source from the content-addressed store, hash-verified

620 }
621
622 async Task createExecutableStubForExe(string fullName)
623 {
624 var exe = Utility.FindHelperExecutable(@"StubExecutable.exe");
625
626 var target = Path.Combine(
627 Path.GetDirectoryName(fullName),
628 Path.GetFileNameWithoutExtension(fullName) + "_ExecutionStub.exe");
629
630 await Utility.CopyToAsync(exe, target);
631
632 await Utility.InvokeProcessAsync(
633 Utility.FindHelperExecutable("WriteZipToSetup.exe"),
634 String.Format("--copy-stub-resources \"{0}\" \"{1}\"", fullName, target),
635 CancellationToken.None);
636 }
637
638 static async Task setPEVersionInfoAndIcon(string exePath, IPackage package, string iconPath = null)
639 {

Callers

nothing calls this directly

Calls 4

FindHelperExecutableMethod · 0.80
CopyToAsyncMethod · 0.80
InvokeProcessAsyncMethod · 0.80
FormatMethod · 0.80

Tested by

no test coverage detected