Tips for automating an install?

Hello everyone I’ve been working on some software, and I’m glad to say that it runs beautifully on DietPi :smiley:

Now I’m just trying to automate the setup process to make it easier on the users.

The plan is to use the custom script option and in particular I’m having trouble doing the following things:

Look for the user’s configuration file (for my software) and copy it to the location of the executable.
Where can I store files to be used after the installation, and what is the path to reference them?

make a startup script for dietpi to run on boot and enable that functionality without user interaction. In my testing I was using the /etc/dietpi/ option, but it seems to have since changed?

Thanks for your help <3