Old 23rd June 2005, 14:42   #1
jsbach
Junior Member
 
Join Date: Feb 2005
Location: Italy
Posts: 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
jsbach is offline   Reply With Quote
Old 23rd June 2005, 14:48   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You are using AppName as if it was a LangString, not a define. Use curly brackets not parenthesis.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd June 2005, 15:01   #3
jsbach
Junior Member
 
Join Date: Feb 2005
Location: Italy
Posts: 42
thanks

ok: now i'm absolutely sure i do have to go to the doctor and check my glasses...
tks.
jsbach is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump