Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   LangString not set in language table... (http://forums.winamp.com/showthread.php?t=219610)

jsbach 23rd June 2005 14:42

LangString not set in language table...
 
already looked and found similar post, but still same warning.
ok it's a warning but i'm curious what is causing it.
just upgraded nsis 207.
"AppName" is not a reserved word so why compiler complains ?...
just to know.


compiler abstract:

Processed 1 file, writing output:
Adding plug-ins initializing function... Done!
Processing pages... Done!
Removing unused resources... Done!
Generating language tables... warning: LangString "AppName" is not set in language table of language 1033
warning: LangString "AppName" is not set in language table of language 1033
warning: LangString "AppName" is not set in language table of language 1033
warning: LangString "AppName" is not set in language table of language 1033
warning: LangString "AppName" is not set in language table of language 1033
warning: LangString "AppName" is not set in language table of language 1033
Done!
Generating uninstaller... Done!


...and the test code:

Name "pippo"
OutFile "pippo.exe"
!include "MUI.nsh"
!define AppName "pippo"
!insertmacro MUI_LANGUAGE "English"
InstallDir "$WINDIR"
InstallDirRegKey HKLM "Software\$(AppName)" ""
ShowInstDetails nevershow

Section "pippo"
SetOverWrite ifnewer
SetOutPath "$INSTDIR"
File "c:\sources\myapp.exe"
WriteRegStr HKLM "Software\$(AppName)" "" $INSTDIR
WriteUninstaller "$INSTDIR\myappUninstall.exe"
SectionEnd

Section "Uninstall"
Delete "$INSTDIR\myapp.exe"
Delete "$INSTDIR\myappUninstall.exe"
DeleteRegKey /ifempty HKLM "Software\$(AppName)"
SectionEnd

kichik 23rd June 2005 14:48

You are using AppName as if it was a LangString, not a define. Use curly brackets not parenthesis.

jsbach 23rd June 2005 15:01

thanks
 
ok: now i'm absolutely sure i do have to go to the doctor and check my glasses...
tks.


All times are GMT. The time now is 18:02.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.