diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-22 23:09:30 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-23 02:10:31 -0700 |
| commit | f18b96045088d6d989e70df19343a99092685e5e (patch) | |
| tree | 61e2ba55fe4c0c66fcb811412b89cfbb2f532398 /src/WixToolset.Core.WindowsInstaller/Bind | |
| parent | 06e86dadb969ad1d337db11956814a1f79bbcd02 (diff) | |
| download | wix-f18b96045088d6d989e70df19343a99092685e5e.tar.gz wix-f18b96045088d6d989e70df19343a99092685e5e.tar.bz2 wix-f18b96045088d6d989e70df19343a99092685e5e.zip | |
Move CustomAction script inner text to ScriptFile attribute
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | 4 | ||||
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/UpdateFromTextFilesCommand.cs (renamed from src/WixToolset.Core.WindowsInstaller/Bind/UpdateControlTextCommand.cs) | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs index da92be69..ea6d49a0 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/BindDatabaseCommand.cs | |||
| @@ -347,9 +347,9 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 347 | command.Execute(); | 347 | command.Execute(); |
| 348 | } | 348 | } |
| 349 | 349 | ||
| 350 | // Update control text from files on disk. | 350 | // Update tuples that reference text files on disk. |
| 351 | { | 351 | { |
| 352 | var command = new UpdateControlTextCommand(this.Messaging, section); | 352 | var command = new UpdateFromTextFilesCommand(this.Messaging, section); |
| 353 | command.Execute(); | 353 | command.Execute(); |
| 354 | } | 354 | } |
| 355 | 355 | ||
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateControlTextCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateFromTextFilesCommand.cs index 104a3a37..4d09ff6b 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateControlTextCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateFromTextFilesCommand.cs | |||
| @@ -9,9 +9,9 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 9 | using WixToolset.Data.Tuples; | 9 | using WixToolset.Data.Tuples; |
| 10 | using WixToolset.Extensibility.Services; | 10 | using WixToolset.Extensibility.Services; |
| 11 | 11 | ||
| 12 | internal class UpdateControlTextCommand | 12 | internal class UpdateFromTextFilesCommand |
| 13 | { | 13 | { |
| 14 | public UpdateControlTextCommand(IMessaging messaging, IntermediateSection section) | 14 | public UpdateFromTextFilesCommand(IMessaging messaging, IntermediateSection section) |
| 15 | { | 15 | { |
| 16 | this.Messaging = messaging; | 16 | this.Messaging = messaging; |
| 17 | this.Section = section; | 17 | this.Section = section; |
| @@ -32,6 +32,11 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 32 | { | 32 | { |
| 33 | control.Text = this.ReadTextFile(control.SourceLineNumbers, control.SourceFile.Path); | 33 | control.Text = this.ReadTextFile(control.SourceLineNumbers, control.SourceFile.Path); |
| 34 | } | 34 | } |
| 35 | |||
| 36 | foreach (var customAction in this.Section.Tuples.OfType<CustomActionTuple>().Where(c => c.ScriptFile != null)) | ||
| 37 | { | ||
| 38 | customAction.Target = this.ReadTextFile(customAction.SourceLineNumbers, customAction.ScriptFile.Path); | ||
| 39 | } | ||
| 35 | } | 40 | } |
| 36 | 41 | ||
| 37 | /// <summary> | 42 | /// <summary> |
