User Tools

Site Tools


code:dqmh:hse-application-template:nipackage

16 NI Package

Locations

For installation target locations, see Deployment Structure: Installation

Make sure to provide an .ini file for the application that points to the alternative paths:

  [HSE]
  configdir=C:\\ProgramData\\<MyCompany>\\<MyApp>\\<MyApp>_Config
  datadir=C:\\ProgramData\\<MyCompany>\\<MyApp>\\<MyApp>_Data

Replace <MyCompany> and <MyApp> with your actual company and application name.

Build Spec

The NIPKG build spec of the template application project uses the following settings in order to build an NI Package and Package Installer:

ACL for _Config and _Data Folders

The NI Package will be installed with admin (ie elevated) user rights. When the NI Package Manager creates the _Config and _Data folders in C:\ProgramData during installation, those folders are set to be not modifiable by regular users. We need to fix that so the application can then access those folders when run as a regular user.

See Windows: ProgramData Access Rights for details on how to set DACL via a batch file.

The batch file lives in the repo in /Tools/DACL/DACL.bat, gets installed into the application's install directory and is called as a custom action as a post-install step with the argument “C:\ProgramData\HSE\TEMPLATE” (see above).

code/dqmh/hse-application-template/nipackage.txt · Last modified: 2026/02/25 20:14 by joerg.hampel