I have a Visual Studio setup project that generates an msi installer. The installer works fine if I run it as an administrator. If it is not run as an administrator my updates to HKEY_CURRENT_USER\Software\Microsoft\Office fail.
I have looked at Launch Conditions, Custom Actions and Prerequisites from the project properties but I could not figure out how to do this.
Is it possible to to create an install that will warn users and fail if it is not run with administrative privileges?
Thanks