I am almost done with a project and now I would like to code an installer for it. I know there are many free solutions to make installer packages online, but I would enjoy learning how to make one from the ground up for the expirience if nothing else. What I have so far is designed to work on a Windows machine.

#include <iostream>
#include <fstream>
using namespace std;

int main()
       system("copy %~d0\package\file1.exe C:\package");
       system("copy %~d0\package\readme.txt C:\package");
       //add to Start Menu etc
       return 0;

Note that %~d0\ is the Windows variable for the active drive.

This is a VERY simple installation program. How would I unzip a zipped file, back up a section of the registry, install the program (copy files and edit the registry), and check that it succeeded? I know this is a lot to ask but advice on any section of this program would be appreciated. I will add the GUI later on.

Recommended Answers

All 3 Replies

Any ideas?

Thank you I appreciate it!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.