I am registering the DLLs as part of the installation - sorry if that wasn't clear. My problem is that during installation, I run a batch file that contains regsvr32 references. In Vista, this batch file is not ran with "real" admin privileges, given the use of UAC. I could turn UAC off, but I would rather not. What I need is a way to run this batch *automatically* as an administrator. Right now, the only way to do that is to manually right click the batch and hit "run as administrator".
Main Topics
Browse All Topics





by: grayePosted on 2009-09-30 at 06:35:46ID: 25458655
Well, there are techniques to run an app without prompting. That might work for you, but only for users who are also administrators. Ordinary users would have to be prompted (as they lack the required priviledges)
Why didn't you put the registration task as part of the installation? It's pretty much assumed that only Administrators can install an application.