(string fullName)
| 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 | { |
nothing calls this directly
no test coverage detected