本文介绍了C ++中的自解压存档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为Windows创建一个自解压存档,将文件解压缩到一个临时文件夹,然后运行提取的启动脚本,我该如何做呢?



注意:

我想使用完全原生的win32 c ++,因为这样做的全部意义就是要下载多个文件。



-Jordan

I would like to create a self extracting archive for windows that will extract files to a temporary folder and then run the extracted startup script, how would I go about doing this?

Note:
I would like to use completely native win32 c++ because the whole point of this is to get around having to download multiple files.

-Jordan

推荐答案



TCHAR buf [MAX_PATH];

if (GetTempPath (MAX_PATH, buf) != 0)
{
  //Here you can to do extracting yours archive, run script

}





使用以下示例之一:

[]

[]]

[]

[ ]



祝你好运



Use one of the following examples:
http://www.example-code.com/vcpp/vcUnzip.asp[^]
Zip Utils - clean, elegant, simple, C++/Win32[^]]
Zip and Unzip in the MFC way[^]
Easy Way to Read/Write Zip-Compatible Files Under MFC[^]

Good luck


这篇关于C ++中的自解压存档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 16:09