开发者

How to copy folder from within a zip using NSIS?

I'm using NSIS to write an installer. I'd like to copy the 'lib' directory contained in a zip. Is it possible to specify that the contents of sampleZip.zip/lib is copied to, say $IN开发者_开发知识库STDIR\lib?

The basic idea of what I want is this, though it obviously doesn't work:

File /r sampleZip.zip\lib\*

Any ideas on how this can be done?


NSIS does not have native support for this, you need to use one of the unzip plugins: NsUnzip, Nsisunz or ZipDLL


Rather than install the plugin, I just copied the libraries I needed using the plugin described at this answer force Maven2 to copy dependencies into target/lib.

Since I was the one building the zip file I wanted to access, I felt this way would be more reliable.

Thanks for the suggestions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜