Creating 7zip SFX installer

I'm trying to create self extracting archive with gui, I'm using 7-Zip 9.20 on Windows 10, I just want the files in the 7z file to extract to the InstallPath directory, without running the file. I created aa.7z file and put aa.exe in it, then used this command copy /b 7zS.sfx + config.txt + aa.7z installer.exe

with this config.txt

;!@Install@!UTF-8!
InstallPath="%PROGRAMFILES%\\aa"
Title="Installation"
BeginPrompt="aa"
ExtractDialogText="bb"
ExtractPathText="cc"
ExtractTitle="dd"
GUIFlags="8+32+64+256+4096"
GUIMode="1"
OverwriteMode="0"
Shortcut="Du,{%%T\\aa.exe},{},{},{as},{fs},{},{%%T\\aa.exe},{0}"
FinishMessage="finish"
;!@InstallEnd@!

When executing installer.exe, ExtractDialogText,ExtractPathText,ExtractTitle does not show up I only see Title and BeginPrompt Labels and two buttons Yes and No, When I click Yes I get the error Can not find setup.exe, I didn't want to run any file and I don't know what setup.exe is, also the file doesn't get extracted to InstallPath

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like