timecop12
1st September 2003 18:27 UTC
use SetCurInstType
Hi,
I've a problem with SetCurInstType. It doesn't set the InstType-index.
It's used in a Function and called by
!define MUI_CUSTOMFUNCTION_COMPONENTS_SHOW SelectFromCMDLINE
Function SelectFromCMDLINE
Call GetParameters
Pop $0
GetCurInstType $5
StrCmp $0 "-offline" offlineup
MessageBox MB_OK "Offlineparameter nicht gefunden ($5)"
Goto +3
offlineup:
SetCurInstType 2
MessageBox MB_OK "Offlineparameter gefunden ($5)"
FunctionEnd
I don't know. Please help me.
-timecop
kichik
1st September 2003 18:41 UTC
Works fine for me. You can't jump over SetCurInstType using relative jumps, use a label. Also make sure you are using the correct InstType index, it's zero based unlike SectionIn.
timecop12
1st September 2003 18:56 UTC
Thanks,
I will try with a label. I don't really understand the zero-based-format. My InstTypes are:
InstType "Online(Standard-Server)"
InstType "Offline/LAN"
InstType /LANG=1031 /CUSTOMSTRING=Online(Alternativ-Server)
What is the zero based value for the second type?
-timecop
timecop12
1st September 2003 19:22 UTC
OK, I understand, now. The Installer works fine.
Bye timecop
*NSIS rocks*