From 2a0f42a065a77d1c505ee92da833ebf279e9c15a Mon Sep 17 00:00:00 2001 From: Stephen Valdinger Date: Tue, 12 Feb 2019 13:10:30 -0500 Subject: [PATCH 1/2] (GH-1234) Fix typo in Parameter definition This is a small fix to the Parameter definition of Install-ChocolateyShortcut.ps1. This aligns $WorkingDirectory to be the same name in the Comment Based Help and Param() block. This will also fix the upstream documentation for the command on chocolatey.org. --- .../helpers/functions/Install-ChocolateyShortcut.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 b/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 index c97a8e677b..5fa4033727 100644 --- a/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 +++ b/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 @@ -1,4 +1,4 @@ -# Copyright © 2017 Chocolatey Software, Inc. +# Copyright © 2017 Chocolatey Software, Inc. # Copyright © 2015 - 2017 RealDimensions Software, LLC # Copyright © 2011 - 2015 RealDimensions Software, LLC & original authors/contributors from https://github.com/chocolatey/chocolatey # @@ -89,7 +89,7 @@ Install-ChocolateyShortcut -ShortcutFilePath "C:\test.lnk" -TargetPath "C:\test. Install-ChocolateyShortcut ` -ShortcutFilePath "C:\notepad.lnk" ` -TargetPath "C:\Windows\System32\notepad.exe" ` - -WorkDirectory "C:\" ` + -WorkingDirectory "C:\" ` -Arguments "C:\test.txt" ` -IconLocation "C:\test.ico" ` -Description "This is the description" From 6cc246eb3d71d8f01e4a6f5e608fc836348ad19e Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Mon, 4 Mar 2019 14:21:17 +0000 Subject: [PATCH 2/2] (maint) Corrected whitespace --- .../helpers/functions/Install-ChocolateyShortcut.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 b/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 index 5fa4033727..446eb516f3 100644 --- a/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 +++ b/src/chocolatey.resources/helpers/functions/Install-ChocolateyShortcut.ps1 @@ -1,4 +1,4 @@ -# Copyright © 2017 Chocolatey Software, Inc. +# Copyright © 2017 Chocolatey Software, Inc. # Copyright © 2015 - 2017 RealDimensions Software, LLC # Copyright © 2011 - 2015 RealDimensions Software, LLC & original authors/contributors from https://github.com/chocolatey/chocolatey # @@ -57,7 +57,7 @@ shortcut. OPTIONAL - A text description to be associated with the new description. .PARAMETER WindowStyle -OPTIONAL - Type of windows target application should open with. +OPTIONAL - Type of windows target application should open with. Available in 0.9.10+. 0 = Hidden, 1 = Normal Size, 3 = Maximized, 7 - Minimized. Full list table 3.9 here: https://technet.microsoft.com/en-us/library/ee156605.aspx