https://github.com/notr1ch/obsinstallerutils
Extra features for the OBS Installer
https://github.com/notr1ch/obsinstallerutils
nsis windows
Last synced: about 1 year ago
JSON representation
Extra features for the OBS Installer
- Host: GitHub
- URL: https://github.com/notr1ch/obsinstallerutils
- Owner: notr1ch
- License: gpl-3.0
- Created: 2017-06-22T12:44:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-08-21T17:47:19.000Z (almost 4 years ago)
- Last Synced: 2025-03-31T13:58:45.749Z (over 1 year ago)
- Topics: nsis, windows
- Language: C
- Size: 32.2 KB
- Stars: 9
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OBSInstallerUtils
This library is designed to be used with NSIS (Unicode version). It provides the following features:
```
OBSInstallerUtils::IsProcessRunning
OBSInstallerUtils::IsDLLLoaded
OBSInstallerUtils::AddInUseFileCheck
OBSInstallerUtils::ResetInUseFileChecks
OBSInstallerUtils::GetAppNameForInUseFiles
OBSInstallerUtils::KillProcess
OBSInstallerUtils::AddAllApplicationPackages
```
AddInUseFileCheck expects a full path. Can be called multiple times. Afterwards, call GetAppNameForInUseFiles and $R0 will be a nicely formatted list of applications that are using the specified files.
KillProcess takes a substring match on the full path.
Other functions sets $R0 to 1 if true.
Build the .dll with:
```
git clone https://github.com/notr1ch/OBSInstallerUtils.git
cd OBSInstallerUtils
mkdir build
cd build
cmake -DCMAKE_GENERATOR_PLATFORM="Win32" ..
cmake --build . --config Release
```
Example usage: https://github.com/jp9000/obs-studio/blob/master/UI/installer/mp-installer.nsi