WinRAR SFX Commands

UE4打包封装成一个自解压文件 下面是利用winrar为UE4打包程序制作一个自解压文件包,目的就是起到文件整理和一键安装的效果准备好要制作自解压的相关文件附加一个删除自解压文件本身的批处理,代码如下:@echo off ping 127.0.0.1 -n 1 >nul 2>&1 del /f /a /q %sfxcmd% del /f /a /q %0 出处:参考找的过程中还找到了这样的批处理代码,如下,是... 阅读详情

Original Article link: http://www.msfn.org/board/topic/34343-winrar-sfx-commands/


Basic SFX Info :

(Windows 95, 98, NT and so on). [These modules can not be controlled under Windows 3.1 or DOS.]

Both Chinese modules support simple setup commands. You may put them to the SFX archive comment. Setup commands are listed below.

; Comment below contains SFX script commands

This is needed at the beginning of every comment section of the SFX.

Delete = [filename]

Delete the specified file in the destination folder before extraction. Several Delete commands are allowed.

If a file specified in the Delete command is locked and can not be deleted, SFX module will try to rename it to temporary name before extraction and delete after Windows reboot. Success of this operation depends on Windows version.

Examples :

Delete = winrar95.exe

Delete = rarlng.dll

License = [title of the license dialog]

{

License text1

License text2

...

}

Display the software license when starting SFX. User may either accept it and continue extraction or decline and quit.

License may be either in HTML or plain text format. In the next case SFX module merges and reformats the specified text strings to fit them optimally into the dialog. So if you wish to start a new paragraph, you need to put the empty string before It.

Using HTML you may control colors, fonts and formatting of displayed text. Description of HTML syntax is available on The World Wide Web Consortium site. Also it is possible to use any web page editor program to prepare HTML text.

Examples :

License = End user license agreement

{

All copyrights to RAR are exclusive owned by the author

This program is shareware. Anyone may use this software during a test period.

Following this test period, you MUST register.

}

Path = [your path here]

Where to install the files contained in the SFX.

Examples :

Path =% systemdrive% \ WINDOWS \ System32

This installs to System32 in the Windows folder.

Path = AIM

This installs to Program Files \ AIM.

Path = Calc 3.05

Set the default path to "Program Files \ Calc 3.05":

Path = C: \ Calc

Set the default path to "C: \ Calc"

Path =. \ Calc

Set "Calc" folder without any preceding text as the default path:

Presetup = [program]

SF) will try to execute [program] before starting extraction. The destination folder is set as the current before executing [program]. You may use this command, for example, to remove a previous version of program, when installing a new version over The Old one. If a program name contains spaces, it must be enclosed in quotes.

Examples :

Presetup = uninstall.exe / clean

Runs "uninstall.exe" before setup / extraction.

SavePath

This command allows SFX to store the destination path entered by user to Registry and then restore it when SFX archive with the same parameter of Path command executed the next time. The original value of Path command is placed to the list associated with the destination path input Field, so a user may choose between prior imported and original paths.

This feature may be convenient when installing new versions or upgrades of some software to the same folder. It allow change the proposed path to desired only once again instead of retyping it every time.

SavePath command may be used only in combination with Path command.

Examples :

Path = Calc 3.05

SavePath

TempMode = [Question] [, Title]

This command force SFX to create a temporary folder, extract all files to it, start the program specified in Setup command and remove the temporary folder including all its contents after completing the Setup program. The SFX automatically sets the silent mode to skip the the start Dialog when encounter these operations. If TempMode command is present, a script should have command command and must not include Path command.

TempMode command may have the optional string parameter, which is used to define a question and question title displayed before extraction. In this case extraction is started only if user options "Yes" button.

Examples :

TempMode

Unpacks to temp folder.

TempMode = Do you wish to continue installation of Calculator 3.05 ?, Calculator setup

Creates temp folder, and containing dialog with text "Do you wish to continue installation of Calculator 3.05?"

Setup = [program]

SFX will try to execute <program> after successful extraction. The folder containing extracted files is set as the current before executing [program]. If a program name contains spaces, it must be enclosed in quotes.

Notes:

1) If you have problems to use SFX to run InstallShield setup.exe, try to execute "setup.exe / SMS" instead of simple "setup.exe". This switch allows SFX to detect termination of the InstallShield setup program.

2) All switches specified in SFX command line are passed to a program from Setup = <program> command. SFX itself understands only -s switch, which forces the silent install mode without displaying the start dialog.

3) SFX module sets sfxname environment variable before running the setup program. This variable contains the name of SFX archive, so setup program can read it if it needs such information.

Examples :

Setup = setup.exe

SFX will try to run "setup.exe".

Silent = X

Where X can be:

1 = Start dialog is unnaturally, including the progress bar and file names.

2 = Confirmation to start is skipped, but users still see performing of the archive unpacking.

This is the setting for what you want displayed on the screen.

Examples :

Silent = 2

This displays the unzipping box, but no pop-up messages.

Text = [string]

Or

Text

{

String1

String2

...

}

This adds the specified plain text or HTML strings to the text output window of SFX module. When SFX module encounters Text command the first time, it resets the default contents of this window before adding [string]. Following commands append [string] to the Already existing text

On the used syntax this command may add either a single string or several strings at once.

In case of plain text contents SFX module merges and reformats the specified text strings to fit them optimally into the dialog. So if you wish to start a new paragraph, you need to put the empty string before it.

Using HTML you may control colors, fonts and formatting of displayed text. Description of HTML syntax is available on The World Wide Web Consortium site. Also it is possible to use any web page editor program to prepare HTML text.

Examples :

Text = Here is my new program

Add the single string to the dialog window

Text

{

Most interesting features of this program are:

- support of the Windows Clipboard;

- processing of files up to 10KB size each;

}

Add the specified text to the dialog window

Overwrite = X

Where X can be:

0 = User will be asked before overwriting files

1 = Overwrite the file if it exists without confirmation

2 = All existing files will not be over

This is the setting for whether the SFX should overwrite the file if it exists.

Examples :

Overwrite = 1

This means: YES, overwrite.

Shortcut = X, "PATHTOPROGRAM", "SUBMENU", "DESCRIPTION", "SHORTCUTNAME"

Where X can be:

D = Desktop

S = Start Menu

P = Start Menu / Programs

T = Startup

This one makes a shortcut. Replace the variables with real ones

Also, if there is some way to install shortcuts to locations other than the ones I have listed, please let me know.

Examples :

Shortcut = P, "mplayerc.exe", "Media Player", "Media Player Classic v6.4.8.2", "Media Player Classic"

This creates a shortcut to the  mplayerc.exe  file in the SFX (no matter where it is installed to), in  Start -> Programs -> Media Player . The shortcut tooltop (when you move your mouse over it) displays  Media Player Classic v6 .4.8.2 , and the options itself is named  Media Player Classic .

Shortcut = P, "mplayerc.exe", "", "Media Player Classic v6.4.8.2", "Media Player Classic"

This creates a shortcut to the  mplayerc.exe  file in the SFX (no matter where it is installed to), in  Start -> Programs . The shortcut tooltop (when you move your mouse over it) displays  Media Player Classic v6.4.8.2 , And the options itself is named  Media Player Classic .

Title = [title]

Set a title of SFX window.

Examples :

Title = Calculator, version 3.05

; Comment below contains SFX script commands

Path =% systemdrive% \ WINDOWS \ System32

SavePath

Silent = 1

Overwrite = 1

Shortcut = P, "mplayerc.exe", "", "Media Player Classic v6.4.8.2", "Media Player Classic"

Edited December 16, 2004 By a06lp


Another link to use WinRAR SFX in command line:  Winrar SFX command line ignoring -iicon switch

Rar a -r -ep1 -sfx -iiconC: \ AMC \ setupicons \ setup.ico -z "Source \ createrarsetups.conf" setup.exe "SetupFiles \ *"

"% ProgramFiles% \ WinRAR \ WinRAR.exe" a -r -ep1 -inul -ibck -y -sfx -iiconC: \ AMC \ setupicons \ setup.ico -z "Source \ createrarsetups.conf" setup.exe "SetupFiles \ * " 
If errorlevel 1 echo there was an error on creating the SFX archive!

Rar a -r -ep1 -sfx -z "Source \ createrarsetups.conf" setup.exe "SetupFiles \ *" 
Winrar s-iiconC: \ AMC \ setupicons \ setup.ico setup.exe

Another machine to use WinRAR SFX manuly: how to cut the resources under the Debug folder into an EXE file directly

WinRAR自解压文件终极指南:从基础配置到高级自定义(含图标替换+静默安装) 本文详细介绍了WinRAR自解压文件的创建与高级自定义技巧,包括基础配置、静默安装、路径控制、图标替换及界面美化等。通过本指南,您将掌握如何制作专业且高效的自解压文件,适用于软件分发和文件共享场景,特别适合Windows用户和技术文档分发需求。 阅读详情

相关推荐

全面掌握WinRAR:压缩包管理应用完全指南

本文还有配套的精品资源,点击获取 简介:WinRAR是一款深受用户喜爱的压缩工具,不仅支持多种压缩格式,还提供了丰富的文件管理、修复、加密等实用功能。本文将深入解析WinRAR的主要功能和高级特性,并提供使用技巧,旨在帮助用户高效管理和安全使用压缩文件,同时介绍注册与许可的相关信息。 1. WinRAR软件概述 WinRAR作为一款历史悠久的压缩工具软件,其...

weixin_35761094的博客 1964

批处理脚本语言

批处理脚本语言 1.删除install_setup文件里面程序: @echo off    cd /d “.\install_setup”    del /s /q /f .    for /d %%i in (*) do rd /s /q “%%i”    pause&gt;nul    2.删除同目录下abc文件夹 rd abc...

韬光养晦 579

使用 WinRAR 创建压缩文件的详细指南

WinRAR是一款广泛使用的压缩工具,它支持多种压缩格式,如RAR、ZIP以及其它如CAB、ARJ、TAR、GZ等。这些格式允许用户在不同的操作系统之间高效地压缩和传输文件。WinRAR的界面直观,提供了简单易懂的压缩和解压缩功能,同时也支持对压缩文件进行复杂的管理,包括文件加密、分卷压缩、恢复记录等功能。WinRAR不仅为用户提供压缩和解压缩的基本功能,其强大的文件管理能力使得用户可以方便地处理压缩包内的文件,如添加、删除、重命名等。

weixin_31486261的博客 2348

一键生成自动解压文件:WinRAR 实用技巧

WinRAR自解压技巧:让文件分享更便捷

passneo的博客 2384

WinRaR去除弹窗广告的有效方法.zip

去除winrar各个版本打开时广告的小方法。关于操作的方法我也已经将相关的操作步骤,放入程序包中,请大家参阅!

红日-VulnStack靶场-ATT&CK(二):从Weblogic漏洞到域控渗透实战

本文详细解析了红日安全团队VulnStack靶场中从Weblogic漏洞到域控渗透的完整攻击链。通过实战演示Weblogic反序列化漏洞利用、Cobalt Strike持久化控制、域内信息收集及PsExec横向移动等关键技术,复现了企业内网渗透的典型场景,并提供了防御建议。

tgb3456789的博客 936

WinRAR命令行参数详解

 用法:     rar - -                a             添加文件到压缩文件c             添加压缩文件注释cf            添加文件注释ch            更改压缩文件参数cw            写入压缩文件注释到文件d             删除压缩文件中的文件e             解压压缩文件到当前目录

Dumbbell的专栏 3894

Linux V4L2驱动开发实战:手把手教你用I2C摄像头Sensor注册一个v4l2_subdev

本文详细解析了Linux V4L2驱动开发中I2C摄像头Sensor注册v4l2_subdev的全流程,包括初始化、操作集填充、异步匹配等关键环节。通过实战案例和代码示例,帮助开发者掌握V4L2子系统下的摄像头驱动开发技巧,提升嵌入式Linux系统开发能力。

weixin_30328063的博客 418

WinRAR的自解压模式 - imsoft.cnblogs

一个 SFX (SelF-eXtracting)自解压文件是压缩文件的一种,它结合了可执行文件模块,一种用以运行从压缩文件解压文件的模块。这样的压缩文件不需要外部程序来解压自解压文件的内容,它自己便可以运行该项操作。然而 WinRAR 仍然可将自解压文件当成是任何其它的压缩文件处理。所以如果你不愿意运行所收到的自解压文件 (比如说,它可能含有病毒时),你可以使用 WinRAR 来查看或是解压它的内...

weixin_34192732的博客 1007

Qlib+backtrader:2014.1.1-2023.9.20最新回测结果,可以实盘吗?

今年以来,在研究了qlib和backtrader的基础上,把二者结合起来进行了一个策略研究。简单说就是用qlib在200只股票的股票池中进行滚动训练与预测(walk forward),总体数据范围是2005到2023年,以20日间隔滚动训练和预测,最终得到2014.1.1-2023.9.20共10年测试期的收益率预测结果。将预测结果代入backtrader进行回测,得到如下回测结果。

qtbgo的博客 1783

海思ISP调优实战:从实验室到真实场景的IPC相机图像质量优化指南

本文深入探讨海思ISP调优在IPC相机图像质量优化中的实战应用,从实验室标定到真实场景部署的全链路调优方法。重点解决光照动态范围、色温变化和噪声特性等核心问题,提供AE权重表配置、CCM标定、3DNR时域滤波等关键技术方案,帮助实现从理论到实践的图像质量提升。

s3t4u的博客 750

WinRar SFX自解压打包生成exe

打包后生成exe,可以直接后台解压缩,解压后直接运行MyApp.exe程序。需要安装WinRar。

czjnoe的博客 80

树莓派使用 OLED 屏显示图片及文字

树莓派默认是不带显示屏的,如果想要查看系统的一些信息,需要使用电脑登录到树莓派,或者通过 HDMI 连接外接显示器查看。这样做总是有点麻烦,我们可以通过外接一个 OLED 屏来显示一些关键参数或者图片。本文将详细介绍操作方法。 OLED 模组介绍 OLED 屏主要有两种:128×32 和 128×64 ,主要颜色是白、黄、蓝。OLED 屏的特点是功耗低,价格便宜,使用 I2C 接口与主机连接。本文所使用的是 128×64 尺寸的屏幕,外形如下: [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直

码到成功 3743

WinRAR命令行参数整理

我的实例:  将D:/wk.doc 压缩为:final.rar  d:/winrar/rar a d:/final.rar d:/wk.doc  将final.rar中的wk.doc解压到F:盘  rar e d:/final.rar F:  将final.rar转换成自解压文件  rar s final,rar(默认转换到同级目录下了)  给自解压文件(.exe)添加注

冷月宫主的专栏 3538

12、认知地图的建模与学习

本博客系统介绍了认知地图的定义、背景及其在机器智能领域的应用,重点探讨了模糊认知地图(FCMs)的建模方法与优势。文章还对比分析了几种主流的认知地图模型(如Axelrod模型、Kosko模型等),并讨论了模型的稳定性条件及实际应用前景。通过智能制造和医疗诊断的具体案例,展示了认知地图在复杂因果推理中的强大能力,并提出了模型优化方向与未来研究展望。

plant的博客 209

YoloV8优化:感受野注意力卷积运算(RFAConv),效果秒杀CBAM和CA等 | 即插即用系列

感受野注意力卷积运算(RFAConv),解决卷积块注意力模块(CBAM)和协调注意力模块(CA)只关注空间特征,不能完全解决卷积核参数共享的问题

①答疑群聊服务;②YOLO大模型知识问答系统;③计算机视觉论文生成智能体; 4264

珍藏:很全面的WinRAR实用技巧系列

WinRAR也可以管理我的桌面时间长了,桌面上堆的东西实在太多,平时该如何管理呢?安装了WinRAR的朋友可以请它来帮忙,用它管理清除无用的桌面文件或图标。 以XP系统为例,系统所在目录是“C:/WINDOWS”,假设用户名为“User”,桌面上的图标和文件都在“C:/Documents and Settings/User/桌面”文件夹中。确定桌面上需要保存的图标和文件,在记事本中撰写文件列表

盐碘 5923

PS射击游戏射线检测优化:原理、工程与全链路高性能实现

射线池:减少GC,提升批量检测效率。分层检测:先粗后细,远距离射击高效判定。批量检测:并行处理,适合大量射线场景。空间结构:进一步加速大场景检测。下面继续深入射线检测优化,补充更多实用细节和进阶技巧,包括空间分区加速、射线检测多线程/异步化、射线合并与分帧、射线池通用模板、常见性能陷阱与调优建议等。对于极端性能需求,可自定义轻量级物理系统,仅检测关键对象(如玩家、子弹),跳过复杂物理引擎。结合AABB、OBB、球体等简单碰撞体,射线-包围体检测极快。空间分区+分层检测是大场景射线优化核心。

本博客聚焦游戏开发技巧、创业实战心得及大学热门课程干货。这里既有技术深度,也有思维广度,无论你是开发者、创业者还是高校学子,都能在这里找到适合自己的成长之路! 434

rar.exe命令行压缩文件[可用于批处理][备份文件]

rar.exe 命令行参数 [可用于批处理][备份文件] [语法]RAR <命令> [ -<开关> ] <压缩文件> [ <@列表文件...> ]RAR [ <文件...> ] [ <解压路径\> ][命令]A 增加文件到压缩包,如果省略参数A也为添加文件,但不同的是添加当前路径文件到指定路径;...

weixin_30648963的博客 822

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

很全面的WinRAR实用技巧系列 - imsoft.cnblogs

WinRAR也可以管理我的桌面时间长了,桌面上堆的东西实在太多,平时该如何管理呢?安装了WinRAR的朋友可以请它来帮忙,用它管理清除无用的桌面文件或图标。 以XP系统为例,系统所在目录是“c:\windows”,假设用户名为“user”,桌面上的图标和文件都在“c:\documents and settings\user\桌面”文件夹中。确定桌面上需要保存的图标和文件,在记事本中撰写文件列表...

weixin_34124577的博客 279

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

2026 WinRAR SFX后门攻防全指南:从杀软静默绕过到内核级持久化

WinRAR SFX后门攻击是一种"合法功能滥用"的经典攻击手法,它利用用户对压缩文件的信任与杀软的解析盲区,实现了隐蔽入侵与长期控制。随着CVE-2023-38831、CVE-2025-8088等高危漏洞的披露,SFX攻击的门槛大幅降低,威胁呈指数级增长。对于企业安全团队而言,防御SFX攻击不能仅仅依靠传统的杀毒软件,而需要构建多层次、全方位的防御体系。从终端升级与加固,到网络与邮件防护,再到员工安全意识培训,每个环节都不可或缺。

从零开始,掌握网络安全。提供全面的网络安全教程、攻防演练技巧和行业动态。 414

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

驱动driver自解压静默安装-运用7-zip自解压技术

一.工具下载与名词解释 1.自解压工具很多,偏爱7z,强大而又免费。 2.官网下载7-zip:http://www.7-zip.org/ 中文:http://sparanoid.com/lab/7z/ 3.7-ZIP SFX Maker(7-ZIP高级自解压生成工具):https://sourceforge.net/projects/sfx-maker/ 4.SFX:通常在压缩解压软件的安

Greless的后花园 1万+

压缩与解压缩 与多个安装文件的合并问题

压缩与解压缩6—WinRAR 的基本使用   一个 SFX (SelF-eXtracting)自解压文件是压缩文件的一种,它结合了可执行文件模块,一种用以运行从压缩文件解压文件的模块。这样的压缩文件不需要外部程序来解压自解压文件的内容,它自己便可以运行该项操作。然而 WinRAR 仍然可将自解压文件当成是任何其它的压缩文件处理。所以如果你不愿意运行所收到的自解压文件 (比如说,它可能含有病

sunxinyu的专栏 7547

7zip命令行调用

7z a -tzip -p111 archive.7z txt.txt 压缩 密码为1117z x -tzip -p111 archive.7z 解压 密码为1117z.exe 是 7-Zip 的命令行版本。7z.exe 使用 7-Zip 的其它模块,7za.exe 是7-Zip 的独立版本,7za.exe 仅支持 7z、zip、gzip、bzip2 和 tar 格式,...

weixin_30398227的博客 1899

window自动升级惹的祸

我刚刚装的是winxpsp1(9394)英文版,本想升级打补丁,无奈遇到如下情况。1,首先在在系统盘c盘中发现多了五个文件:sex.bat,sex.html,sex.REG,xfks.exe,autoexec.sys.2,我是在装Norton AntiVirus 2004,正在升级病毒库时,突然被关闭,并且调不出任务栏,包括msconfig或regedit等一系列能修改启动信息的命令。3,无奈,幸

段木香的专栏 1543

RAR 命令行参数详解

命令行参数详解a 添加文件到压缩文件-ep1: 表示不把路径%USERPROFILE%保存在压缩文件中 -IBCK 在后台运行 WinRAR -SFX[名称] 创建自解压文件-IICON<名称> - 指定自解压图标-IIMG<名...

weixin_34342207的博客 1367
上一篇: mshta usage
下一篇: Use BlueStacks in Command Line
SingingCoder
博客等级 码龄15年 9粉丝 32原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值