Writing an installer is relatively easy. The programmer need to know how to use some basic GUI components and file handling. When I wrote my programs for used by my sister and friends, I also wrote simple tools that help automatically copying the files to the proper locations and generate some config files. I do not consider those were installers but basically they are.
If the programmer then learn and add some features like file compression, setting registry and automatically installing some required libraries. Then that really is an installer.
But writing a 'wrapper'. That is a different thing. The OP didn't provide enough information about the installer. Do we send the data to it using command-line arguments, pipe, or customizing some files? Or modifying/injecting to the binary's resource table directly? The OP only said he managed to embed the installer, but how? Without clear information, not much we can help.
@yo_mono
We do not know your skill level? Are you new in using Lazarus? Here are some general advice, hope it helps:
Why do you want your program to wrap to the installer? You can write your own installer relatively easy using Lazarus.
If you haven't, you should learn these GUI components if you want to write your own installer:
TButton/
TBitButton,
TLabel,
TEdit,
TCheckBox,
TRadioButton,
TImage,
TStatusBar,
TProgressBar,
TSelectDirectoryDialog,
TOpenDialog.
And learn this skills and modules/units:
basic file handling,
fcl-registry,
TIniFile. Would be good if you also learn:
file compression/decompression,
getting hardware information,
encryption/decryption.
If you have learned all the things marked green above, you are fully capable to write your own installer. Getting hardware information and encryption/decryption are needed if you want to add copy protection feature.
But if you want to write a wrapper, not sure but I guess you may also need to learn these: paramstr, piping, application resource, etc.
How would be the proper way to get this?
Don't think about the 'proper'.
But pick the one that is easiest to you.
To me programming is about fun, not rules as long as the result is working correctly unless you want to share the code or working in a team.
Happy New Year 2021
And happy coding!