From a7fe503bad07eefc804a484eb8c92f62784f8047 Mon Sep 17 00:00:00 2001 From: Bill Stewart Date: Thu, 18 Mar 2021 15:04:04 -0600 Subject: [PATCH] 1.0.2 --- EditPath.iss | 4 ++-- EditPath.rc | 8 ++++---- PathMgr.ps1 | 2 +- PathMgr.rc | 8 ++++---- history.md | 6 ++++++ 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/EditPath.iss b/EditPath.iss index 7196989..b897f77 100644 --- a/EditPath.iss +++ b/EditPath.iss @@ -34,7 +34,7 @@ [Setup] AppId={{A17D2D05-C729-4F2A-9CC7-E04906C5A842} AppName=EditPath -AppVersion=4.0.0.0 +AppVersion=4.0.2.0 UsePreviousAppDir=false DefaultDirName={autopf}\EditPath Uninstallable=true @@ -125,7 +125,7 @@ procedure CurStepChanged(CurStep: TSetupStep); if CurStep = ssPostInstall then begin // Add app directory to Path at post-install step if task selected - if WizardIsTaskSelected(MODIFY_PATH_TASK_NAME) then + if PathIsModified or WizardIsTaskSelected(MODIFY_PATH_TASK_NAME) then AddDirToPath(ExpandConstant('{app}')); end; end; diff --git a/EditPath.rc b/EditPath.rc index 1a07a17..42da43c 100644 --- a/EditPath.rc +++ b/EditPath.rc @@ -1,6 +1,6 @@ 1 VERSIONINFO -FILEVERSION 4,0,1,0 -PRODUCTVERSION 4,0,1,0 +FILEVERSION 4,0,2,0 +PRODUCTVERSION 4,0,2,0 FILEOS 0x4 FILETYPE 1 { @@ -10,12 +10,12 @@ FILETYPE 1 { VALUE "CompanyName", "" VALUE "FileDescription", "EditPath.exe" - VALUE "FileVersion", "4.0.1.0" + VALUE "FileVersion", "4.0.2.0" VALUE "InternalName", "EditPath.exe" VALUE "LegalCopyright", "Copyright 2021 by Bill Stewart (bstewart at iname.com)" VALUE "OriginalFilename", "EditPath.exe" VALUE "ProductName", "" - VALUE "ProductVersion", "4.0.1.0" + VALUE "ProductVersion", "4.0.2.0" } } diff --git a/PathMgr.ps1 b/PathMgr.ps1 index e06a101..2052540 100644 --- a/PathMgr.ps1 +++ b/PathMgr.ps1 @@ -93,7 +93,7 @@ public static extern uint RemoveDirFromPath( string DirName, uint PathType ); -"@ -f (Get-Platform) +"@ -f (Join-Path (Get-Location).Path (Get-Platform)) -replace '\\','\\' $PathMgr = Add-Type -Name PathMgr ` -MemberDefinition $APIDefs ` diff --git a/PathMgr.rc b/PathMgr.rc index f6b6e68..98892f8 100644 --- a/PathMgr.rc +++ b/PathMgr.rc @@ -1,6 +1,6 @@ 1 VERSIONINFO -FILEVERSION 1,0,1,0 -PRODUCTVERSION 1,0,1,0 +FILEVERSION 1,0,2,0 +PRODUCTVERSION 1,0,2,0 FILEOS 0x4 FILETYPE 1 { @@ -10,12 +10,12 @@ FILETYPE 1 { VALUE "CompanyName", "" VALUE "FileDescription", "PathMgr.dll" - VALUE "FileVersion", "1.0.1.0" + VALUE "FileVersion", "1.0.2.0" VALUE "InternalName", "PathMgr.dll" VALUE "LegalCopyright", "Copyright 2021 by Bill Stewart (bstewart at iname.com)" VALUE "OriginalFilename", "PathMgr.dll" VALUE "ProductName", "" - VALUE "ProductVersion", "1.0.1.0" + VALUE "ProductVersion", "1.0.2.0" } } diff --git a/history.md b/history.md index 10a01ec..c5daa03 100644 --- a/history.md +++ b/history.md @@ -1,5 +1,11 @@ # PathMgr.dll Version History +## 1.0.2 (18 Mar 2021) + +* Fix Inno Setup script sample: Modify path both when task was previously selected or currently selected. + +* Fix PowerShell sample script: Get full path of DLL file when running script. + ## 1.0.1 (29 Jan 2021) * Fix: Validate `PathType` parameter for `IsDirInPath()` function.