Archive: LUA plugin and XP


LUA plugin and XP
I have an installer that uses the LUA plugin to request admin privileges (because when I'm done I need to launch the application in the context of the original user). Now I've encountered somewhat unexpected behavior when running the installer on XP. If I leave the default settings in the Run As dialog as they are, i.e. Current User selected and Protect my computer... ticked, I get an error message that simply says "Error launching installer". If I untick the Protect my computer... box, I get "This installer requires admin access, try again", as it should be. I'm guessing the protection is preventing the installer from extracting stuff that it needs or something similar, has anyone encountered this? Is there any way to things more user friendly in this case.


do you mean the UAC plugin? LUA = limited user acces (not admin)

Anyway, that checkbox turns on more proctection and (you can't write to the users profile, thats why the installer will not start)

see http://blogs.msdn.com/aaron_margosis...10/227727.aspx

I am not providing that checkbox, it comes from the shell, to hide the checkbox would require some dirty hooking, not sure if I want to go down that path


Yes sorry, I meant UAC of course :) I was hoping maybe there was a way to catch this or tell Windows to disable this protection option. But if not I'll just write this off as a known issue. Thanks for responding so quickly :)


in the next version, you can compile with the define FEAT_MSRUNASDLGMODHACK set and it will default to the other user radio button and disable that checkbox (not sure if FEAT_MSRUNASDLGMODHACK will be set in my release builds or when I will get around to testing and uploading a new version)


That sounds really good, I'll be looking forward to your next version then. Thanks for the update.