C++ 自定义文件打包和解包格式

上传者: yinlenan | 上传时间: 2021-09-20 11:45:55 | 文件大小: 2.14MB | 文件类型: RAR
使用安装程序举例: 注:这里主要就是 使用自己定义的文件格式来打包、压缩、解压、解包等的代码说明!这里只上传打包解包和写安装程序打包的程序 安装程序就不上传了! 比如将要安装的资源写到安装程序EXE内部,安装时在讲资源释放成文件! 首先在安装程序 添加文本资源,建立ID和资源类型!生成EXE程序 打包程序将要安装的程序及资源使用压缩技术 加压 打包程序使用UpdateResource函数将压缩资源写到 安装程序内部 替换那个文本资源就可以了!最后生成新的安装程序(内部含有 安装资源包) 运行安装程序时,将资源释放成文件,拷贝到指定目录下,最后修改要修改的注册表等就完成安装任务了!

文件下载

资源详情

[{"title":"( 61 个子文件 2.14MB ) C++ 自定义文件打包和解包格式","children":[{"title":"自己的文件打包格式","children":[{"title":"InstallerApp","children":[{"title":"安装程序打包工具","children":[{"title":"TarmaInstallMate","children":[{"title":"zlib.h <span style='color:#111;'> 84.68KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Tarma InstallMate.rc2 <span style='color:#111;'> 409B </span>","children":null,"spread":false},{"title":"Tarma InstallMate.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"Tarma InstallMateDlg.cpp <span style='color:#111;'> 20.77KB </span>","children":null,"spread":false},{"title":"Tarma InstallMate.h <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"Duxiyong.cpp <span style='color:#111;'> 11.92KB </span>","children":null,"spread":false},{"title":"Tarma InstallMate.cpp <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"Tarma InstallMate.dsp <span style='color:#111;'> 4.57KB </span>","children":null,"spread":false},{"title":"Tarma InstallMate.opt <span style='color:#111;'> 50.50KB </span>","children":null,"spread":false},{"title":"Tarma InstallMate.plg <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"Tarma InstallMate.rc <span style='color:#111;'> 5.73KB </span>","children":null,"spread":false},{"title":"Duxiyong.h <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 219B </span>","children":null,"spread":false},{"title":"Tarma InstallMate.ncb <span style='color:#111;'> 129.00KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 971B </span>","children":null,"spread":false},{"title":"Tarma InstallMate.clw <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"Tarma InstallMate.aps <span style='color:#111;'> 21.46KB </span>","children":null,"spread":false},{"title":"Bin","children":[{"title":"7zS2con.sfx <span style='color:#111;'> 30.50KB </span>","children":null,"spread":false},{"title":"7zS2.sfx <span style='color:#111;'> 31.00KB </span>","children":null,"spread":false},{"title":"7zr.exe <span style='color:#111;'> 404.00KB </span>","children":null,"spread":false},{"title":"7za.dll <span style='color:#111;'> 219.50KB </span>","children":null,"spread":false},{"title":"TarmaInstallMate.exe <span style='color:#111;'> 152.14KB </span>","children":null,"spread":false},{"title":"7za.exe <span style='color:#111;'> 589.50KB </span>","children":null,"spread":false},{"title":"x64","children":[{"title":"7zxa.dll <span style='color:#111;'> 172.50KB </span>","children":null,"spread":false},{"title":"7za.dll <span style='color:#111;'> 324.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"7z.exe <span style='color:#111;'> 160.00KB </span>","children":null,"spread":false},{"title":"7zSD.sfx <span style='color:#111;'> 103.50KB </span>","children":null,"spread":false},{"title":"7-zip.dll <span style='color:#111;'> 54.50KB </span>","children":null,"spread":false},{"title":"7z.dll <span style='color:#111;'> 893.00KB </span>","children":null,"spread":false},{"title":"TarmaInstallMate.ilk <span style='color:#111;'> 342.74KB </span>","children":null,"spread":false}],"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"zconf.h <span style='color:#111;'> 14.93KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"unrar.lib <span style='color:#111;'> 4.02KB </span>","children":null,"spread":false},{"title":"unrar.dll <span style='color:#111;'> 180.69KB </span>","children":null,"spread":false},{"title":"zlib1.dll <span style='color:#111;'> 105.00KB </span>","children":null,"spread":false},{"title":"KpLib.lib <span style='color:#111;'> 4.22MB </span>","children":null,"spread":false},{"title":"Kpzdll.lib <span style='color:#111;'> 14.90KB </span>","children":null,"spread":false}],"spread":false},{"title":"Tarma InstallMateDlg.h <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"Debug","children":null,"spread":false},{"title":"Tarma InstallMate.dsw <span style='color:#111;'> 542B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 971B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"说明.txt <span style='color:#111;'> 443B </span>","children":null,"spread":false}],"spread":true},{"title":"自己的文件打包格式工具","children":[{"title":"TestFoleduxiyong","children":[{"title":"TestFileduxiyong.aps <span style='color:#111;'> 20.68KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"TestFileduxiyong.ico <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"TestFileduxiyong.rc2 <span style='color:#111;'> 408B </span>","children":null,"spread":false}],"spread":true},{"title":"TestFileduxiyong.plg <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"TestFileduxiyong.cpp <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"Duxiyong.cpp <span style='color:#111;'> 11.80KB </span>","children":null,"spread":false},{"title":"TestFileduxiyongDlg.h <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"TestFileduxiyong.opt <span style='color:#111;'> 48.50KB </span>","children":null,"spread":false},{"title":"TestFileduxiyong.dsp <span style='color:#111;'> 4.36KB </span>","children":null,"spread":false},{"title":"TestFileduxiyong.h <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"TestFileduxiyong.ncb <span style='color:#111;'> 105.00KB </span>","children":null,"spread":false},{"title":"Duxiyong.h <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"TestFileduxiyong.clw <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 218B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 694B </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"TestFileduxiyong.rc <span style='color:#111;'> 5.27KB </span>","children":null,"spread":false},{"title":"Debug","children":null,"spread":false},{"title":"TestFileduxiyong.dsw <span style='color:#111;'> 540B </span>","children":null,"spread":false},{"title":"TestFileduxiyongDlg.cpp <span style='color:#111;'> 4.56KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • u013205014 :
    不错 ,可以用
    2017-05-19

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明