tool

7z 압축파일 자동풀기 실행프로그램 만들기

란마12 2014. 10. 17. 17:29

1. 다운로드 7zsd.sfx

    http://7zsfx.solta.ru/en/


2. 설정파일 생성(예: config.txt)

    ;!@Install@!UTF-8!

    InstallPath="%Programfiles%\\7zzzz"

    GUIMode="2"

    ;!@InstallEnd@!


3. 명령창에서

    copy /b 7ZSD.sfx + config.txt + [7z압축파일명] [생성될설치파일명]



Use the above directions + additionally add the following to 'config.txt':

RunProgram="hidcon:setup.cmd"

Change 'setup.cmd' to whatever. If you don't run a batch file, then remove the 'hidcon:' part(it's used to hide the console window). You can run 'msi' files directly without using 'msistub.exe' or 'msiexec.exe' with this modified 7z SFX installer module(7ZSD.sfx). Btw, if you don't want a fixed extraction path and just want to use the temp folder, and also have the folder with the extracted files deleted afterwards, then remove the following from 'config.txt' :

InstallPath="x"