How can I create an auto-executing, WinRar SFX file from a batch file?

前端 未结 1 1338
误落风尘
误落风尘 2020-12-30 09:14

I have a 3rd-party installer program that I would like for my users to be able to download and run as a pre-requisite to an application that I have written. The installer c

相关标签:
1条回答
  • 2020-12-30 10:11

    the easy way is like this:

    rar a -r -sfx -z"f:\xfs.conf" auto_install install_me.exe
    

    It will automatically create auto_install.exe in windows.And you need to create a xfs.conf file for sfx configuration; My example is:

    ; The path to the setup executable
    Setup=install_me.exe
    ; Extract the files to a temporary directory
    TempMode
    ; Use semi-silent mode
    Silent=1
    ; Overwrite any existing files
    Overwrite=1
    ; The title of the SFX archive
    Title=Running
    ; The text to show initially when the user clicks on the SFX archive (will only matter if using Silent=0)
    Text
    {
    The book is preparing to start.
    }
    

    Tell me if you still have problem.

    0 讨论(0)
提交回复
热议问题