Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st November 2003, 17:26   #1
Ned_Flanders_
Junior Member
 
Join Date: Nov 2003
Posts: 10
Unhappy auto choose sections depending on GetWindowsVersion

Hi,

Im quite new with the NSIS Installer and now I have my first breakdown with its use.
Im trying to seperate the Installing Process for different WindowsVersions with the GetWindowsVersion Function posted on nsis.sourceforge.net

I tryed lots of ways to make an exception for Windows XP before I start one of my Sections but I wasnt able to get the result i need.

here s my last tryout:
--<snipp>-------------
;GetWindowsVersion copies the result into
;

Section "cFos DSL Treiber" DSLTreiber
SectionIn 1 3 4
; StrCmp $6 "${MUI_OSVERSION}" jump_over_cFos gehweg
; StrCmp $6 "${MUI_OSVERSION}" jump_over_cFos gehweg
MessageBox MB_OK "in cFos $8"
StrCmp $8 'Windows XP' +1 +2 ; jump_over_cFos
Goto +9
; StrCmp $8 'Windows 2003' jump_over_cFos 0
# CD Version
SetOutPath "$EXEDIR"
; ExecWait "$EXEDIR\cFos\cFos.exe"
ExecShell "$EXEDIR\cFos\cFos.exe -nogroup - q -s -noreboot" SW_SHOWMINIMIZED
SetOutPath "$INSTDIR"
jump_over_cFos:
SectionEnd
--<snapp>-------------

Im Useing NSIS 2 beta 3 and the last way i tried crashed the HM NIS Editor to crash ...

Thanks a lot for any help
and sorry for bad english
regards,
Simon
Ned_Flanders_ is offline   Reply With Quote
Old 21st November 2003, 18:08   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
http://nsis.sourceforge.net/site/ind...&tx_faq_faq=25
Joost Verburg is offline   Reply With Quote
Reply
Go Back   Winamp 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