开发者

7zip command line self extractor not asking for path

开发者 https://www.devze.com 2023-03-20 14:56 出处:网络
I\'ve created my self extracting .exe file from 7zip command line using the 7z a -sfx <name.exe> <filelist...>

I've created my self extracting .exe file from 7zip command line using the

7z a -sfx <name.exe> <filelist...>

commands but when I run this from windows explorer it does not ask me for the location to extract the files to, it just places it inside the current directory.

The target users will not be comman开发者_如何学Pythond line savvy so I don't want them to have to open a prompt and use the command line options to put it in a certain directory.

The non command line 7zip has the functionality I'm looking for when checking the box to Create SFX archive file, But the command line does not seem to have it.

As a last resort I can make a .bat script that will call

7z x -o<location> <name.exe>

But I'm trying to avoid that as the users are used to installing form just the executable.


7z a -sfx7z.sfx <name.exe> <filelist...>

http://sourceforge.net/projects/sevenzip/forums/forum/45798/topic/3777973


It seems that if you 7z from the command line, the resulting exe doesn't prompt. But if you use the 7-Zip File Manage, the exe does prompt you.

I don't know why.


You can use the (slightly dated) modified SFX modules that support prompting for the extracting path.

0

精彩评论

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