03-10-2025 11:45 AM
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
03-11-2025 02:28 AM
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"…