7zip Self Extracting Archive (SFX) without administrator privileges

前端 未结 6 2057
情书的邮戳
情书的邮戳 2021-02-20 05:28

I use 7zip to create the SFX as follows:

7z.exe a -r archive.7z *

Then I do a binary copy with the 7zS.sfx file (used to create a self extracti

6条回答
  •  被撕碎了的回忆
    2021-02-20 06:31

    I fixed this problem with mpursuit answer.

    To update manifest of 7zS.sfx you can use the following procedure:

    manifest.xml

       
        
    
          
            
              
              
              
              
            
          
    
          
            
              
                
              
            
          
    
        
    
    call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
    mt.exe -manifest manifest.xml -outputresource:"7zS.sfx;#1"
    copy /b 7zS.sfx + build.config + archive.7z sfx_archive.exe
    

提交回复
热议问题