View Single Post
Old 29th March 2020, 21:33   #12
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,332
The code as posted does not let administrators choose, it installs for everyone if admin and for a single user if not admin (code in .onInit).

Since you are using the MUI you can dump this code and use MultiUser.nsh instead if you wish, it has a selection page. Or you can make your own custom page.

(I edited your code a bit since it had a major issue with the order of WriteUninstaller and FileWriteByte)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote