You are here

Help

3 posts / 0 new
Last post
cthelight
Offline
Last seen: 17 years 1 month ago
Joined: 2006-12-05 13:13
Help

Heres my code for the app

!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "C:\Users\*****\Desktop\poratble apps\Evil.Player.v1.17"

Processing script file: "C:\Users\*****\Desktop\poratble apps\Evil.Player.v1.17\Evil_player.nsi"
!define: "FULLNAME"="Evil Player Portable"
!define: "NAME"="EvilPlayerPortable"
!define: "APP"="Evil_Player"
!define: "VER"="1.17"
!define: "WEBSITE"="cthelight.50webs.org/index.html"
!define: "DEFAULTEXE"="Evil_Player.exe"
!define: "DEFAULTAPPDIR"="Evil Player"
!define: "DEFAULTSETTINGSPATH"="settings"
Name: "EvilPlayerPortable"
OutFile: "EvilPlayerPortable.exe"
Caption: "Evil Player Portable | cthelight.50webs.org/index.html"
VIAddVersionKey: "ProductName" "Evil Player Portable"
VIAddVersionKey: "Comments" "Allows Evil_Player to be run from a removable drive. For additional details, go to: users.my-wiki.org/cthelight/pmwiki.php?n=Main.EvilPlayerPortable"
VIAddVersionKey: "CompanyName" "Cthelight"
VIAddVersionKey: "LegalCopyright" "Cthelight"
VIAddVersionKey: "FileDescription" "Evil Player Portable"
VIAddVersionKey: "FileVersion" "1.17"
VIAddVersionKey: "ProductVersion" "1.17"
VIAddVersionKey: "InternalName" "Evil Player Portable"
VIAddVersionKey: "LegalTrademarks" "Cthelight a tragemake of me!"
VIAddVersionKey: "OriginalFilename" "EvilPlayerPortable.exe"
CRCCheck: On
WindowIcon: Off
SilentInstall: Silent
AutoCloseWindow: true
!include: "C:\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:\NSIS\Include\Registry.nsh"
!include: "C:\NSIS\Include\GetParameters.nsh"
Function: "GetParameters"
Push: $R0
Push: $R1
Push: $R2
Push: $R3
StrCpy $R2 "1" () ()
StrLen $R3 "$CMDLINE"
StrCpy $R0 "$CMDLINE" ($R2) ()
StrCmp "$R0" """ equal=0, nonequal=+3
StrCpy $R1 """ () ()
Goto: loop
StrCpy $R1 " " () ()
IntOp: $R2=$R2+1
StrCpy $R0 "$CMDLINE" (1) ($R2)
StrCmp "$R0" "$R1" equal=get, nonequal=
StrCmp "$R2" "$R3" equal=get, nonequal=
Goto: loop
IntOp: $R2=$R2+1
StrCpy $R0 "$CMDLINE" (1) ($R2)
StrCmp "$R0" " " equal=get, nonequal=
StrCpy $R0 "$CMDLINE" () ($R2)
Pop: $R3
Pop: $R2
Pop: $R1
Exch($R0,0)
FunctionEnd
!include: closed: "C:\NSIS\Include\GetParameters.nsh"
Icon: "EvilPlayerPortable.ico"
Var: "PROGRAMDIRECTORY"
Var: "SETTINGSDIRECTORY"
Var: "ADDITIONALPARAMETERS"
Var: "REGISTRYDIRECTORY"
Var: "EXECSTRING"
Var: "PROGRAMEXECUTABLE"
Var: "INIPATH"
Var: "DISABLESPLASHSCREEN"
Var: "ISDEFAULTDIRECTORY"
Var: "SECONDARYLAUNCH"
Section: "Main"
IfFileExists: "$EXEDIR\EvilPlayerPortable.ini" ? : CheckSubINI
StrCpy $INIPATH "$EXEDIR" () ()
Goto: ReadINI
IfFileExists: "$EXEDIR\EvilPlayerPortable\EvilPlayerPortable.ini" ? : CheckSubSubINI
StrCpy $INIPATH "$EXEDIR\EvilPlayerPortable" () ()
Goto: ReadINI
IfFileExists: "$EXEDIR\PortableApps\EvilPlayerPortable\EvilPlayerPortable.ini" ? : CheckPortableAppsINI
StrCpy $INIPATH "$EXEDIR\PortableApps\EvilPlayerPortable" () ()
Goto: ReadINI
IfFileExists: "$EXEDIR\Data\EvilPlayerPortable\EvilPlayerPortable.ini" ? : NoINI
StrCpy $INIPATH "$EXEDIR\Data\EvilPlayerPortable" () ()
Goto: ReadINI
ReadINIStr $0 [EvilPlayerPortable]:Evil_PlayerDirectory from $INIPATH\EvilPlayerPortable.ini
StrCpy $PROGRAMDIRECTORY "$EXEDIR\$0" () ()
ReadINIStr $0 [EvilPlayerPortable]:SettingsDirectory from $INIPATH\EvilPlayerPortable.ini
StrCpy $SETTINGSDIRECTORY "$EXEDIR\$0" () ()
IfErrors ?NoINI:
ReadINIStr $0 [EvilPlayerPortable]:AdditionalParameters from $INIPATH\EvilPlayerPortable.ini
StrCpy $ADDITIONALPARAMETERS "$0" () ()
ReadINIStr $0 [EvilPlayerPortable]:Evil_PlayerExecutable from $INIPATH\EvilPlayerPortable.ini
StrCpy $PROGRAMEXECUTABLE "$0" () ()
ReadINIStr $0 [EvilPlayerPortable]:DisableSplashScreen from $INIPATH\EvilPlayerPortable.ini
StrCpy $DISABLESPLASHSCREEN "$0" () ()
ClearErrors
StrCmp "$PROGRAMEXECUTABLE" "" equal=, nonequal=EndINI
StrCpy $PROGRAMEXECUTABLE "Evil_Player.exe" () ()
Goto: EndINI
StrCpy $ADDITIONALPARAMETERS "" () ()
StrCpy $PROGRAMEXECUTABLE "Evil_Player.exe" () ()
StrCpy $DISABLESPLASHSCREEN "false" () ()
IfFileExists: "$EXEDIR\App\Evil Player\Evil_Player.exe" ? : CheckPortableProgramDIR
StrCpy $PROGRAMDIRECTORY "$EXEDIR\App\Evil Player" () ()
StrCpy $SETTINGSDIRECTORY "$EXEDIR\Data\settings" () ()
StrCpy $ISDEFAULTDIRECTORY "true" () ()
Goto: EndINI
IfFileExists: "$EXEDIR\EvilPlayerPortable\App\Evil Player\Evil_Player.exe" ? : CheckPortableAppsDIR
StrCpy $PROGRAMDIRECTORY "$EXEDIR\EvilPlayerPortable\App\Evil Player" () ()
StrCpy $SETTINGSDIRECTORY "$EXEDIR\EvilPlayerPortable\Data\settings" () ()
Goto: EndINI
IfFileExists: "$EXEDIR\PortableApps\EvilPlayerPortable\App\Evil Player\Evil_Player.exe" ? : CheckPortableAppsSplitDIR
StrCpy $PROGRAMDIRECTORY "$EXEDIR\PortableApps\EvilPlayerPortable\App\Evil Player" () ()
StrCpy $SETTINGSDIRECTORY "$EXEDIR\PortableApps\EvilPlayerPortable\Data\settings" () ()
Goto: EndINI
IfFileExists: "$EXEDIR\Apps\EvilPlayerPortable\Evil Player\Evil_Player.exe" ? : NoProgramEXE
StrCpy $PROGRAMDIRECTORY "$EXEDIR\Apps\EvilPlayerPortable\Evil Player" () ()
StrCpy $SETTINGSDIRECTORY "$EXEDIR\Data\EvilPlayerPortable\settings" () ()
IfFileExists: "$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" ? FoundProgramEXE :
MessageBox: 48: "$PROGRAMEXECUTABLE was not found. Please check your configuration"
Abort: ""

Invalid command: FindProcDLL::FindProc
Error in script "C:\Users\*****\Desktop\poratble apps\Evil.Player.v1.17\Evil_player.nsi" on line 161 -- aborting creation process

What does the last line mean? and how can i fix it? also, any errors that you see, can you post back here with the fixes

Thanks!

John T. Haller
John T. Haller's picture
Online
Last seen: 18 min 4 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Search search search

As always, search first. If you'd searched for Findprocdll either here or on Google, you'd see that it's a plugin for NSIS that you need to install.

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

cthelight
Offline
Last seen: 17 years 1 month ago
Joined: 2006-12-05 13:13
...

thanks

Signature automatically removed for containing links

Topic locked