An open API service indexing awesome lists of open source software.

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

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