•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 402,806 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,032 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 421 | Replies: 3
![]() |
•
•
Join Date: Apr 2008
Posts: 55
Reputation:
Rep Power: 0
Solved Threads: 4
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.
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.
cplusplus Syntax (Toggle Plain Text)
#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.
Last edited by Narue : Jul 12th, 2008 at 5:19 pm. Reason: Fixed code tags.
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 10,715
Reputation:
Rep Power: 36
Solved Threads: 882
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Windows installer popping up (Windows NT / 2000 / XP / 2003)
- windows installer (Windows NT / 2000 / XP / 2003)
- Windows installer messege keeps popping up asking for office XP cd...plz help (Windows NT / 2000 / XP / 2003)
- Windows installer popping up (Windows NT / 2000 / XP / 2003)
- Problems with Windows Installer popping up! (Windows 9x / Me)
- cd burner and windows installer (Windows NT / 2000 / XP / 2003)
Other Threads in the C++ Forum
- Previous Thread: Chatting Application using C++ (or C#)
- Next Thread: C / C++ FAQ's and Practice problems



Linear Mode