The problem is the next: I get a SFX file what I want to extract, but I don't want to open it and select the installation path, I just want to install it to a defined path (add by argument or smth).
I use C# language and I've tried many ways to extract that file, but I can't find the solution.
I tried the followings:
- Rename the SFX .exe file to .rar and .zip, after that with System.Comparsion package, I tried to extract
- Run the SFX file with arguments (it works in silent mode, just I can't add custom path to it)
- Tried to extract the .exe file itself with RAR nuGet package (like NURar)
If you have any ideas please let me know. Thanks for the help guys.
At least I used UnRAR.exe file with arguments to extract the SFX file. Thanks to Mofi for the answer!
The process what I use for extract data if anyone need: