Go Back   Winamp Forums > SHOUTcast > SHOUTcast TV / Nullsoft Video

Reply
Thread Tools Search this Thread Display Modes
Old 25th March 2005, 12:09   #1
Faith Healer
Junior Member
 
Join Date: Mar 2005
Location: Russian Federation, Moscow
Posts: 7
Send a message via ICQ to Faith Healer
WinVer and variables troubles (+)

Good day everybody

I'm using NSIS not for long time (less than 4 months), often read this NSIS-related forum, read docs + using search, etc.


I use NSIS for my MirandaIM pack installer, which globaly (for full installation) detects Windows version and depending on it installs needed/proper files.
I decided to advance/modify/optimize code, but got some troubles which I can't resolve, feeling dumb

So, I have files:
tabsrmm.dll
tabsrmm_unicode.dll
tabsrmm_icons_faith_brq_2k.dll
tabsrmm_icons_faith_brq_xp.dll


so, I need to copy files:
* if WinVer is unknown then copy tabsrmm.dll + tabsrmm_icons_faith_brq_2k.dll (but without "_2k" in the name)
* if WinVer is Win2k then copy tabsrmm_unicode.dll + tabsrmm_icons_faith_brq_2k.dll (without "_2k" in the name)
if WinVer is WinXP/2k3 then copy tabsrmm_unicode.dll + tabsrmm_icons_faith_brq_xp.dll
(without "_xp" in the name)

my code is
PHP Code:
Function .onInit
   ReadRegStr $WinVer HKLM 
"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion" CurrentVersion
    StrCmp $WinVer 
"5.0" win2k
    StrCmp $WinVer 
"5.1" winxp
    StrCmp $WinVer 
"5.2" winxp

     StrCpy $icons 
"2k"
     
StrCpy $unicode ""
         
Goto endwinver

        win2k
:
    
StrCpy $icons "2k"
    
StrCpy $unicode "_unicode"
         
Goto endwinver

        winxp
:
    
StrCpy $icons "xp"
    
StrCpy $unicode "_unicode"
        
endwinver:
FunctionEnd 
PHP Code:
Section "tabSRMM v0.9.9.9" SecTabSRMM
    SectionIn 1 2 3
    SetOverwrite on
    SetOutPath 
"$INSTDIR\Plugins"
    
File "..\Plugins\tabsrmm${unicode}.dll"
    
File /oname=tabsrmm_icons.dll "..\Icons\tabsrmm_icons\tabsrmm_icons_faith_brq_${icons}.dll"
SectionEnd 
And it doesn't works - when I'm compilate this it complains:
File: "..\Icons\tabsrmm_icons\tabsrmm_icons_faith_brq_${icons}.dll" -> no files found.
in fact that files
tabsrmm_icons_faith_brq_2k.dll
tabsrmm_icons_faith_brq_xp.dll
exist

Thank you for any help
Faith Healer is offline   Reply With Quote
Old 25th March 2005, 12:11   #2
ken52787
Major Dude
 
ken52787's Avatar
 
Join Date: Aug 2003
Posts: 1,297
Send a message via AIM to ken52787
This isn't the NSIS forum, it's the NSV one.

NSV downloads
An in-depth step by step guide for newbies, coming soon.
ken52787 is offline   Reply With Quote
Old 25th March 2005, 12:13   #3
Faith Healer
Junior Member
 
Join Date: Mar 2005
Location: Russian Federation, Moscow
Posts: 7
Send a message via ICQ to Faith Healer
sorry, my mistake
2Admons - delete this topic please. sorry for inconvinience
Faith Healer is offline   Reply With Quote
Reply
Go Back   Winamp Forums > SHOUTcast > SHOUTcast TV / Nullsoft Video

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