- NSIS Discussion
- InstType Problem
Archive: InstType Problem
Dizzy007
31st October 2002 11:44 UTC
InstType Problem
NSIS 1.99
=========
Hi All,
another Problem ...
I use InstType to offer different servers.
But i always get a costum possibility or the
hole components ...
I just want to have my 3 choices - nothing more :cry:
The option "/NOCOSTUM" doesn't work .. see my code.
Thanks for your help!
Dizzy
kichik
31st October 2002 13:28 UTC
This code works for me on 1.98, 1.99, 2.0a7 and the latest CVS version. Make sure you recompiled and that you are running the right installer. If it still happens please attach a screen shot.
Dizzy007
31st October 2002 13:49 UTC
Originally posted by kichik
This code works for me on 1.98, 1.99, 2.0a7 and the latest CVS version. Make sure you recompiled and that you are running the right installer. If it still happens please attach a screen shot.
Hi kichik,
i'm using the NSIS 1.99.
Due to the faults i've upgradet from 1.98 to 1.99 - but the error still exists.
See the file (is a zip) including the compiler output, screen shots and the source ..
Thanks for your help!
Dizzy
;)
kichik
31st October 2002 14:03 UTC
Hmm... I see no custom there... Did you mean you don't want the section names to show?
BTW, you can upload ZIP files here, you don't have to rename them to txt files.
Dizzy007
31st October 2002 14:15 UTC
Originally posted by kichik
Hmm... I see no custom there... Did you mean you don't want the section names to show?
BTW, you can upload ZIP files here, you don't have to rename them to txt files.
I don't want to have a custom entry.
I just want to have my 3 choices :
- RTI-Server01
- RTI-Server02
- Other
and no COMPONENTSONLYONCUSTOM - no custom choice - just my 3 choices...
I've attached a faked screen - as i want to have ...
Thanks
Dizzy
kichik
31st October 2002 14:28 UTC
Well, that's impossible with just NSIS. You will have to use a custom DLL such as ShowWin.dll (latest CVS version only), or create a custom page using IO.
Dizzy007
1st November 2002 08:20 UTC
Originally posted by kichik
Well, that's impossible with just NSIS. You will have to use a custom DLL such as ShowWin.dll (latest CVS version only), or create a custom page using IO.
Hmm - sorry if i misunderstand the function
InstType /NOCUSTOM
If i use the /NOCUSTOM function - (in my mind) i would not have any "custom choice" ... am i right? It doesn't work :hang:
So, what's wrong with my code?
I would be happy to get the right code.
Thanks
Dizzy
kichik
1st November 2002 09:58 UTC
Your code is perfectly fine and your installer works perfectly fine too. When you use InstType /NOCUSTOM the user can't select Custom from the drop down list and can't change the components selection without the drop box. That's exactly what you have in your installer, what is the problem?
If you don't want the component selection box to show at all you will have to use ShowWin.dll, System.dll or InstallOptions.
Jacob Metro
1st November 2002 23:23 UTC
/componentsonlyoncustom
I think if you throw /componentsonlyoncustom together with /nocustom you will see only the three choices you are looking for.
what that'll do is force the compiler not to let you see any components except the three you have outlined seperatly, and you won't be able to choose a custom install.
jacob
Dizzy007
4th November 2002 08:04 UTC
Re: /componentsonlyoncustom
Originally posted by Jacob Metro
I think if you throw /componentsonlyoncustom together with /nocustom you will see only the three choices you are looking for.
what that'll do is force the compiler not to let you see any components except the three you have outlined seperatly, and you won't be able to choose a custom install.
jacob
Hi Jacob,
this won't work :(
Both parameters in one :
InstType /NOCUSTOM /COMPONENTSONLYONCUSTOM
line will force a compiler error :
Usage: InstType (/NOCUSTOM|[LANG=lang_id] /CUSTOMSTRING=CustomStr|Typ
And each in one line :
InstType /NOCUSTOM
InstType /COMPONENTSONLYONCUSTOM
will have the result of 4 choices ... including the unwanted "Custom" :cry:
Another Idea?
Greets Dizzy
kichik
4th November 2002 14:04 UTC
/NOCUSTOM can't be combined with /COMPONENTSONLYONCUSTOM.
Jacob Metro
4th November 2002 15:36 UTC
NSIS Examples
I took a couple of examples from KiCHiK. Here are my results.
Your text should be the following:
[edited by kichik]Don't include huge scripts in the message itself. Attached below[/edit]
In my case I needed in excess of ten options, I think three is just perfect for this method.
I have included screen shots in the attached file showing the purpose of using both /NOCUSTOM and /COMPONENTSONLYONCUSTOM.
Feel free to email me with any questions. J.Metro@juno.com.
Thanks,
Jacob
Joost Verburg
4th November 2002 15:47 UTC
Please attach large scripts.
Thanks.
kichik
4th November 2002 15:50 UTC
Let me put it this way... You can't put InstType /NOCUSTOM and InstType /COMPONENTSONLYONCUSTOM in the same script. It just doesn't work, you can't.
Jacob Metro
4th November 2002 21:01 UTC
here is evidence
I think this is what you're looking for.
See attachment
the attachment has my script (lifted from KiCHiK) with both /NOCUSTOM and /COMPONENTSONLYONCUSTOM thrown.
The attachment also shows the results on my PC.
Thanks,
Jacob
kichik
5th November 2002 15:35 UTC
Jacob, enough. /NOCUSTOM and /COMPONENTSONLYONCUSTOM can't be in the same script together. They just CAN'T!
Making all of the sections not visible will not work too because it won't show the component page at all.
Allowing the user to choose only one section should work.