Old 4th January 2018, 19:47   #1
Kyle_1988
Junior Member
 
Join Date: Jan 2018
Posts: 12
Can Zip2Exe create an exe that doesn't prompt the user?

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?
Kyle_1988 is offline   Reply With Quote
Old 5th January 2018, 02:52   #2
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 859
Have a look in ${NSISDIR}\Contrib\zip2exe, you can comment out the directory page in Classic.nsh or Modern.nsh.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 5th January 2018, 14:34   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,732
You could also create an actual installer, it should be pretty easy:

Quote:
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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 6th January 2018, 21:25   #4
Kyle_1988
Junior Member
 
Join Date: Jan 2018
Posts: 12
Thank you kindly for the replies!
Kyle_1988 is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Tags
convertziptosfx, dotnetzip, gui, nsis, zip2exe

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump