How to execute a bat file inside exe? (exe created using WinRAR sfx)

元气小坏坏 提交于 2020-02-06 07:52:12

问题


I want to create an exe file which includes mysql.msi and java.zip. I have written vbscript to install mysql and extract java file in C: drive. It works fine.

Now my problem is:

Convert the source folder as exe by using WinRAR sfx option.

How can I execute the vbscript or bat file (for executing vbscript) when I click the created exe?

Has anybody a solution?


回答1:


SFX commands: Setup i.e., Setup = <program>

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

Example

Setup = setup.exe



来源:https://stackoverflow.com/questions/12638960/how-to-execute-a-bat-file-inside-exe-exe-created-using-winrar-sfx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!