Archive: How to get NSIS to use different sets of cab files based on target O/S?


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.


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.


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" ????


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.


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


I have uploaded the new version which will return "Windows CE" for WindowsName.

-Stu


I have uploaded the new version which will return "Windows CE" for WindowsName.
Therefore, Stu entirely solves the problem!