January 21, 2009 - 11:32pm
#1
ye14cV92
Offline
Last seen: 13 years 9 months ago
Joined: 2008-02-23 04:18
Portable Application Template 2.6.4 Problem
Error Message
MessageBox: 48: ""DataDirectory" was not set in INI file. Please check your configuration!"
Invalid command: {registry::Unload}
Error in script "E:\TestPortable\Source\TestPortable.nsi" on line 437 -- aborting creation process
Full Message
MakeNSIS v2.42 - Copyright 1995-2008 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.
Processing config:
Processing plugin dlls: "C:\Program Files\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
- FindProcDLL::FindProc
- InstallOptions::dialog
- InstallOptions::initDialog
- InstallOptions::show
- LangDLL::LangDialog
- Math::Script
- NSISdl::download
- NSISdl::download_quiet
- Splash::show
- StartMenu::Init
- StartMenu::Select
- StartMenu::Show
- System::Alloc
- System::Call
- System::Copy
- System::Free
- System::Get
- System::Int64Op
- System::Store
- TypeLib::GetLibVersion
- TypeLib::Register
- TypeLib::UnRegister
- UserInfo::GetAccountType
- UserInfo::GetName
- UserInfo::GetOriginalAccountType
- VPatch::GetFileCRC32
- VPatch::GetFileMD5
- VPatch::vpatchfile
- nsDialogs::Create
- nsDialogs::CreateControl
- nsDialogs::CreateItem
- nsDialogs::CreateTimer
- nsDialogs::GetUserData
- nsDialogs::KillTimer
- nsDialogs::OnBack
- nsDialogs::OnChange
- nsDialogs::OnClick
- nsDialogs::OnNotify
- nsDialogs::SelectFileDialog
- nsDialogs::SelectFolderDialog
- nsDialogs::SetRTL
- nsDialogs::SetUserData
- nsDialogs::Show
- 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
!define: "MUI_INSERT_NSISCONF"=""
Changing directory to: "E:\TestPortable\Source"
Processing script file: "E:\TestPortable\Source\TestPortable.nsi"
!define: "AUTHOR"="Tester"
!define: "APP"="Test"
!define: "LONGAPP"="Test"
!define: "VER"="0.0.0.0"
!define: "EXE"="Test.exe"
!define: "EXEPARMS"=""
!define: "REGKEYS"=""
!define: "USEREGKEYSFILE"="TRUE"
!define: "DELETEREGKEYS"="TRUE"
!define: "SETTINGSFILES"=""
!define: "SETTINGSDIRS"=""
!define: "ADMINREQUIRED"="TRUE"
!define: "REDIRECTUSERPROFILE"="TRUE"
!define: "USEGTKVERSION"=""
!define: "USEJAVAVERSION"=""
!define: "INSTALLSOURCES"="TRUE"
!define: "INSTALLDEFAULTS"="TRUE"
!define: "UPXPARMS"="--best --lzma"
!define: "PAFCOMPATIBILITY"="TRUE"
!define: "PUBLISHER"="Tester"
!define: "HOMEPAGE"="http://"
!define: "CATEGORY"="N/A"
!define: "DESCRIPTION"="Test Portable"
!define: "INSTALLSIZE"="0.1"
!define: "SHAREABLE"="true"
!define: "OPENSOURCE"="true"
!define: "FREEWARE"="true"
!define: "COMMERCIALUSE"="true"
!define: "PNAME"="TestPortable"
!define: "ICON"="TestPortable.ico"
!define: "SPLASHIMAGE"="TestPortable.jpg"
!define: "INI"="TestPortable.ini"
SetDatablockOptimize: on
SetCompress: force
SetCompressor: /FINAL /SOLID lzma
OutFile: "TestPortable.exe"
!define: "DOREGFILE"=""
!define: "DOWARNING"=""
!include: "C:\Program Files\NSIS\Include\Registry.nsh"
!define: "registry::Open"="!insertmacro registry::Open"
!define: "registry::Find"="!insertmacro registry::Find"
!define: "registry::Close"="!insertmacro registry::Close"
!define: "registry::KeyExists"="!insertmacro registry::KeyExists"
!define: "registry::Read"="!insertmacro registry::Read"
!define: "registry::Write"="!insertmacro registry::Write"
!define: "registry::ReadExtra"="!insertmacro registry::ReadExtra"
!define: "registry::WriteExtra"="!insertmacro registry::WriteExtra"
!define: "registry::CreateKey"="!insertmacro registry::CreateKey"
!define: "registry::DeleteValue"="!insertmacro registry::DeleteValue"
!define: "registry::DeleteKey"="!insertmacro registry::DeleteKey"
!define: "registry::DeleteKeyEmpty"="!insertmacro registry::DeleteKeyEmpty"
!define: "registry::CopyValue"="!insertmacro registry::CopyValue"
!define: "registry::MoveValue"="!insertmacro registry::MoveValue"
!define: "registry::CopyKey"="!insertmacro registry::CopyKey"
!define: "registry::MoveKey"="!insertmacro registry::MoveKey"
!define: "registry::SaveKey"="!insertmacro registry::SaveKey"
!define: "registry::RestoreKey"="!insertmacro registry::RestoreKey"
!define: "registry::StrToHex"="!insertmacro registry::StrToHex"
!define: "registry::HexToStr"="!insertmacro registry::HexToStr"
!define: "registry::Unload"="!insertmacro registry::Unload"
!include: closed: "C:\Program Files\NSIS\Include\Registry.nsh"
!include: "C:\Program Files\NSIS\Include\WordFunc.nsh"
!define: "WORDFUNC_INCLUDED"=""
!include: "C:\Program Files\NSIS\Include\Util.nsh"
!include: closed: "C:\Program Files\NSIS\Include\Util.nsh"
!define: "WordFind"="!insertmacro WordFindCall ''"
!define: "un.WordFind"="!insertmacro WordFindCall ''"
!define: "WordFindS"="!insertmacro WordFindSCall ''"
!define: "un.WordFindS"="!insertmacro WordFindSCall ''"
!define: "WordFind2X"="!insertmacro WordFind2XCall"
!define: "un.WordFind2X"="!insertmacro WordFind2XCall"
!define: "WordFind2XS"="!insertmacro WordFind2XSCall"
!define: "un.WordFind2XS"="!insertmacro WordFind2XSCall"
!define: "WordFind3X"="!insertmacro WordFind3XCall"
!define: "un.WordFind3X"="!insertmacro WordFind3XCall"
!define: "WordFind3XS"="!insertmacro WordFind3XSCall"
!define: "un.WordFind3XS"="!insertmacro WordFind3XSCall"
!define: "WordReplace"="!insertmacro WordReplaceCall"
!define: "un.WordReplace"="!insertmacro WordReplaceCall"
!define: "WordReplaceS"="!insertmacro WordReplaceSCall"
!define: "un.WordReplaceS"="!insertmacro WordReplaceSCall"
!define: "WordAdd"="!insertmacro WordAddCall"
!define: "un.WordAdd"="!insertmacro WordAddCall"
!define: "WordAddS"="!insertmacro WordAddSCall"
!define: "un.WordAddS"="!insertmacro WordAddSCall"
!define: "WordInsert"="!insertmacro WordInsertCall"
!define: "un.WordInsert"="!insertmacro WordInsertCall"
!define: "WordInsertS"="!insertmacro WordInsertSCall"
!define: "un.WordInsertS"="!insertmacro WordInsertSCall"
!define: "StrFilter"="!insertmacro StrFilterCall"
!define: "un.StrFilter"="!insertmacro StrFilterCall"
!define: "StrFilterS"="!insertmacro StrFilterSCall"
!define: "un.StrFilterS"="!insertmacro StrFilterSCall"
!define: "VersionCompare"="!insertmacro VersionCompareCall"
!define: "un.VersionCompare"="!insertmacro VersionCompareCall"
!define: "VersionConvert"="!insertmacro VersionConvertCall"
!define: "un.VersionConvert"="!insertmacro VersionConvertCall"
!include: closed: "C:\Program Files\NSIS\Include\WordFunc.nsh"
!insertmacro: WordFind
!insertmacro: end of WordFind
!include: "C:\Program Files\NSIS\Include\FileFunc.nsh"
!define: "FILEFUNC_INCLUDED"=""
!include: "C:\Program Files\NSIS\Include\Util.nsh"
!include: closed: "C:\Program Files\NSIS\Include\Util.nsh"
!define: "Locate"="!insertmacro LocateCall"
!define: "un.Locate"="!insertmacro LocateCall"
!define: "GetSize"="!insertmacro GetSizeCall"
!define: "un.GetSize"="!insertmacro GetSizeCall"
!define: "DriveSpace"="!insertmacro DriveSpaceCall"
!define: "un.DriveSpace"="!insertmacro DriveSpaceCall"
!define: "GetDrives"="!insertmacro GetDrivesCall"
!define: "un.GetDrives"="!insertmacro GetDrivesCall"
!define: "GetTime"="!insertmacro GetTimeCall"
!define: "un.GetTime"="!insertmacro GetTimeCall"
!define: "GetFileAttributes"="!insertmacro GetFileAttributesCall"
!define: "un.GetFileAttributes"="!insertmacro GetFileAttributesCall"
!define: "GetFileVersion"="!insertmacro GetFileVersionCall"
!define: "un.GetFileVersion"="!insertmacro GetFileVersionCall"
!define: "GetExeName"="!insertmacro GetExeNameCall"
!define: "un.GetExeName"="!insertmacro GetExeNameCall"
!define: "GetExePath"="!insertmacro GetExePathCall"
!define: "un.GetExePath"="!insertmacro GetExePathCall"
!define: "GetParameters"="!insertmacro GetParametersCall"
!define: "un.GetParameters"="!insertmacro GetParametersCall"
!define: "GetOptions"="!insertmacro GetOptionsCall"
!define: "un.GetOptions"="!insertmacro GetOptionsCall"
!define: "GetOptionsS"="!insertmacro GetOptionsSCall"
!define: "un.GetOptionsS"="!insertmacro GetOptionsSCall"
!define: "GetRoot"="!insertmacro GetRootCall"
!define: "un.GetRoot"="!insertmacro GetRootCall"
!define: "GetParent"="!insertmacro GetParentCall"
!define: "un.GetParent"="!insertmacro GetParentCall"
!define: "GetFileName"="!insertmacro GetFileNameCall"
!define: "un.GetFileName"="!insertmacro GetFileNameCall"
!define: "GetBaseName"="!insertmacro GetBaseNameCall"
!define: "un.GetBaseName"="!insertmacro GetBaseNameCall"
!define: "GetFileExt"="!insertmacro GetFileExtCall"
!define: "un.GetFileExt"="!insertmacro GetFileExtCall"
!define: "BannerTrimPath"="!insertmacro BannerTrimPathCall"
!define: "un.BannerTrimPath"="!insertmacro BannerTrimPathCall"
!define: "DirState"="!insertmacro DirStateCall"
!define: "un.DirState"="!insertmacro DirStateCall"
!define: "RefreshShellIcons"="!insertmacro RefreshShellIconsCall"
!define: "un.RefreshShellIcons"="!insertmacro RefreshShellIconsCall"
!include: closed: "C:\Program Files\NSIS\Include\FileFunc.nsh"
!insertmacro: GetParameters
!insertmacro: end of GetParameters
!define: "VAR_R0"="10"
CRCCheck: On
WindowIcon: Off
SilentInstall: Silent
AutoCloseWindow: true
SetOverwrite: ifnewer
Var: "SPLASHSCREEN"
Var: "PROGRAMEXE"
Var: "PROGRAMDIR"
Var: "PROGRAMPARMS"
Var: "DATADIR"
Var: "COMMONDIR"
Var: "INIFILE"
Var: "SECONDLAUNCH"
Var: "SOURCEDIR"
Var: "EXTRACTSOURCES"
Name: "Test Portable"
Icon: "TestPortable.ico"
Caption: "Test Portable - 0.0.0.0"
OutFile: "TestPortable.exe"
LoadLanguageFile: C:\Program Files\NSIS\Contrib\Language files\English.nlf
VIAddVersionKey: "ProductName" "Test Portable"
VIAddVersionKey: "Comments" "Allow Test to be run from a removeable drive. This launcher is based on the Portable Application Template created by Klonk (Karl Loncarek)."
VIAddVersionKey: "LegalCopyright" "Launcher created by Tester"
VIAddVersionKey: "CompanyName" "by Tester"
VIAddVersionKey: "FileDescription" "Test Portable"
VIAddVersionKey: "FileVersion" "0.0.0.0"
VIAddVersionKey: "OriginalFilename" "TestPortable.exe"
Section: "Main"
Call "InitINI"
Call "InitVars"
Call "InitInstall"
Call "Init"
Call "InitReg"
Call "InitFiles"
Call "InitFolders"
Call "RunApp"
Call "CleanFolders"
Call "CleanFiles"
Call "CleanReg"
Call "Clean"
SectionEnd
Function: "InitINI"
StrCpy $PROGRAMDIR "" () ()
StrCpy $DATADIR "" () ()
StrCpy $COMMONDIR "" () ()
StrCpy $PROGRAMEXE "" () ()
StrCpy $SPLASHSCREEN "" () ()
StrCpy $PROGRAMPARMS "" () ()
StrCpy $EXTRACTSOURCES "TRUE" () ()
IfFileExists: "$EXEDIR\TestPortable.ini" ? : CheckPortableINI
StrCpy $INIFILE "$EXEDIR\TestPortable.ini" () ()
Goto: ReadINIFile
IfFileExists: "$EXEDIR\TestPortable\TestPortable.ini" ? : CheckPortableAppsINI
StrCpy $INIFILE "$EXEDIR\TestPortable\TestPortable.ini" () ()
Goto: ReadINIFile
IfFileExists: "$EXEDIR\PortableApps\TestPortable\TestPortable.ini" ? : InitINIEnd
StrCpy $INIFILE "$EXEDIR\PortableApps\TestPortable\TestPortable.ini" () ()
Goto: ReadINIFile
Goto: InitINIEnd
ReadINIStr $0 [TestPortable]:ProgramDirectory from $INIFILE
StrCmp "$0" "" equal=INIDataDirectory, nonequal=
StrCpy $PROGRAMDIR "$EXEDIR\$0" () ()
ReadINIStr $0 [TestPortable]:DataDirectory from $INIFILE
StrCmp "$0" "" equal=INICommonDirectory, nonequal=
StrCpy $DATADIR "$EXEDIR\$0" () ()
ReadINIStr $0 [TestPortable]:CommonDirectory from $INIFILE
StrCmp "$0" "" equal=INIProgramExecutable, nonequal=
StrCpy $COMMONDIR "$0" () ()
ReadINIStr $0 [TestPortable]:ProgramExecutable from $INIFILE
StrCmp "$0" "" equal=INISplashScreen, nonequal=
StrCpy $PROGRAMEXE "$0" () ()
ReadINIStr $0 [TestPortable]:SplashScreen from $INIFILE
StrCmp "$0" "" equal=INIGTKVersion, nonequal=
StrCpy $SPLASHSCREEN "$0" () ()
ReadINIStr $0 [TestPortable]:ProgramParameters from $INIFILE
StrCpy $PROGRAMPARMS "$0" () ()
ReadINIStr $0 [TestPortable]:ExtractSources from $INIFILE
StrCmp "$0" "" equal=InitINIEnd, nonequal=
StrCpy $EXTRACTSOURCES "$0" () ()
FunctionEnd
Function: "InitVars"
StrCmp "$SPLASHSCREEN" "" equal=0, nonequal=InitProgramEXE
StrCpy $SPLASHSCREEN "enabled" () ()
StrCmp "$PROGRAMEXE" "" equal=0, nonequal=InitProgramDIR
StrCpy $PROGRAMEXE "Test.exe" () ()
StrCmp "$PROGRAMDIR" "" equal=0, nonequal=InitVarEnd
!insertmacro: WordFindCall
!insertmacro: end of WordFindCall
IfFileExists: "$R0\CommonFiles\*.*" ? 0 : +2
StrCpy $COMMONDIR "$R0\CommonFiles" () ()
IfFileExists: "$EXEDIR\CommonFiles\*.*" ? 0 : +2
StrCpy $COMMONDIR "$EXEDIR\CommonFiles" () ()
IfFileExists: "$EXEDIR\PortableApps\CommonFiles\*.*" ? 0 : +2
StrCpy $COMMONDIR "$EXEDIR\PortableApps\CommonFiles" () ()
StrCpy $DATADIR "$EXEDIR\Data" () ()
StrCpy $PROGRAMDIR "$EXEDIR\App\Test" () ()
StrCpy $SOURCEDIR "$EXEDIR\Other\TestPortableSource" () ()
IfFileExists: "$EXEDIR\TestPortable\App\Test\*.*" ? 0 : CheckPortableAppsDIR
StrCpy $PROGRAMDIR "$EXEDIR\TestPortable\App\Test" () ()
StrCpy $DATADIR "$EXEDIR\TestPortable\Data" () ()
StrCpy $SOURCEDIR "$EXEDIR\TestPortable\Other\TestPortableSource" () ()
Goto: InitVarEnd
IfFileExists: "$EXEDIR\PortableApps\TestPortable\App\Test\*.*" ? 0 : InitDataDIR
StrCpy $PROGRAMDIR "$EXEDIR\PortableApps\TestPortable\App\Test" () ()
StrCpy $DATADIR "$EXEDIR\PortableApps\TestPortable\Data" () ()
StrCpy $SOURCEDIR "$EXEDIR\PortableApps\TestPortable\Other\TestPortableSource" () ()
Goto: InitVarEnd
StrCmp "$DATADIR" "" equal=0, nonequal=InitVarEnd
MessageBox: 48: ""DataDirectory" was not set in INI file. Please check your configuration!"
Invalid command: {registry::Unload}
Error in script "E:\TestPortable\Source\TestPortable.nsi" on line 437 -- aborting creation process
You'll need the Registry plugin, along with the Registry.nsh it includes:
http://nsis.sourceforge.net/Registry_plug-in
"If you're not part of the solution, you're part of the precipitate."