Can Zip2Exe create an exe that doesn't prompt the user?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Kyle_1988
    Junior Member
    • Jan 2018
    • 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?
  • JasonFriday13
    Major Dude
    • May 2005
    • 930

    #2
    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

    Comment

    • Anders
      Moderator
      • Jun 2002
      • 5643

      #3
      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
      IntOp $PostCount $PostCount + 1

      Comment

      • Kyle_1988
        Junior Member
        • Jan 2018
        • 12

        #4
        Thank you kindly for the replies!

        Comment

        Working...
        X