insolit
21st July 2003 14:28 UTC
How to create install options?
Hi everyone!
I'm a truly newbie in this stuff.
I've recently created an installer with various sections of files to install, but i'd like to complete the installer by adding installing options.
What i mean is, that i'd like for example to have 3 types of installation, one for example would be complete, which would install everything, another one custom and the last one default.
Hope someone can help me on this.
Thanks in advance!
kichik
21st July 2003 14:36 UTC
You should use InstType. You can find an example in bigtest.nsi and makensis.nsi. There are probably some examples in the Archive too. But it's not that complicated, just InstType and SectionIn. The documentation should be enough.
insolit
21st July 2003 14:50 UTC
thnks a lot kichik
insolit
21st July 2003 14:59 UTC
Another question!
I know now how to set different types of installation.
In this installer i already have support to multilaguage, can i give different names to the installation types, depending on the installation laguage choosen? If so, how can i do it?
kichik
21st July 2003 15:03 UTC
Define a LangString. If you're not using the latest CVS version (b4) use LangStringUP. Example (replace to LangStringUP if needed):
LangString InstTypeName ${LANG_ENGLISH} asd
LangString InstTypeName ${LANG_FRENCH} asd3
InstType $(InstTypeName)
insolit
21st July 2003 19:29 UTC
Thanks a lot!
Worked perfectly :)