diff --git a/Changelog.md b/Changelog.md index 1c7357c..aac0924 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,9 @@ # Change Log for PSReleaseTools +## 1.3.1 + ++ Fixed installation issue with spaces in filenames (Issue #13) + ## v1.3.0 + Added online help links diff --git a/PSReleaseTools.psd1 b/PSReleaseTools.psd1 index ed12e0b..f107583 100644 Binary files a/PSReleaseTools.psd1 and b/PSReleaseTools.psd1 differ diff --git a/README.md b/README.md index 9732c5d..587d91b 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ Install-PSPreview -mode passive [Install-PSCore](/Docs/Install-PSCore.md) will do the same thing but for the latest stable release. - ![install-pscore](/images/install-pscore.png) + ![Install-PSCore](/images/install-pscore.png) The functionality of these commands could have been combined, but I decided to leave this as separate commands so there is no confusion about what you are installing. @@ -95,4 +95,4 @@ Install-Module PSReleaseTools -scope currentuser I have a few other ideas for commands I might add to this module. If you have suggestions or encounter problems, please post an issue in the GitHub repository. -Last updated 2019-07-12 12:56:02Z UTC +Last updated 2019-07-18 13:35:25Z UTC diff --git a/functions/private.ps1 b/functions/private.ps1 index 2700576..8279943 100644 --- a/functions/private.ps1 +++ b/functions/private.ps1 @@ -53,14 +53,8 @@ Function InstallMsi { ) Write-Verbose "[$($myinvocation.mycommand)] Creating install command for $Path" - $cmd = "$path" - if ($Mode -eq "quiet") { - $cmd += " /quiet" - } - elseif ($Mode -eq "Passive") { - $cmd += " /passive" - } + $cmd = "Start-Process -filepath '$Path' -argumentlist '/$mode'" Write-Verbose "[$($myinvocation.mycommand)] Using $Mode mode" $sb = [scriptblock]::Create($cmd) @@ -68,5 +62,4 @@ Function InstallMsi { Invoke-Command -scriptblock $sb } - } #close installmsi \ No newline at end of file