Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Stewart committed Mar 18, 2021
1 parent aa81919 commit a7fe503
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions EditPath.iss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions EditPath.rc
Original file line number Diff line number Diff line change
@@ -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
{
Expand All @@ -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"
}
}

Expand Down
2 changes: 1 addition & 1 deletion PathMgr.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 `
Expand Down
8 changes: 4 additions & 4 deletions PathMgr.rc
Original file line number Diff line number Diff line change
@@ -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
{
Expand All @@ -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"
}
}

Expand Down
6 changes: 6 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit a7fe503

Please # to comment.