You are here

Error when compiling installer

7 posts / 0 new
Last post
quackstar
Offline
Last seen: 12 years 10 months ago
Joined: 2008-02-19 10:41
Error when compiling installer

Every time i try to compile the menu, i get a weird error:

Output: "H:\portableapps\PortableApps\SWEAW_Portable_0.3.paf.exe"
Internal compiler error #12345: deflateInit() failed(initialization failed [-2]).
Error - aborting creation process

When i change the default installer to Best Compressor, i get this as well:
Note: you may have one or two (large) stale temporary file(s)
left in your temporary directory (Generally this only happens on Windows 9x).

A clean out of the temp dir with CCleaner gives the same error, but surprisingly spits out an exe file that actually works.

Full log:

MakeNSIS v2.38 - Copyright 1995-2008 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.

Processing plugin dlls: "H:\portableapps\PortableApps\NSISPortable\App\NSIS\Plugins\*.dll"
- AdvSplash::show
- Banner::destroy
- Banner::getWindow
- Banner::show
- BgImage::AddImage
- BgImage::AddText
- BgImage::Clear
- BgImage::Destroy
- BgImage::Redraw
- BgImage::SetBg
- BgImage::SetReturn
- BgImage::Sound
- Dialer::AttemptConnect
- Dialer::AutodialHangup
- Dialer::AutodialOnline
- Dialer::AutodialUnattended
- Dialer::GetConnectedState
- Dialogs::Author
- Dialogs::Folder
- Dialogs::InputBox
- Dialogs::InputRegCode
- Dialogs::Open
- Dialogs::Save
- Dialogs::Ver
- FindProcDLL::FindProc
- InstallOptions::dialog
- InstallOptions::initDialog
- InstallOptions::show
- LangDLL::LangDialog
- Math::Script
- MoreInfo::GetComments
- MoreInfo::GetCompanyName
- MoreInfo::GetFileDescription
- MoreInfo::GetFileVersion
- MoreInfo::GetInternalName
- MoreInfo::GetLegalCopyright
- MoreInfo::GetLegalTrademarks
- MoreInfo::GetOSUserinterfaceLanguage
- MoreInfo::GetOriginalFilename
- MoreInfo::GetPrivateBuild
- MoreInfo::GetProductName
- MoreInfo::GetProductVersion
- MoreInfo::GetSpecialBuild
- MoreInfo::GetUserDefined
- NSISdl::download
- NSISdl::download_quiet
- Splash::show
- StartMenu::Init
- StartMenu::Select
- StartMenu::Show
- TypeLib::GetLibVersion
- TypeLib::Register
- TypeLib::UnRegister
- UserInfo::GetAccountType
- UserInfo::GetName
- UserInfo::GetOriginalAccountType
- VPatch::GetFileCRC32
- VPatch::GetFileMD5
- VPatch::vpatchfile
- newadvsplash::hwnd
- newadvsplash::play
- newadvsplash::show
- newadvsplash::stop
- nsExec::Exec
- nsExec::ExecToLog
- nsExec::ExecToStack
- registry::_Close
- registry::_CopyKey
- registry::_CopyValue
- registry::_CreateKey
- registry::_DeleteKey
- registry::_DeleteKeyEmpty
- registry::_DeleteValue
- registry::_Find
- registry::_HexToStr
- registry::_KeyExists
- registry::_MoveKey
- registry::_MoveValue
- registry::_Open
- registry::_Read
- registry::_ReadExtra
- registry::_RestoreKey
- registry::_SaveKey
- registry::_StrToHex
- registry::_Unload
- registry::_Write
- registry::_WriteExtra

SetCompressor: /FINAL lzma
Processing config:
PluginDir: "H:\portableapps\PortableApps\NSISPortable\App\NSIS\..\..\Data\Plugins"
- FindProcDLL::FindProc
- MoreInfo::GetComments
- MoreInfo::GetCompanyName
- MoreInfo::GetFileDescription
- MoreInfo::GetFileVersion
- MoreInfo::GetInternalName
- MoreInfo::GetLegalCopyright
- MoreInfo::GetLegalTrademarks
- MoreInfo::GetOSUserinterfaceLanguage
- MoreInfo::GetOriginalFilename
- MoreInfo::GetPrivateBuild
- MoreInfo::GetProductName
- MoreInfo::GetProductVersion
- MoreInfo::GetSpecialBuild
- MoreInfo::GetUserDefined
- System::Alloc
- System::Call
- System::Copy
- System::Free
- System::Get
- System::Int64Op
- System::Store
- newadvsplash::hwnd
- newadvsplash::play
- newadvsplash::show
- newadvsplash::stop
- nsDialogs::Create
- nsDialogs::CreateControl
- nsDialogs::CreateItem
- nsDialogs::GetUserData
- nsDialogs::OnBack
- nsDialogs::OnChange
- nsDialogs::OnClick
- nsDialogs::OnNotify
- nsDialogs::SelectFileDialog
- nsDialogs::SelectFolderDialog
- nsDialogs::SetRTL
- nsDialogs::SetUserData
- nsDialogs::Show
- registry::_Close
- registry::_CopyKey
- registry::_CopyValue
- registry::_CreateKey
- registry::_DeleteKey
- registry::_DeleteKeyEmpty
- registry::_DeleteValue
- registry::_Find
- registry::_HexToStr
- registry::_KeyExists
- registry::_MoveKey
- registry::_MoveValue
- registry::_Open
- registry::_Read
- registry::_ReadExtra
- registry::_RestoreKey
- registry::_SaveKey
- registry::_StrToHex
- registry::_Unload
- registry::_Write
- registry::_WriteExtra
- textreplace::_FillReadBuffer
- textreplace::_FindInFile
- textreplace::_FreeReadBuffer
- textreplace::_ReplaceInFile
- textreplace::_Unload
!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "H:\portableapps\PortableApps\StarWarsEmpireAtWarPortable\Other\Source"

Processing script file: "H:\portableapps\PortableApps\StarWarsEmpireAtWarPortable\Other\Source\PortableApps.comInstaller.nsi"
!define: "PORTABLEAPPSINSTALLERVERSION"="0.12.4.0"
!include: "PortableApps.comInstallerConfig.nsh"
!define: "NAME"="Star Wars: Empire At War Portable Launcher"
!define: "SHORTNAME"="SWEAWPortable"
!define: "VERSION"="0.3.0.0"
!define: "FILENAME"="SWEAW_Portable_0.3"
!define: "CHECKRUNNING"="SWEAWPortable.exe"
!define: "CLOSENAME"="Star Wars: Empire At War Portable Launcher"
!define: "ADDONSDIRECTORYPRESERVE"="NONE"
!define: "INSTALLERCOMMENTS"="For additional details, visit PortableApps.com"
!define: "INSTALLERADDITIONALTRADEMARKS"="LucasArts and Petroglyph. "
!define: "INSTALLERLANGUAGE"="English"
!include: closed: "PortableApps.comInstallerConfig.nsh"
!define: "MAINSECTIONIDX"="0"
Name: "Star Wars: Empire At War Portable Launcher"
OutFile: "..\..\..\SWEAW_Portable_0.3.paf.exe"
InstallDir: "\SWEAWPortable"
Caption: "Star Wars: Empire At War Portable Launcher | PortableApps.com Installer"
VIAddVersionKey: "ProductName" "Star Wars: Empire At War Portable Launcher"
VIAddVersionKey: "Comments" "For additional details, visit PortableApps.com"
VIAddVersionKey: "CompanyName" "PortableApps.com"
VIAddVersionKey: "LegalCopyright" "PortableApps.com Installer Copyright 2007-2009 PortableApps.com."
VIAddVersionKey: "FileDescription" "Star Wars: Empire At War Portable Launcher"
VIAddVersionKey: "FileVersion" "0.3.0.0"
VIAddVersionKey: "ProductVersion" "0.3.0.0"
VIAddVersionKey: "InternalName" "Star Wars: Empire At War Portable Launcher"
VIAddVersionKey: "LegalTrademarks" "LucasArts and Petroglyph. PortableApps.com is a registered trademark of Rare Ideas, LLC."
VIAddVersionKey: "OriginalFilename" "SWEAW_Portable_0.3.paf.exe"
VIAddVersionKey: "PortableApps.comInstallerVersion" "0.12.4.0"
SetCompress: Auto
warning: SetCompressor ignored due to previous call with the /FINAL switch (H:\portableapps\PortableApps\StarWarsEmpireAtWarPortable\Other\Source\PortableApps.comInstaller.nsi:59)
SetCompressorDictSize: 32 mb
SetDatablockOptimize: On
CRCCheck: on
AutoCloseWindow: true
!include: "H:\portableapps\PortableApps\NSISPortable\App\NSIS\Include\MUI.nsh"
!include: "H:\portableapps\PortableApps\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh"
NSIS Modern User Interface version 1.8 - © 2002-2008 Joost Verburg (H:\portableapps\PortableApps\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh:8)
!define: "MUI_INCLUDED"=""
!define: "MUI_SYSVERSION"="1.8"
!define: "MUI_VERBOSE"="3"
!include: closed: "H:\portableapps\PortableApps\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh"
!include: closed: "H:\portableapps\PortableApps\NSISPortable\App\NSIS\Include\MUI.nsh"
!include: "H:\portableapps\PortableApps\NSISPortable\App\NSIS\Include\FileFunc.nsh"
!define: "FILEFUNC_INCLUDED"=""
!include: closed: "H:\portableapps\PortableApps\NSISPortable\App\NSIS\Include\FileFunc.nsh"
!include: "H:\portableapps\PortableApps\NSISPortable\App\NSIS\Include\LogicLib.nsh"
!include: closed: "H:\portableapps\PortableApps\NSISPortable\App\NSIS\Include\LogicLib.nsh"
!insertmacro: DriveSpace
Internal compiler error #12345: deflateInit() failed(initialization failed [-2]).

Note: you may have one or two (large) stale temporary file(s)
left in your temporary directory (Generally this only happens on Windows 9x).

John T. Haller
John T. Haller's picture
Online
Last seen: 22 min 32 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Don't Edit

The PortableAppsInstaller.nsi file should not be edited. Only the config file. If you edit the installer, it's not supported (and you can't call your app a PortableApps.com Format app).

EDIT: Wait, I think you're doing a launcher, not an installer, correct? If so, we'd need more info on your code to assist.

Sometimes, the impossible can become possible, if you're awesome!

quackstar
Offline
Last seen: 12 years 10 months ago
Joined: 2008-02-19 10:41
No... i didn't edit that

I didn't edit PortableApps.comInstaller.nsi. I edited PortableApps.comInstallerConfig.nsh. The compressor option was changed in the NSIS compiler. It was the only way i could get an exe out of it.

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 1 year 5 months ago
Developer
Joined: 2006-05-26 12:08
looks like you are missing

looks like you are missing some key plugins to compile it, Give NSIS Portable a try

your friendly neighbourhood moderator Zach Thibeau

quackstar
Offline
Last seen: 12 years 10 months ago
Joined: 2008-02-19 10:41
...

thats what i'm using...

Suprisingly, i restarted my computer and it worked.

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 1 year 5 months ago
Developer
Joined: 2006-05-26 12:08
well what you posted said

well what you posted said other wise it said NSIS 2.38 when my release is 2.44 Wink but if it worked for you thats great

your friendly neighbourhood moderator Zach Thibeau

JMC_78
Offline
Last seen: 12 years 7 months ago
Joined: 2011-01-05 14:35
Internal compiler error

Internal compiler error #12345: deflateInit() failed(initialization failed [-2]).

i have the same error
i downloaded the launcherGenerator, the template, the nsis thing
first the generator has not found the unicodeNsis and i had to rename the folder
then this error did appear all the time
then i did restart the pc ... because someone here said this may helps
then it did work one time and i got a launcher Biggrin
but then i did try it again with no changes and again it gives me this error

what is wrong
what can i do?

************************

Log in or register to post comments