05-25-2018 05:09 PM
I want to create a package to install my LabVIEW 2017 application using NIPM. I'm using the "Package" build spec type from my LabVIEW project
The application's exe will be placed in [Program Files]\My Application
During the install process I need to run some post install actions. These post install actions need the path to the install directory though.
Using Windows Installers, you could use variables like [InstallDir] in your post-install arguments. Is there anything like this available to NIPM Package post install actions?
05-29-2018 11:41 AM
Under the Advanced section of the Package Properties is where you can define and schedule customer actions such as a post install. You need to have the script or executable that will run this post install process added to you LabVIEW project to be able to add it under the custom actions section. After which you can schedule at which point the action runs.
As an alternative you can also achieve this with the VI Package Manager instead. The following links provide information on how to add custom installation options in the VI Package Manager. There is also a lot information regarding VIPM custom actions versus NIPM custom actions.
05-29-2018 02:59 PM - edited 05-29-2018 02:59 PM
I'm trying to use NIPM to deploy an application, not source code, therefore VIPM is inappropriate.
I know how to create a post-install action. That isn't the problem. The problem is sending that post install action additional information about the install. For example, I have written an application to be run as a post install command that takes in a command line argument. I need that argument to be the install location of the package. How can I accomplish this?
If this was an installer I'd specify the application path, then in the arguments line i'd type
[InstallDir]
Now, when my installer was run, the application would be run with the argument something like "C:\program files\abc\123" or where ever the user specified to install the application.
05-30-2018 03:47 PM
So what happens when you try to use the same command as an argument within the package builder? Does it not return the chosen installation path of the package just like it would do with an installer? I would assume it would work whether is was an installer or a package. Perhaps there is further modification to the [INSTALLDIR] command as mentioned in the Advanced Page (Installer Properties Dialog Box) help document.
06-02-2018 04:29 PM
You mention an installer option for the post install application to run. In case of a NIPM package NIPM is the installer and would therefor need to supply the installation path. Is it possible to specify the placeholder at package build time so NIPM suuplies it? If so, you would expect it described with the package build help.
06-04-2018 08:20 PM
Hi Derek,
Can you upload your code of the bat file ?