Old 12th August 2020, 22:46   #1
Aesh
Junior Member
 
Join Date: Aug 2020
Posts: 1
nsis7z Plugin - .pak won't extract files

Hello everyone. I'm completely new to NSI and stumbled onto it because I needed to build an installer for a privately hosted game server, which i co-own. I have been trying for days and many long hours, lots of google searching, etc. with no luck for my issue...

The Issue:
I believe the main issue lies in this bit of code I've outlined here. My installer will do everything and I don't encounter any issues with compiling, however the goldsaucer.pak won't extract any of it's files afterwards (using the nsis7z plugin) and I'm completely stumped...

code:

AddSize 14000000
SetOutPath "$INSTDIR"

;Add files
File installer.ico

DetailPrint "Extracting game files, please wait..."
${GetExePath} $R0
Nsis7z::ExtractWithDetails "$R0\goldsaucer.pak" "Installing game files %s..."





I have attached the Script.nsi that I have been using and an image of the "root" folder with all the files which I am trying to pack into this installer. I would GREATLY appreciate any help that someone more knowledgeable can provide. Its been extremely frustrating because I feel this is such a simple thing I'm missing. Thanks for your time.

Attached Files
File Type: nsi Script.nsi (18.0 KB, 82 views)
Aesh is offline   Reply With Quote
Old 13th August 2020, 00:23   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
MessageBox mb OK "$R0\goldsaucer.pak" and verify that the path is correct. If it is then perhaps the plug-in is unable to handle your .pak file? Try a older 7zip version to make the .pak?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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