I'm new to the forum and having a few issues with NSIS that I'm hoping you can help me with.
I'm trying to put together an installer that will install to XP, Vista and Windows 7 but immediately ran into an issue on XP, admin rights are required in order to install my files correctly but unlike Vista and Win7, XP doesn't prompted for an admin password.
To get around this issue I switched to a multi-user install and included
RequestExecutionLevel adminThis then forces the user to log in as administrator first. I thought I was home and dry but then hit the issue that if you install as a single user on XP in the case where the user has admin privileges the uninstaller can't remove the create shorcuts from the start menu. Googling around offered up this solution
SetShellVarContext allBut that then causes the issue that you are no longer installing for a single user you are installing for everyone.
So back to square one.
What is the correct way to handle installing on XP as administrator?
Is the solution to only offer install for everyone? And if that is the case how do you do that? I'm currently just using the multi-user macro
Thanks for any help in advance...
!define MULTIUSER_EXECUTIONLEVEL Admin
!define MULTIUSER_MUI
!define MULTIUSER_INSTALLMODE_COMMANDLINE
!include "MultiUser.nsh"
!include "MUI2.nsh"
!insertmacro MULTIUSER_PAGE_INSTALLMODE
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES