Hack Forums
[C] How to make installer with C++ - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] How to make installer with C++ (/showthread.php?tid=6055832)



How to make installer with C++ - codforc - Mar 10, 2020

I want to make a downloader with C ++. When the downloader's executable opens, I want to download the files I want to the disk I want.

The only difference from normal downloaders is that it does this in the background.

How do I do this? Do you have a resource?


RE: How to make installer with C++ - 3DES - Mar 10, 2020

Wininet API.


25 character limit.


RE: How to make installer with C++ - stringsnstuff - Mar 10, 2020

I found this link you may be interested in taking a look at. This shows how you can download and save a file using curl library.
stackoverflow.com/questions/1636333/download-file-using-libcurl-in-c-c

Since you said you want to hide it in the background you can use this:
ShowWindow(GetConsoleWindow(), SW_HIDE);

If you don't know how C works I suggest you take a look at this website. learncpp.com


RE: How to make installer with C++ - codforc - Mar 11, 2020

(Mar 10, 2020 07:15 PM)stringsnstuff Wrote:  I found this link you may be interested in taking a look at. This shows how you can download and save a file using curl library.
stackoverflow.com/questions/1636333/download-file-using-libcurl-in-c-c

Since you said you want to hide it in the background you can use this:
ShowWindow(GetConsoleWindow(), SW_HIDE);

If you don't know how C works I suggest you take a look at this website. learncpp.com

I know c works but what I want to do is in the form of a setup.

that is,i don't want download files from the internet.

I am trying to do a setup that places its files in directories like %systemroot%. This is offline.


RE: How to make installer with C++ - stringsnstuff - Mar 11, 2020

(Mar 11, 2020 01:18 AM)codforc Wrote:  I know c works but what I want to do is in the form of a setup.

that is,i don't want download files from the internet.

I am trying to do a setup that places its files in directories like %systemroot%. This is offline.
As genuine as I can possibly be, I don't understand what you're trying to do. You said you don't want to download files from the internet? But in your original post you said you wanted to make a downloader. Then you said you want it to be offline, where is the files going to be coming from if it's going to be offline? This is no longer a downloader if your using it offline.