diff options
Diffstat (limited to 'src/WixToolset.Core/Compiler_2.cs')
-rw-r--r-- | src/WixToolset.Core/Compiler_2.cs | 55 |
1 files changed, 2 insertions, 53 deletions
diff --git a/src/WixToolset.Core/Compiler_2.cs b/src/WixToolset.Core/Compiler_2.cs index beebd4f8..9e965465 100644 --- a/src/WixToolset.Core/Compiler_2.cs +++ b/src/WixToolset.Core/Compiler_2.cs | |||
@@ -4401,7 +4401,8 @@ namespace WixToolset.Core | |||
4401 | var tuple = new ShortcutTuple(sourceLineNumbers, id) | 4401 | var tuple = new ShortcutTuple(sourceLineNumbers, id) |
4402 | { | 4402 | { |
4403 | DirectoryRef = directory, | 4403 | DirectoryRef = directory, |
4404 | Name = this.GetMsiFilenameValue(shortName, name), | 4404 | Name = name, |
4405 | ShortName = shortName, | ||
4405 | ComponentRef = componentId, | 4406 | ComponentRef = componentId, |
4406 | Target = target, | 4407 | Target = target, |
4407 | Arguments = arguments, | 4408 | Arguments = arguments, |
@@ -4418,58 +4419,6 @@ namespace WixToolset.Core | |||
4418 | }; | 4419 | }; |
4419 | 4420 | ||
4420 | this.Core.AddTuple(tuple); | 4421 | this.Core.AddTuple(tuple); |
4421 | |||
4422 | //var row = this.Core.CreateRow(sourceLineNumbers, TupleDefinitionType.Shortcut, id); | ||
4423 | //row.Set(1, directory); | ||
4424 | //row.Set(2, this.GetMsiFilenameValue(shortName, name)); | ||
4425 | //row.Set(3, componentId); | ||
4426 | //if (advertise) | ||
4427 | //{ | ||
4428 | // if (YesNoType.Yes != parentKeyPath && "Component" != parentElementLocalName) | ||
4429 | // { | ||
4430 | // this.Core.Write(WarningMessages.UnclearShortcut(sourceLineNumbers, id.Id, componentId, defaultTarget)); | ||
4431 | // } | ||
4432 | // row.Set(4, Guid.Empty.ToString("B")); | ||
4433 | //} | ||
4434 | //else if (null != target) | ||
4435 | //{ | ||
4436 | // row.Set(4, target); | ||
4437 | //} | ||
4438 | //else if ("Component" == parentElementLocalName || "CreateFolder" == parentElementLocalName) | ||
4439 | //{ | ||
4440 | // row.Set(4, String.Format(CultureInfo.InvariantCulture, "[{0}]", defaultTarget)); | ||
4441 | //} | ||
4442 | //else if ("File" == parentElementLocalName) | ||
4443 | //{ | ||
4444 | // row.Set(4, String.Format(CultureInfo.InvariantCulture, "[#{0}]", defaultTarget)); | ||
4445 | //} | ||
4446 | //row.Set(5, arguments); | ||
4447 | //row.Set(6, description); | ||
4448 | //if (CompilerConstants.IntegerNotSet != hotkey) | ||
4449 | //{ | ||
4450 | // row.Set(7, hotkey); | ||
4451 | //} | ||
4452 | //row.Set(8, icon); | ||
4453 | //if (CompilerConstants.IntegerNotSet != iconIndex) | ||
4454 | //{ | ||
4455 | // row.Set(9, iconIndex); | ||
4456 | //} | ||
4457 | |||
4458 | //if (show.HasValue) | ||
4459 | //{ | ||
4460 | // row.Set(10, show.Value); | ||
4461 | //} | ||
4462 | //row.Set(11, workingDirectory); | ||
4463 | //row.Set(12, displayResourceDll); | ||
4464 | //if (CompilerConstants.IntegerNotSet != displayResourceId) | ||
4465 | //{ | ||
4466 | // row.Set(13, displayResourceId); | ||
4467 | //} | ||
4468 | //row.Set(14, descriptionResourceDll); | ||
4469 | //if (CompilerConstants.IntegerNotSet != descriptionResourceId) | ||
4470 | //{ | ||
4471 | // row.Set(15, descriptionResourceId); | ||
4472 | //} | ||
4473 | } | 4422 | } |
4474 | } | 4423 | } |
4475 | 4424 | ||