Skip to content

Commit

Permalink
Merge pull request #48 from tshino/add-pushd-installer-bat
Browse files Browse the repository at this point in the history
Add pushd/popd to installer BATs
  • Loading branch information
tshino committed Jan 8, 2024
2 parents c048734 + 041d6c0 commit bc03234
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All notable changes to the Softcam library will be documented in this file.

### [Unreleased]
- Updated solution file version from Visual Studio 2019 to Visual Studio 2022. [#45](https://github.com/tshino/softcam/pull/45)
- Added `pushd`/`popd` to example installer BAT files to work correctly even if launched from another directory. [#48](https://github.com/tshino/softcam/pull/48)

### [1.7] - 2023-12-02
- Bumped NuGet package version of Google Test.
Expand Down
2 changes: 2 additions & 0 deletions examples/softcam_installer/RegisterSoftcam.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@echo off

pushd %~dp0
set INSTALLER=x64\Release\softcam_installer.exe
set TARGET=..\..\dist\bin\x64\softcam.dll

Expand All @@ -20,4 +21,5 @@ if %ERRORLEVEL% == 0 (
echo The process has been canceled or failed.
echo.
)
popd
pause
2 changes: 2 additions & 0 deletions examples/softcam_installer/RegisterSoftcam32.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@echo off

pushd %~dp0
set INSTALLER=Win32\Release\softcam_installer.exe
set TARGET=..\..\dist\bin\Win32\softcam.dll

Expand All @@ -20,4 +21,5 @@ if %ERRORLEVEL% == 0 (
echo The process has been canceled or failed.
echo.
)
popd
pause
2 changes: 2 additions & 0 deletions examples/softcam_installer/UnregisterSoftcam.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@echo off

pushd %~dp0
set INSTALLER=x64\Release\softcam_installer.exe
set TARGET=..\..\dist\bin\x64\softcam.dll

Expand All @@ -20,4 +21,5 @@ if %ERRORLEVEL% == 0 (
echo The process has been canceled or failed.
echo.
)
popd
pause
2 changes: 2 additions & 0 deletions examples/softcam_installer/UnregisterSoftcam32.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@echo off

pushd %~dp0
set INSTALLER=Win32\Release\softcam_installer.exe
set TARGET=..\..\dist\bin\Win32\softcam.dll

Expand All @@ -20,4 +21,5 @@ if %ERRORLEVEL% == 0 (
echo The process has been canceled or failed.
echo.
)
popd
pause

0 comments on commit bc03234

Please sign in to comment.