Cannot Run LabVIEW Custom Installer Without Administrator Privileges

Updated Apr 14, 2023

Reported In

Software

  • LabVIEW

Issue Details

I want to deploy a LabVIEW application to several systems and I have created an installer using the Application Builder. I need to be able to run the installer without requiring administrative privileges on the target pcs. Is it possible to create a LabVIEW custom installer that does not require administrator privileges to be run on a target pc?

Solution

Having administrator privileges to install any software is a security feature of the operating system rather than a function of the installer. One restriction is that most installers are going to write a Windows registry HKEY to enable uninstallation and install files into the Program Files folder which requires elevation during installation. There is no switch or setting in LabVIEW to disable the elevation requirement.

As an alternative you can follow these suggestions:
  • Use a custom batch file to copy the LabVIEW executable from a network drive to a specific user folder (writable without admin rights). This way you will not need additional permissions if the target folder is writable, the caveat of this workaround is that any additional dependencies such as drivers and runtimes need to be installed separately with administrator privileges.
  • Deploy the software to several systems using third-party software:
    • In the following article you can read more about using Microsoft SMS or SCCM to accomplish this task: Deploying NI Software Using Microsoft SMS or SCCM.
    • You can use Inno Setup which is a third-party software used to deploy applications and create installers. It has some caveats or restrictions regarding some actions that need administrative privileges. You can read more about this third-party software in the Related Links section.