Extract MSI from EXE

前端 未结 8 1401
走了就别回头了
走了就别回头了 2020-11-22 04:16

I want to extract the MSI of an EXE setup to publish over a network.

For example, using Universal Extractor, but it doesn\'t work for Java Runtime Environment.

8条回答
  •  执笔经年
    2020-11-22 04:36

    The only way to do that is running the exe and collect the MSI. The thing you must take care of is that if you are tranforming the MSI using MST they might get lost.

    I use this batch commandline:

    SET TMP=c:\msipath
    
    MD "%TMP%"
    
    SET TEMP=%TMP%
    
    start /d "c:\install" install.exe /L1033
    
    PING 1.1.1.1 -n 1 -w 10000 >NUL
    
    for /R "%TMP%" %%f in (*.msi) do copy "%%f" "%TMP%"
    
    taskkill /F /IM msiexec.exe /T
    

提交回复
热议问题