NI Package Manager (NIPM)

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Error message from pre/post install exe

Hello

 

I created a package which runs a batch file on post installation. The batch file returns a error code and the NIPM window shows the error message as The executable returned error '5000' after running the custom execute command 'path='"<batch-file-path>"', options='''.

 

To customize the error, I have created custom-errors.xml and txt file. But the batch file is not showing the error message written in the file.

 

is there a way to return error message from batch file to NIPM ?

0 Kudos
Message 1 of 2
(1,446 Views)

NIPM does not use custom-errors.xml, and there unfortunately is not a way to display a custom message. Assuming you're using the LabVIEW package builder, two alternatively could be:

  • Choose the "Custom action" scheduling to ignore all errors, OR
  • Have the batch file display the error in its own console window

Regards,

- Wes

0 Kudos
Message 2 of 2
(1,419 Views)