Archive: Check for permissions, and installed win installer version


Check for permissions, and installed win installer version
Greetings,

I am looking for ways to archieve two things, neither of which i could find something about in the docs or the forum.

First thing: Before everything else, I need to see whether the current user has admin rights on the system. I am sure I saw that somewhere already, but I cannot find it :)

Second: I need to find out which version of Windows Installer is currently running on the system, and upgrade if necessary. (the latter part is trivial as soon as I know which version we have) This is because we fire up an installer of another component - not done with NSIS, and we dont have access to that one's sources.

Thanks for your time :)


thorsten


- Use the NSIS 2 UserInfo.dll plugin (have a look at the Readme for more info)

- Check the version of msi.dll in the system directory


The first one is in the FAQ.