veryuniqnick
11th April 2006 15:17 UTC
How to get NSIS to use different sets of cab files based on target O/S?
I use NSIS to install application on handhelds (PDA's)
that are running either Windows CE or PocketPC.
Each platform requires a different set
of cab files.
I'd like to be able to prompt the user to choose which platform
they want to install the application on, and based on their choice,
the appropriate list of cab files is listed.
How do I do that?
(it would be even better if I can get the installer to detect
what is the device's operating system, so that it loads the
appropriate set of cab files automatically).
Thanks a lot.
Red Wine
11th April 2006 15:42 UTC
well, I have not any PDA so I am not sure if this works, though, you could try it.
see version plugin if the plugin detects Windows OS while installing in PDA, then you solve your problem.
veryuniqnick
11th April 2006 16:06 UTC
ok how do I set the conditions
like "if user chooses platform CE, then load the list of CE cabs
else if user chooses PocketPC, then show the list of PocketPC cabs" ????
Red Wine
11th April 2006 16:24 UTC
my thought is this, if the plugin can give you enough info for the OS, there's not need to ask users, just loads the
appropriate set of cab files automatically as you mentionent above. You could try the plugin on those PDA to see if it could be useful.
Afrow UK
11th April 2006 16:43 UTC
The plugin currently does not return Windows CE yet, but I plan on changing that now.
Microsoft's code that the plugin is based on does not include Windows CE.
-Stu
Afrow UK
11th April 2006 17:08 UTC
I have uploaded the new version which will return "Windows CE" for WindowsName.
-Stu
Red Wine
11th April 2006 17:39 UTC
I have uploaded the new version which will return "Windows CE" for WindowsName.
Therefore, Stu entirely solves the problem!