Click here to Skip to main content
15,881,797 members
Articles / Desktop Programming / MFC

Easy Installer

Rate me:
Please Sign up or sign in to vote.
4.81/5 (57 votes)
14 Sep 2006CPOL11 min read 276.6K   3.7K   155  
The Easy Installer program
#pragma once

class CWrap
{
public:
	CWrap(void);
	~CWrap(void);

protected:
	void			AllocateMemory();

	CStringArray	sa;
	CString			m_prjName;
	CString			m_webCaption;
	CString			m_webURL;
	DWORD			m_winVer;
	CString			m_target;

	LPSTR			buff;
	UINT			nSize;

	FILE*			fpOut;

	CString			m_iniFileName;


public:
	void	AddFile(CString f);
	void	SetProjectName(CString pn);
	void	SetWebSiteCaption(CString caption);
	void	SetWebSiteURL(CString url);
	void	SetWinVer(DWORD wv);
	void	SetTargetName(CString t);
	BOOL	CreateInstaller();

protected:
	void	WrapData();
	void	WrapFiles();
	BOOL	CreateFile();
	BOOL	InstallerExe();
	BOOL	InstallerData();
};

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
Israel Israel
lichen farmer, semi-lingual, never saw a Sylvester Stallone movie

Comments and Discussions