I want to create a self-extracting zip that doesn't prompt the user for a destination folder. When run, it should just extract itself automatically using the destination folder that was built in during its creation.
The ConvertZipToSfx functionality of DotNetZip can do this, but it can only be run from the command line. I want that functionality but with a GUI like NSIS. Is this possible?
Can Zip2Exe create an exe that doesn't prompt the user?
4 posts
Have a look in ${NSISDIR}\Contrib\zip2exe, you can comment out the directory page in Classic.nsh or Modern.nsh.
You could also create an actual installer, it should be pretty easy:
OutFile mysfx.exe
Name MySFX
RequestExecutionLevel Admin ; Or "User" if you are not extracting to a protected folder
InstallDir "$ProgramFiles\MyStuff"
SetCompressor /SOLID LZMA
ShowInstDetails Show
#AutoCloseWindow true ; Uncomment this to close window after extraction
Section
SetOutPath $InstDir ; Create folder
File /r "c:\mystuff\*" ; The files
SectionEnd
Thank you kindly for the replies!