Skip to content

Commit

Permalink
Moved module to Program Files #15
Browse files Browse the repository at this point in the history
  • Loading branch information
majkinetor committed Aug 29, 2016
1 parent c1ab755 commit 25425c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion au/au.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Powershell module AU implements functions that can be used to automate Chocolate
- Send full command output to specified email in the case of errors.
</description>
<projectUrl>https://github.com/majkinetor/au</projectUrl>
<tags>powershell module package</tags>
<tags>admin powershell module package</tags>
<copyright>Miodrag Milić</copyright>
<licenseUrl>https://opensource.org/licenses/MIT</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
2 changes: 1 addition & 1 deletion au/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $packageArgs = @{
Install-ChocolateyZipPackage @packageArgs

$module_src = gi $toolsPath\au*
$module_dst = "$Env:UserProfile\Documents\WindowsPowerShell\Modules\$packageName\$Env:ChocolateyPackageVersion"
$module_dst = "$Env:ProgramFiles\WindowsPowerShell\Modules\$packageName\$Env:ChocolateyPackageVersion"
mkdir -force $module_dst | out-null
mv -force $module_src\* $module_dst
rm $module_src
2 changes: 1 addition & 1 deletion au/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ErrorActionPreference = 'Stop'

Write-Host "Uninstalling module au"
$module_dst = "$Env:UserProfile\Documents\WindowsPowerShell\Modules\$packageName\$Env:ChocolateyPackageVersion"
$module_dst = "$Env:ProgramFiles\WindowsPowerShell\Modules\$packageName\$Env:ChocolateyPackageVersion"
rm -force -recurse $module_dst

0 comments on commit 25425c3

Please sign in to comment.