Archive: Modern UI and All Users


Modern UI and All Users
Hello boardmembers!

I am pretty new to NSIS-scripting, but one week of research didn't get me closer to an answer.
I want to make an installer with the Modern UI. Since this is macro based, I did not find any option to install for all users and not only for a single user. As I understand there is the context switch in the normal UI for this purpose, but is there a similar possibility in the Modern UI?

Thanks,
TopS


Use SetShellVarContext. Works with MUI, Classic, or any other interface you want to use.


Yes, I thought of that. But I was unable to insert it at the right position in the script. Where and how would I have to insert it? Is it also possible to make it user selectable which context is chosen?

Thanks for your reply,
TopS


It is valid inside function/section.

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.7.6

You should set up a custom page asking users whether they want install for current/all.