aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/AssignMediaCommand.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/AssignMediaCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/AssignMediaCommand.cs
index b75956b4..773b3225 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/AssignMediaCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/AssignMediaCommand.cs
@@ -59,6 +59,18 @@ namespace WixToolset.Core.WindowsInstaller.Bind
59 throw new WixException(ErrorMessages.MediaTableCollision(null)); 59 throw new WixException(ErrorMessages.MediaTableCollision(null));
60 } 60 }
61 61
62 // If neither tuple is authored, default to a media template.
63 if (SectionType.Product == this.Section.Type && mediaTemplateTuples.Count == 0 && mediaTuples.Count == 0)
64 {
65 var mediaTemplate = new WixMediaTemplateTuple()
66 {
67 CabinetTemplate = "cab{0}.cab",
68 };
69
70 this.Section.AddTuple(mediaTemplate);
71 mediaTemplateTuples.Add(mediaTemplate);
72 }
73
62 // When building merge module, all the files go to "#MergeModule.CABinet". 74 // When building merge module, all the files go to "#MergeModule.CABinet".
63 if (SectionType.Module == this.Section.Type) 75 if (SectionType.Module == this.Section.Type)
64 { 76 {