Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MakeNSIS v2.46.3-Unicode - Copyright 1995-2009 Contributors
- See the file COPYING for license details.
- Credits can be found in the Users Manual.
- Command line defined: "PACKAGE=C:\Work\ZimDesktopWikiPortable"
- Command line defined: "NamePortable=Zim Desktop Wiki Portable"
- Command line defined: "AppID=ZimDesktopWikiPortable"
- Command line defined: "Version=2.1.2.0"
- Changing directory to: "C:\Documents and Settings\windows\Apps\PortableApps.comLauncher\Other\Source"
- Processing script file: "C:\Documents and Settings\windows\Apps\PortableApps.comLauncher\Other\Source\PortableApps.comLauncher.nsi"
- Processing plugin dlls: "C:\Documents and Settings\windows\Apps\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
- - EmbeddedLists::Dialog
- - EmbeddedLists::InitDialog
- - EmbeddedLists::Show
- - EnumINI::KeyExist
- - EnumINI::Section
- - EnumINI::SectionExist
- - EnumINI::SectionNames
- - FindProcDLL::FindProc
- - InstallOptions::dialog
- - InstallOptions::initDialog
- - InstallOptions::show
- - KillProcDLL::KillProc
- - 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
- - RealProgress::AddProgress
- - RealProgress::DetailProgress
- - RealProgress::FileProgress
- - RealProgress::GetProgress
- - RealProgress::GradualProgress
- - RealProgress::SetProgress
- - RealProgress::Unload
- - RealProgress::UseProgressBar
- - SelfDel::Del
- - Splash::show
- - StartMenu::Init
- - StartMenu::Select
- - StartMenu::Show
- - System::Alloc
- - System::Call
- - System::Copy
- - System::Free
- - System::Get
- - System::Int64Op
- - System::Store
- - System::StrAlloc
- - TypeLib::GetLibVersion
- - TypeLib::Register
- - TypeLib::UnRegister
- - UserInfo::GetAccountType
- - UserInfo::GetName
- - UserInfo::GetOriginalAccountType
- - VPatch::GetFileCRC32
- - VPatch::GetFileMD5
- - VPatch::vpatchfile
- - dialogsEx::FileBox
- - dialogsEx::FolderBox
- - dialogsEx::InputBox
- - dialogsEx::InputRegBox
- - execDos::exec
- - execDos::isdone
- - execDos::wait
- - inetc::get
- - inetc::head
- - inetc::post
- - inetc::put
- - md5dll::GetFileMD5
- - md5dll::GetMD5
- - md5dll::GetMD5File
- - md5dll::GetMD5Random
- - md5dll::GetMD5String
- - newadvsplash::hwnd
- - newadvsplash::play
- - newadvsplash::show
- - newadvsplash::stop
- - newtextreplace::_FillReadBuffer
- - newtextreplace::_FindInFile
- - newtextreplace::_FreeReadBuffer
- - newtextreplace::_ReplaceInFile
- - newtextreplace::_Unload
- - 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::_HexToStrUTF16LE
- - registry::_KeyExists
- - registry::_MoveKey
- - registry::_MoveValue
- - registry::_Open
- - registry::_Read
- - registry::_ReadExtra
- - registry::_RestoreKey
- - registry::_SaveKey
- - registry::_StrToHex
- - registry::_StrToHexUTF16LE
- - registry::_Unload
- - registry::_Write
- - registry::_WriteExtra
- (If you get a compile error with !searchparse, please upgrade to Unicode NSIS 2.46 or later and try again.) (RequireLatestNSIS.nsh:11)
- Including required files... (macro:!echo:3)
- - UAC::_
- - newtextreplace::_FillReadBuffer
- - newtextreplace::_FindInFile
- - newtextreplace::_FreeReadBuffer
- - newtextreplace::_ReplaceInFile
- - newtextreplace::_Unload
- - xml::_CloneNode
- - xml::_Coordinate
- - xml::_CreateNode
- - xml::_CreateText
- - xml::_CurrentAttribute
- - xml::_DeclarationEncoding
- - xml::_DeclarationStandalone
- - xml::_DeclarationVersion
- - xml::_ElementPath
- - xml::_FindCloseElement
- - xml::_FindNextElement
- - xml::_FirstAttribute
- - xml::_FirstChild
- - xml::_FirstChildElement
- - xml::_FreeNode
- - xml::_GetAttribute
- - xml::_GetNodeValue
- - xml::_GetText
- - xml::_GotoHandle
- - xml::_GotoPath
- - xml::_InsertAfterNode
- - xml::_InsertBeforeNode
- - xml::_InsertEndChild
- - xml::_IsCDATA
- - xml::_LastAttribute
- - xml::_LastChild
- - xml::_LoadFile
- - xml::_NextAttribute
- - xml::_NextSibling
- - xml::_NextSiblingElement
- - xml::_NoChildren
- - xml::_NodeHandle
- - xml::_NodeType
- - xml::_Parent
- - xml::_PreviousAttribute
- - xml::_PreviousSibling
- - xml::_RemoveAllChild
- - xml::_RemoveAttribute
- - xml::_RemoveNode
- - xml::_ReplaceNode
- - xml::_RootElement
- - xml::_SaveFile
- - xml::_SetAttribute
- - xml::_SetAttributeName
- - xml::_SetAttributeValue
- - xml::_SetCDATA
- - xml::_SetCondenseWhiteSpace
- - xml::_SetEncoding
- - xml::_SetNodeValue
- - xml::_SetText
- - xml::_Unload
- - xml::_XPathAttribute
- - xml::_XPathNode
- - xml::_XPathString
- Loading language strings... (macro:!echo:3)
- Initialising variables and macros... (macro:!echo:3)
- Loading segments... (macro:!echo:3)
- warning: !include: could not find: "C:\Work\ZimDesktopWikiPortable\App\AppInfo\Launcher\Debug.nsh" (Debug.nsh:87)
- Specifying program details and setting options... (macro:!echo:3)
- Function: ".onInit"
- !insertmacro: RunSegment
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: Core.nsh_.onInit
- StrCpy $0 "$EXEDIR" (2) ()
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- ClearErrors
- ReadEnvStr: _PAL:EXEDIR->$EXEDIR
- !insertmacro: _If
- !insertmacro: end of _If
- MessageBox: 16: "$(LauncherNoUNCSupport)"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: _Else
- !insertmacro: end of _Else
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- File: "System.dll"->"$PLUGINSDIR\System.dll" 11264 bytes
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: GetBaseNameCall
- !insertmacro: end of GetBaseNameCall
- StrCpy $LauncherFile "$EXEDIR\App\AppInfo\Launcher\$BaseName.ini" () ()
- ClearErrors
- ReadINIStr $AppID [Details]:AppID from $EXEDIR\App\AppInfo\appinfo.ini
- ReadINIStr $AppNamePortable [Details]:Name from $EXEDIR\App\AppInfo\appinfo.ini
- !insertmacro: _If
- !insertmacro: end of _If
- StrCpy $AppNamePortable "PortableApps.com Launcher" () ()
- StrCpy $MissingFileOrPath "$EXEDIR\App\AppInfo\appinfo.ini" () ()
- MessageBox: 16: "$(LauncherFileNotFound)"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: ReadLauncherConfig
- ReadINIStr $AppName [Launch]:AppName from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- StrCpy $0 "$AppNamePortable" () (-9)
- !insertmacro: _If
- !insertmacro: end of _If
- StrCpy $AppName "$AppNamePortable" (-9) ()
- !insertmacro: _Else
- !insertmacro: end of _Else
- StrCpy $1 "$AppNamePortable" () (-18)
- !insertmacro: _If
- !insertmacro: end of _If
- StrCpy $AppName "$AppNamePortable" (-18) ()
- !insertmacro: _Else
- !insertmacro: end of _Else
- StrCpy $AppName "$AppNamePortable" () ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- Plugin Command: Call kernel32::GetCurrentProcess()i.s
- Plugin Command: Call kernel32::IsWow64Process(is,*i.r0)
- !insertmacro: _If
- !insertmacro: end of _If
- StrCpy $Bits "32" () ()
- !insertmacro: _Else
- !insertmacro: end of _Else
- StrCpy $Bits "64" () ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of Core.nsh_.onInit
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: Temp.nsh_.onInit
- ClearErrors
- ReadEnvStr: PAL:_TEMP->$TMP
- !insertmacro: _If
- !insertmacro: end of _If
- StrCpy $TMP "$TEMP" () ()
- !insertmacro: _Else
- !insertmacro: end of _Else
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of Temp.nsh_.onInit
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: Language.nsh_.onInit
- ReadEnvStr: PortableApps.comLocaleID->$0
- !insertmacro: _Switch
- !insertmacro: end of _Switch
- !insertmacro: LanguageCases
- !include: "C:\DOCUME~1\windows\LOCALS~1\Temp\nst5C.tmp"
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _Case
- !insertmacro: end of _Case
- !include: closed: "C:\DOCUME~1\windows\LOCALS~1\Temp\nst5C.tmp"
- !delfile: "C:\DOCUME~1\windows\LOCALS~1\Temp\nst5C.tmp"
- !delfile: deleted "C:\DOCUME~1\windows\LOCALS~1\Temp\nst5C.tmp"
- !undef: "LangAutoDetectFile"
- !insertmacro: end of LanguageCases
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- StrCpy $LANGUAGE "$0" () ()
- !insertmacro: _Goto
- !insertmacro: end of _Goto
- !insertmacro: _EndSwitch
- !insertmacro: end of _EndSwitch
- !insertmacro: end of Language.nsh_.onInit
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: OperatingSystem.nsh_.onInit
- !insertmacro: _OperatingSystem_CheckOS
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:MinOS from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _Select
- !insertmacro: end of _Select
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _CaseElse
- !insertmacro: end of _CaseElse
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:MinOS. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndSelect
- !insertmacro: end of _EndSelect
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _If
- !insertmacro: end of _If
- StrCpy $1 "2000" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "XP" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "2003" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "Vista" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "2008" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "7" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "2008 R2" () ()
- !insertmacro: _Else
- !insertmacro: end of _Else
- StrCpy $1 "?" () ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- MessageBox: 327696: "$(LauncherIncompatibleMinOS)"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of _OperatingSystem_CheckOS
- !insertmacro: _OperatingSystem_CheckOS
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:MaxOS from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _Select
- !insertmacro: end of _Select
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: _CaseElse
- !insertmacro: end of _CaseElse
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:MaxOS. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndSelect
- !insertmacro: end of _EndSelect
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _If
- !insertmacro: end of _If
- StrCpy $1 "2000" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "XP" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "2003" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "Vista" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "2008" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "7" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- StrCpy $1 "2008 R2" () ()
- !insertmacro: _Else
- !insertmacro: end of _Else
- StrCpy $1 "?" () ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- MessageBox: 327696: "$(LauncherIncompatibleMaxOS)"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of _OperatingSystem_CheckOS
- !insertmacro: end of OperatingSystem.nsh_.onInit
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: RunAsAdmin.nsh_.onInit
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $RunAsAdmin [Launch]:RunAsAdmin from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: _If
- !insertmacro: end of _If
- MessageBox: 16: "To use [Launch]:RunAsAdmin=compile-force, you must regenerate the launcher. Continuing with 'force'."
- StrCpy $RunAsAdmin "force" () ()
- !insertmacro: _Else
- !insertmacro: end of _Else
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$RunAsAdmin' for [Launch]:RunAsAdmin. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: RunAsAdmin_OSOverride
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:RunAsAdmin2000 from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $RunAsAdmin "$0" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:RunAsAdmin2000. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of RunAsAdmin_OSOverride
- !insertmacro: RunAsAdmin_OSOverride
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:RunAsAdminXP from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $RunAsAdmin "$0" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:RunAsAdminXP. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of RunAsAdmin_OSOverride
- !insertmacro: RunAsAdmin_OSOverride
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:RunAsAdmin2003 from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $RunAsAdmin "$0" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:RunAsAdmin2003. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of RunAsAdmin_OSOverride
- !insertmacro: RunAsAdmin_OSOverride
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:RunAsAdminVista from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $RunAsAdmin "$0" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:RunAsAdminVista. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of RunAsAdmin_OSOverride
- !insertmacro: RunAsAdmin_OSOverride
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:RunAsAdmin2008 from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $RunAsAdmin "$0" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:RunAsAdmin2008. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of RunAsAdmin_OSOverride
- !insertmacro: RunAsAdmin_OSOverride
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:RunAsAdmin7 from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $RunAsAdmin "$0" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:RunAsAdmin7. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of RunAsAdmin_OSOverride
- !insertmacro: RunAsAdmin_OSOverride
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:RunAsAdmin2008R2 from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $RunAsAdmin "$0" () ()
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:RunAsAdmin2008R2. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of RunAsAdmin_OSOverride
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: UAC_RunElevated
- File: "UAC.dll"->"$PLUGINSDIR\UAC.dll" 13312 bytes
- Plugin Command: _ 0
- !insertmacro: end of UAC_RunElevated
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: _Switch
- !insertmacro: end of _Switch
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _IfThen
- !insertmacro: end of _IfThen
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Goto
- !insertmacro: end of _Goto
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _If
- !insertmacro: end of _If
- MessageBox: 327733: "$(LauncherRequiresAdmin)$(LauncherNotAdminTryAgain)" (on IDRETRY goto Elevate)
- Quit
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- MessageBox: 327730: "$(LauncherNotAdminLimitedFunctionality)$(LauncherNotAdminLimitedFunctionalityTryAgain)" (on IDRETRY goto Elevate)
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: CaseUACCodeAlert
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _If
- !insertmacro: end of _If
- MessageBox: 327696: "$(LauncherRequiresAdmin)"
- Quit
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- MessageBox: 327744: "$(LauncherNotAdminLimitedFunctionality)"
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _Goto
- !insertmacro: end of _Goto
- !insertmacro: end of CaseUACCodeAlert
- !insertmacro: CaseUACCodeAlert
- !insertmacro: _Case
- !insertmacro: end of _Case
- !insertmacro: _If
- !insertmacro: end of _If
- MessageBox: 327696: "$(LauncherAdminLogonServiceNotRunning)"
- Quit
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- MessageBox: 327744: "$(LauncherNotAdminLimitedFunctionality)"
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _Goto
- !insertmacro: end of _Goto
- !insertmacro: end of CaseUACCodeAlert
- !insertmacro: CaseUACCodeAlert
- !insertmacro: _CaseElse
- !insertmacro: end of _CaseElse
- !insertmacro: _If
- !insertmacro: end of _If
- MessageBox: 327696: "$(LauncherAdminError)$(LauncherRequiresAdmin)"
- Quit
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- MessageBox: 327744: "$(LauncherAdminError)$(LauncherNotAdminLimitedFunctionality)"
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _Goto
- !insertmacro: end of _Goto
- !insertmacro: end of CaseUACCodeAlert
- !insertmacro: _EndSwitch
- !insertmacro: end of _EndSwitch
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of RunAsAdmin.nsh_.onInit
- !insertmacro: end of RunSegment
- FunctionEnd
- Function: "Init"
- !insertmacro: RunSegment
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: Core.nsh_Init
- StrCpy $LauncherFile "$EXEDIR\App\AppInfo\Launcher\$BaseName.ini" () ()
- !insertmacro: _If
- !insertmacro: end of _If
- InitPluginsDir
- CopyFiles: (silent) "$LauncherFile" -> "$PLUGINSDIR\launcher.ini", size=0KB
- StrCpy $LauncherFile "$PLUGINSDIR\launcher.ini" () ()
- !insertmacro: _Else
- !insertmacro: end of _Else
- StrCpy $MissingFileOrPath "$LauncherFile" () ()
- MessageBox: 16: "$(LauncherFileNotFound)"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: GetParametersCall
- !insertmacro: end of GetParametersCall
- StrCpy $ProgramExecutable "" () ()
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: ReadLauncherConfig
- ReadINIStr $ProgramExecutable [Launch]:ProgramExecutableWhenParameters64 from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: ReadLauncherConfig
- ReadINIStr $ProgramExecutable [Launch]:ProgramExecutable64 from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: ReadLauncherConfig
- ReadINIStr $ProgramExecutable [Launch]:ProgramExecutableWhenParameters from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: ReadLauncherConfig
- ReadINIStr $ProgramExecutable [Launch]:ProgramExecutable from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _If
- !insertmacro: end of _If
- MessageBox: 16: "$EXEDIR\App\AppInfo\Launcher\$BaseName.ini is missing [Launch]:ProgramExecutable - what am I to launch?"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:NoSpacesInPath from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: WordFindCall
- !insertmacro: end of WordFindCall
- !insertmacro: _If
- !insertmacro: end of _If
- MessageBox: 16: "$(LauncherNoSpaces)"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:NoSpacesInPath. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of Core.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: Settings.nsh_Init
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- CreateDirectory: "$EXEDIR\Data\settings"
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- CopyFiles: (silent) "$EXEDIR\App\DefaultData\*.*" -> "$EXEDIR\Data", size=0KB
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of Settings.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: DriveLetter.nsh_Init
- ReadINIStr $LastDrive [$AppIDSettings]:LastDrive from $EXEDIR\Data\settings\$AppIDSettings.ini
- !insertmacro: GetRootCall
- !insertmacro: end of GetRootCall
- !insertmacro: _IfThen
- !insertmacro: end of _IfThen
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- StrCpy $0 "$CurrentDrive" (1) ()
- StrCpy $1 "$LastDrive" (1) ()
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,tr0)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,tr1)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: end of DriveLetter.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: DirectoryMoving.nsh_Init
- ReadINIStr $LastDirectory [$AppIDSettings]:LastDirectory from $EXEDIR\Data\settings\$AppIDSettings.ini
- StrCpy $CurrentDirectory "$EXEDIR" () (2)
- !insertmacro: _IfThen
- !insertmacro: end of _IfThen
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:DirectoryMoveOK from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- MessageBox: 16: "$(LauncherDirectoryMoveNotAllowed)"
- Quit
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _If
- !insertmacro: end of _If
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- Nop
- !insertmacro: _Else
- !insertmacro: end of _Else
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:DirectoryMoveOK. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: PAL:PackagePartialDir
- Push: $CurrentDirectory
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- Goto: SetEnvironmentVariablesPath_inst_DONE
- !define: "SetEnvironmentVariablesPath_inst_DEFINED"=""
- !insertmacro: SetEnvironmentVariablesPath_
- Exch($R0,0)
- Exch(st(1),0)
- Exch($R1,0)
- Push: $R2
- Push: $R3
- Push: $R7
- Push: $R8
- Push: $R9
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(tR1,tR0)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: WordReplaceCall
- !insertmacro: end of WordReplaceCall
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,tR2)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: WordReplaceCall
- !insertmacro: end of WordReplaceCall
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,tR3)
- !insertmacro: end of SetEnvironmentVariable
- StrCpy $R3 "" () ()
- StrLen $R7 "$R2"
- IntOp: $R7=$R7-1
- !insertmacro: _For
- !insertmacro: end of _For
- StrCpy $R9 "$R2" (1) ($R8)
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $R3 "$R3$R9" () ()
- !insertmacro: _Else
- !insertmacro: end of _Else
- StrCpy $R3 "$R3/$R9" () ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _Loop
- !insertmacro: end of _Loop
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,tR3)
- !insertmacro: end of SetEnvironmentVariable
- Pop: $R9
- Pop: $R8
- Pop: $R7
- Pop: $R3
- Pop: $R2
- Pop: $R1
- Pop: $R0
- !insertmacro: end of SetEnvironmentVariablesPath_
- Return
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: PAL:LastPackagePartialDir
- Push: $LastDirectory
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- !insertmacro: end of DirectoryMoving.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: Variables.nsh_Init
- StrCpy $AppDirectory "$EXEDIR\App" () ()
- StrCpy $DataDirectory "$EXEDIR\Data" () ()
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: PAL:AppDir
- Push: $AppDirectory
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: PAL:DataDir
- Push: $DataDirectory
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- !insertmacro: GetParentCall
- !insertmacro: end of GetParentCall
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: PAL:PortableAppsDir
- Push: $PortableAppsDirectory
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- ReadEnvStr: PortableApps.comDocuments->$0
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $0 "$CurrentDrive\Documents" () ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: PortableApps.comDocuments
- Push: $0
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- ReadEnvStr: PortableApps.comPictures->$1
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $1 "$0\Pictures" () ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: PortableApps.comPictures
- Push: $1
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- ReadEnvStr: PortableApps.comMusic->$1
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $1 "$0\Music" () ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: PortableApps.comMusic
- Push: $1
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- ReadEnvStr: PortableApps.comVideos->$1
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $1 "$0\Videos" () ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: PortableApps.comVideos
- Push: $1
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- SetShellVarContext: all
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: ALLUSERSAPPDATA
- Push: $APPDATA
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- SetShellVarContext: current
- !insertmacro: SetEnvironmentVariablesPathFromEnvironmentVariable
- Push: $R0
- ReadEnvStr: ALLUSERSPROFILE->$R0
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: ALLUSERSPROFILE
- Push: $R0
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- Pop: $R0
- !insertmacro: end of SetEnvironmentVariablesPathFromEnvironmentVariable
- !insertmacro: SetEnvironmentVariablesPathFromEnvironmentVariable
- Push: $R0
- ReadEnvStr: USERPROFILE->$R0
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: USERPROFILE
- Push: $R0
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- Pop: $R0
- !insertmacro: end of SetEnvironmentVariablesPathFromEnvironmentVariable
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: LOCALAPPDATA
- Push: $LOCALAPPDATA
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: APPDATA
- Push: $APPDATA
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: DOCUMENTS
- Push: $DOCUMENTS
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- !insertmacro: end of Variables.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: Language.nsh_Init
- ReadEnvStr: PortableApps.comLanguageCode->$0
- ReadEnvStr: PAL:_IgnoreLanguage->$1
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- StrCpy $9 "pap-missing" () ()
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: SetEnvironmentVariableDefault
- Push: $R9
- ReadEnvStr: PortableApps.comLanguageCode->$R9
- !insertmacro: _If
- !insertmacro: end of _If
- Pop: $R9
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _Else
- !insertmacro: end of _Else
- Pop: $R9
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of SetEnvironmentVariableDefault
- !insertmacro: SetEnvironmentVariableDefault
- Push: $R9
- ReadEnvStr: PortableApps.comLocaleCode2->$R9
- !insertmacro: _If
- !insertmacro: end of _If
- Pop: $R9
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _Else
- !insertmacro: end of _Else
- Pop: $R9
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of SetEnvironmentVariableDefault
- !insertmacro: SetEnvironmentVariableDefault
- Push: $R9
- ReadEnvStr: PortableApps.comLocaleCode3->$R9
- !insertmacro: _If
- !insertmacro: end of _If
- Pop: $R9
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _Else
- !insertmacro: end of _Else
- Pop: $R9
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of SetEnvironmentVariableDefault
- !insertmacro: SetEnvironmentVariableDefault
- Push: $R9
- ReadEnvStr: PortableApps.comLocaleglibc->$R9
- !insertmacro: _If
- !insertmacro: end of _If
- Pop: $R9
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _Else
- !insertmacro: end of _Else
- Pop: $R9
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of SetEnvironmentVariableDefault
- !insertmacro: SetEnvironmentVariableDefault
- Push: $R9
- ReadEnvStr: PortableApps.comLocaleID->$R9
- !insertmacro: _If
- !insertmacro: end of _If
- Pop: $R9
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _Else
- !insertmacro: end of _Else
- Pop: $R9
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of SetEnvironmentVariableDefault
- !insertmacro: SetEnvironmentVariableDefault
- Push: $R9
- ReadEnvStr: PortableApps.comLocaleWinName->$R9
- !insertmacro: _If
- !insertmacro: end of _If
- Pop: $R9
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,ts)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _Else
- !insertmacro: end of _Else
- Pop: $R9
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of SetEnvironmentVariableDefault
- ReadEnvStr: PortableApps.comLocaleName->$0
- !insertmacro: _If
- !insertmacro: end of _If
- ReadEnvStr: PortableApps.comLocaleWinName->$0
- StrCpy $0 "$0" () (5)
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,tr0)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [LanguageFile]:Type from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: ReadLauncherConfig
- ReadINIStr $1 [LanguageFile]:File from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: ParseLocations
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- ExpandEnvStrings: $1->$1
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: end of ParseLocations
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- StrCpy $8 "" () ()
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: ReadLauncherConfig
- ReadINIStr $2 [LanguageFile]:Entry from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: ReadLauncherConfig
- ReadINIStr $4 [LanguageFile]:CaseSensitive from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: ConfigReadSCall
- !insertmacro: end of ConfigReadSCall
- !insertmacro: _Else
- !insertmacro: end of _Else
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$4' for [LanguageFile]:CaseSensitive. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: ConfigReadCall
- !insertmacro: end of ConfigReadCall
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: ReadLauncherConfig
- ReadINIStr $2 [LanguageFile]:Section from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: ReadLauncherConfig
- ReadINIStr $3 [LanguageFile]:Key from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- ReadINIStr $8 [$2]:$3 from $1
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: XML_WarnNotActivated
- MessageBox: 16: "To use XML features of the Launcher you must set [Activate]:XML=true and then regenerate the launcher. Continuing, but [LanguageFile] will not be used."
- !insertmacro: end of XML_WarnNotActivated
- !insertmacro: _Else
- !insertmacro: end of _Else
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [LanguageFile]:Type. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: _Else
- !insertmacro: end of _Else
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [LanguageFile]:TrimRight from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- StrLen $1 "$0"
- StrCpy $2 "$8" () (-$1)
- !insertmacro: _If
- !insertmacro: end of _If
- StrCpy $8 "$8" (-$1) ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,tr8)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- ClearErrors
- ReadEnvStr: PAL:LanguageCustom->$8
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Language]:Base from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: ParseLocations
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- ExpandEnvStrings: $0->$0
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: end of ParseLocations
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $1 [LanguageStrings]:$0 from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $1 [Language]:Default from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: ParseLocations
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- ExpandEnvStrings: $1->$1
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: end of ParseLocations
- !insertmacro: _Else
- !insertmacro: end of _Else
- StrCpy $1 "$0" () ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,tr1)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: ReadLauncherConfig
- ReadINIStr $2 [Language]:CheckIfExists from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: ParseLocations
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- ExpandEnvStrings: $2->$2
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: end of ParseLocations
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: ReadLauncherConfig
- ReadINIStr $1 [Language]:DefaultIfNotExists from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: ParseLocations
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- ExpandEnvStrings: $1->$1
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: end of ParseLocations
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: SetEnvironmentVariable
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Plugin Command: Call Kernel32::SetEnvironmentVariable(ts,tr1)
- !insertmacro: end of SetEnvironmentVariable
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of Language.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: Registry.nsh_Init
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $UsesRegistry [Activate]:Registry from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$UsesRegistry' for [Activate]:Registry. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of Registry.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: Java.nsh_Init
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $JavaMode [Activate]:Java from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- StrCpy $JavaDirectory "$PortableAppsDirectory\CommonFiles\Java" () ()
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- ReadRegStr $0 HKLM\Software\JavaSoft\Java Runtime Environment\CurrentVersion
- ReadRegStr $JavaDirectory HKLM\Software\JavaSoft\Java Runtime Environment\$0\JavaHome
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _And
- !insertmacro: end of _And
- ClearErrors
- ReadEnvStr: JAVA_HOME->$JavaDirectory
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _And
- !insertmacro: end of _And
- ClearErrors
- SearchPath $JavaDirectory java.exe
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: GetParentCall
- !insertmacro: end of GetParentCall
- !insertmacro: GetParentCall
- !insertmacro: end of GetParentCall
- !insertmacro: _Else
- !insertmacro: end of _Else
- StrCpy $JavaDirectory "$WINDIR\Java" () ()
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- StrCpy $JavaDirectory "$PortableAppsDirectory\CommonFiles\Java" () ()
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _If
- !insertmacro: end of _If
- MessageBox: 16: "$(LauncherNoJava)"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _IfThen
- !insertmacro: end of _IfThen
- !insertmacro: _IfThen
- !insertmacro: end of _IfThen
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- MessageBox: 16: "$(LauncherNoJava)"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- !insertmacro: SetEnvironmentVariablesPathCall
- Push: JAVA_HOME
- Push: $JavaDirectory
- !insertmacro: CallArtificialFunction2
- !define: "CallArtificialFunction2_TYPE"="inst"
- Call ":.SetEnvironmentVariablesPath_inst"
- !undef: "CallArtificialFunction2_TYPE"
- !insertmacro: end of CallArtificialFunction2
- !insertmacro: end of SetEnvironmentVariablesPathCall
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$JavaMode' for [Activate]:Java. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of Java.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: RunLocally.nsh_Init
- !insertmacro: ReadUserConfig
- !insertmacro: ConfigReadCall
- !insertmacro: end of ConfigReadCall
- !insertmacro: end of ReadUserConfig
- !insertmacro: end of RunLocally.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: Temp.nsh_Init
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $UsesContainedTempDirectory [Launch]:CleanTemp from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$UsesContainedTempDirectory' for [Launch]:CleanTemp. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of Temp.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: InstanceManagement.nsh_Init
- Plugin Command: Call kernel32::CreateMutex(i0,i0,t"PortableApps.comLauncher$AppID-$BaseName")?e
- Pop: $0
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:SinglePortableAppInstance from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- Quit
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:SinglePortableAppInstance. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: DebugMsg
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: end of DebugMsg
- StrCpy $SecondaryLaunch "true" () ()
- StrCpy $WaitForProgram "false" () ()
- StrCpy $DisableSplashScreen "true" () ()
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- StrCpy $MissingFileOrPath "App\$ProgramExecutable" () ()
- MessageBox: 16: "$(LauncherFileNotFound)"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:SingleAppInstance from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _Or
- !insertmacro: end of _Or
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: GetFileNameCall
- !insertmacro: end of GetFileNameCall
- !insertmacro: _InstanceManagement_QuitIfRunning
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- MessageBox: 16: "$(LauncherAlreadyRunning)"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of _InstanceManagement_QuitIfRunning
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _ElseIf
- !insertmacro: end of _ElseIf
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:SingleAppInstance. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:CloseEXE from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _InstanceManagement_QuitIfRunning
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- MessageBox: 16: "$(LauncherAlreadyRunning)"
- Quit
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of _InstanceManagement_QuitIfRunning
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _If
- !insertmacro: end of _If
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $WaitForProgram [Launch]:WaitForProgram from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$WaitForProgram' for [Launch]:WaitForProgram. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of InstanceManagement.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: SplashScreen.nsh_Init
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: ReadUserConfig
- !insertmacro: ConfigReadCall
- !insertmacro: end of ConfigReadCall
- !insertmacro: end of ReadUserConfig
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $0 [Launch]:SplashTime from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$0' for [Launch]:SplashTime. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _IfNotThen
- !insertmacro: end of _IfNotThen
- !insertmacro: CheckForPlatformSplashDisable
- StrCmp "$DisableSplashScreen" "true" equal=_CFPSDEnd, nonequal=
- Push: $0
- Push: $1
- Push: $R0
- StrCpy $0 "$DisableSplashScreen" () ()
- ReadEnvStr: PortableApps.comDisableSplash->$1
- StrCmp "$1" "true" equal=, nonequal=_CFPSDStackEnd
- !insertmacro: GetParentCall
- !insertmacro: end of GetParentCall
- IfFileExists: "$1\PortableApps.com\PortableAppsPlatform.exe" ? : _CFPSDStackEnd
- File: "MoreInfo.dll"->"$PLUGINSDIR\MoreInfo.dll" 7168 bytes
- Plugin Command: GetProductName $1\PortableApps.com\PortableAppsPlatform.exe
- Pop: $R0
- StrCmp "$R0" "PortableApps.com Platform" equal=, nonequal=_CFPSDStackEnd
- File: "MoreInfo.dll"->"$PLUGINSDIR\MoreInfo.dll" 0/7168 bytes
- Plugin Command: GetCompanyName $1\PortableApps.com\PortableAppsPlatform.exe
- Pop: $R0
- StrCmp "$R0" "PortableApps.com" equal=, nonequal=_CFPSDStackEnd
- FindProc output=$R0 process_name=PortableAppsPlatform.exe
- IntCmp $R0:1 equal=, < _CFPSDStackEnd, > _CFPSDStackEnd
- StrCpy $0 "true" () ()
- Pop: $R0
- Pop: $1
- Exch($0,0)
- Pop: $DisableSplashScreen
- !insertmacro: end of CheckForPlatformSplashDisable
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _IfThen
- !insertmacro: end of _IfThen
- File: "newadvsplash.dll"->"$PLUGINSDIR\newadvsplash.dll" 8704 bytes
- Plugin Command: show $0 0 0 -1 /L $EXEDIR\App\AppInfo\Launcher\splash.jpg
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of SplashScreen.nsh_Init
- !insertmacro: end of RunSegment
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: RefreshShellIcons.nsh_Init
- ClearErrors
- !insertmacro: ReadLauncherConfig
- ReadINIStr $RefreshShellIcons [Launch]:RefreshShellIcons from $LauncherFile
- !insertmacro: end of ReadLauncherConfig
- !insertmacro: _If
- !insertmacro: end of _If
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: _And
- !insertmacro: end of _And
- !insertmacro: InvalidValueError
- MessageBox: 16: "Error: invalid value '$RefreshShellIcons' for [Launch]:RefreshShellIcons. Please refer to the Manual for valid values."
- !insertmacro: end of InvalidValueError
- !insertmacro: _EndIf
- !insertmacro: end of _EndIf
- !insertmacro: end of RefreshShellIcons.nsh_Init
- !insertmacro: end of RunSegment
- FunctionEnd
- Function: "Pre"
- !insertmacro: RunSegment
- !insertmacro: !getdebug
- !insertmacro: end of !getdebug
- !insertmacro: Custom.nsh_Pre
- FindFirst: spec="$DataDirectory\.local\share\zim\application\*.desktop" handle=$0 output=$1
- !insertmacro: _Do
- !insertmacro: end of _Do
- !insertmacro: ReplaceInFile
- !insertmacro: macro "ReplaceInFile" requires 3 parameter(s), passed 7!
- Error in macro Custom.nsh_Pre on macroline 4
- Error in macro RunSegment on macroline 12
- Error in script "C:\Documents and Settings\windows\Apps\PortableApps.comLauncher\Other\Source\PortableApps.comLauncher.nsi" on line 193 -- aborting creation process
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement