Skip to content

Commit 655bf02

Browse files
author
Robin Stolpe
committed
Fixed issue with uninstall version
1 parent 6c2fa6c commit 655bf02

10 files changed

Lines changed: 41 additions & 533 deletions

.src/Public/Function/Uninstall-RSModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
foreach ($m in $Module.Split()) {
5656
Write-Verbose "Collecting all installed version of the module $($m)"
57-
$GetAllInstalledVersions = Get-InstalledModule -Name $m -AllVersions | Sort-Object PublishedDate -Descending
57+
$GetAllInstalledVersions = Get-InstalledModule -Name $m -AllVersions | Sort-Object Version -Descending
5858

5959
# If the module has more then one version loop trough the versions and only keep the most current one
6060
if ($GetAllInstalledVersions.Count -gt 1) {

Help/Uninstall-RSModule.md

Lines changed: 0 additions & 87 deletions
This file was deleted.

Help/Update-RSModule.md

Lines changed: 0 additions & 148 deletions
This file was deleted.

MaintainModule/MaintainModule.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919
# Generated by: Robin Stolpe
2020
#
21-
# Generated on: 2022-11-29
21+
# Generated on: 2022-11-30
2222
#
2323

2424
@{
@@ -27,7 +27,7 @@
2727
RootModule = '.\MaintainModule.psm1'
2828

2929
# Version number of this module.
30-
ModuleVersion = '1.0.0'
30+
ModuleVersion = '1.0.1'
3131

3232
# Supported PSEditions
3333
# CompatiblePSEditions = @()
@@ -84,7 +84,7 @@
8484
# NestedModules = @()
8585

8686
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
87-
FunctionsToExport = "Uninstall-RSModule", "Update-RSModule"
87+
FunctionsToExport = "Uninstall-RSModule.ps1", "Update-RSModule.ps1"
8888

8989
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
9090
CmdletsToExport = @()

0 commit comments

Comments
 (0)