Skip to content

Commit

Permalink
(GH-296) Enhance installer template
Browse files Browse the repository at this point in the history
Remove deprecated Install-ChocolateyDesktopLink and add other helpers
so folks know they are available. Note that Install-ChocolateyBinFile
should only be used for non-executables so folks have some discovery
that exes are automatically picked up and installed.
  • Loading branch information
ferventcoder committed May 30, 2015
1 parent fd35ab2 commit 899020e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,14 @@ public class ChocolateyInstallTemplate
#Install-ChocolateyPath 'LOCATION_TO_ADD_TO_PATH' 'User_OR_Machine' # Machine will assert administrative rights
# add specific files as shortcuts to the desktop
#$target = Join-Path $toolsDir ""$($packageName).exe""
#Install-ChocolateyDesktopLink $target
# Install-ChocolateyShortcut -shortcutFilePath ""<path>"" -targetPath ""<path>"" [-workDirectory ""C:\"" -arguments ""C:\test.txt"" -iconLocation ""C:\test.ico"" -description ""This is the description""]
# outputs the bitness of the OS (either ""32"" or ""64"")
#$osBitness = Get-ProcessorBits
#Install-ChocolateyEnvironmentVariable -variableName ""SOMEVAR"" -variableValue ""value"" [-variableType = 'Machine' #Defaults to 'User']
#Install-ChocolateyFileAssociation
#Install-BinFile ## only use this for non-exe files - chocolatey will automatically pick up the exe files and shim them automatically
## https://github.com/chocolatey/choco/wiki/CreatePackages#how-do-i-exclude-executables-from-getting-batch-redirects
# PORTABLE EXAMPLE
#$binRoot = Get-BinRoot
Expand Down

0 comments on commit 899020e

Please sign in to comment.