User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Apr 2008
Posts: 55
Reputation: dmanw100 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 4
dmanw100 dmanw100 is offline Offline
Junior Poster in Training

Installer

  #1  
Jul 12th, 2008
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.

  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. system("copy %~d0\package\file1.exe C:\package");
  8. system("copy %~d0\package\readme.txt C:\package");
  9. //add to Start Menu etc
  10. return 0;
  11. }

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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2008
Posts: 55
Reputation: dmanw100 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 4
dmanw100 dmanw100 is offline Offline
Junior Poster in Training

Re: Installer

  #2  
Jul 18th, 2008
Any ideas?
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 10,715
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 36
Solved Threads: 882
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: Installer

  #3  
Jul 18th, 2008
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
Reply With Quote  
Join Date: Apr 2008
Posts: 55
Reputation: dmanw100 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 4
dmanw100 dmanw100 is offline Offline
Junior Poster in Training

Re: Installer

  #4  
Jul 22nd, 2008
Thank you I appreciate it!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 10:49 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC