A frequently-asked question is how to determine if the current user running the installation has Administrator privileges. This depends on what project type you are using.
For InstallScript and InstallScript MSI projects, there are a couple ways:
Check if SYSINFO.WINNT.bAdmin_Logged_On is TRUE. If so, the user has Administrator privileges.
Check if Is(USER_ADMINISTRATOR,"") returns TRUE. If so, the user has Administrator privileges.
For Basic MSI projects, you need to do this:
Check if the Privileged property is set. If so, the user has Administrator privileges, or the application has been assigned by a System Administrator, or both the user and machine policies AlwaysInstallElevated are set to TRUE.