Embedding an exe in a program [Answered]

Tthinker22711/7/2022
I know this sounds super sus, but I wanna write an installer for a CLI tool which just copies an executable to a specified directory and then adds that directory to the user's PATH. My question is mainly how I should embed the executable. I know embedded resources exist and how to use them, although would that be the best option to do this?
Ccanton711/7/2022
I'd go with an embedded resource -- there aren't really many options here
Tthinker22711/7/2022
fair
Tthinker22711/7/2022
Was just wondering if there was anything else
DD.Mentia11/7/2022
In my experience, antiviruses get very upset when you embed executables; if you have problems with that, it might be best to just have the user extract a zip containing the installer and executable
(The 'install' could then be done via batch file to further keep antivirus off your back)
Ccanton711/7/2022
7-zip has a lot of stuff to create customised self-extracting archives (SFX). I think that might include env vars? The docs are all pretty old, but https://sourceforge.net/projects/s-zipsfxbuilder/ has a "SetEnvironment" tab...
AAccord11/8/2022
✅ This post has been marked as answered!