LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Installer

I'm trying to install an Excel template into my project. This works fine when the project is running on my computer but when I build a Installer to install the program into another machine, the "path" is never the same as the path that is on my computer. How can I create a generic path that any computer can recognize

0 Kudos
Message 1 of 2
(114 Views)

Hi SJE,

 


@SJE wrote:

I'm trying to install an Excel template into my project. 


How do you "install" the Excel file "into your project"?

 


@SJE wrote:

when I build a Installer to install the program into another machine, the "path" is never the same as the path that is on my computer. How can I create a generic path that any computer can recognize


When your application needs additional data files then those files should be included in the EXE build as "additional data". Those files go to the "Data" subfolder next to your EXE file (by default).

Inside the EXE you can use the AppDir file constant to determine the filepath of your EXE and then use it to create a path to your file in the Data subfolder: "filepath to exe\Data\ExcelTemplateFile"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(72 Views)