Click here to Skip to main content
15,886,362 members
Articles / Desktop Programming / MFC

Creating a Self Extracting Executable

Rate me:
Please Sign up or sign in to vote.
4.98/5 (22 votes)
20 Aug 2002CPOL3 min read 308.6K   5.7K   108  
A class that allows you to create self extracting executables for use in distribution or setup programs
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by Extractor.rc
//
#define IDS_INTRO_TEXT                  1
#define IDS_NO_DATA_INTRO               2
#define IDS_NOTHING_TO_DO               3
#define IDS_OUTFILE_ERROR               4
#define IDS_DEFAULT_ERROR               5
#define IDS_SUCCESS_FORMATTER           6
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_EXTRACTOR_DIALOG            102
#define IDR_MAINFRAME                   128
#define IDC_EXTRACT                     1000
#define IDC_BROWSE                      1001
#define IDC_PATH                        1002
#define IDC_PROGRESS                    1003
#define IDC_CURR_FILE                   1004
#define IDC_ZIP_PROGRESS                1005
#define IDC_ABOUT                       1006
#define IDC_TOTAL_STATUS                1007
#define IDC_FILE_STATUS                 1008
#define IDC_INTRO_TEXT                  1009

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        129
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1010
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United Kingdom United Kingdom
James is currently working as a Software Engineer providing large scale Warehouse Management Systems and Airport Baggage Handling Systems. He is a Windows specialist but nowadays spends about 65% of his time fighting with VI in a vain attempt to get his UNIX C code to compile. He has been programming in C/C++ for 6 years and Visual C++/MFC for 4 years.

In his spare time James plays a variety of musical instruments including guitar and piano with varying degrees of success. He has been told he spends too much time and money in the pub but doesn't everyone have their own stool at the bar?

James is originally from Nottingham (no Robin Hood jokes please) but is now based in sunny Manchester, UK.

The attached photo shows James in his favourite position, drinking beer with a hand growing out of his neck.

Comments and Discussions