Ok I have found a way atleast to disable the Repair button for non-admin users.
By setting the property ARPNOREPAIR to 1 on first installation, you disable the Repair button in Programs and features. After first installation when you open the MSI it will obviously be disabled even if you are admin. To enable it only for admins, I've added a Custom Action to set the value of the property ARPNOREPAIR to empty. Then in a InstallUISequence I add that custom action before the LaunchConditions event and with the condition: Installed AND NOT RestrictedUserControl This will enable the repair button when running the MSI file as admin. Which is what I want because it displays the UI to re-enter the new settings. If anyone has a better way (or something to point out) please let me know. Thanks ---------- Forwarded message ---------- From: Dandre Jansen van Vuuren <dandre...@gmail.com> Date: Mon, Jan 10, 2011 at 12:17 PM Subject: Force install repair for admins To: wix-users@lists.sourceforge.net Hi all I am using the Wix UI templates to create my UI dialogs for my wix (generated) installer. Now it works as it should but I am concerned that the Repair option in the maintainece window lets ordinary users to execute without worrying if their admins or not. It doesn't have the elevation shield icon on it and when I execute the installer from a user account that doesn't have admin access, it still allows to run. How can I force this to check if the user running the installation has admin priveleges or to check for elevated privileges? This is kind of important in order for my repair operation to work properly as my repair option not only "repairs" the installation but it allows the user to respecify the installation settings. Thanks! ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users