Q: Two instances of installer (Created using Inno) is shown in task manager I created an installer using Inno. I had a requirement to launch installation only in admin mode. I have set the options in Inno ([Setup]: PrivilegesRequired=admin). But this is not helping me completely.
In windows 7, UAC is on. When user clicks on the installer, UAC window comes up asking for authorization. If user selects yes, two instance of the installer is seen running in task manager.
But if user right click on the installer and selects 'run as administrator', UAC window comes up, but this time only one instances of installer is seen in task manager. 
I have coded to run only one instance of installer to run at a time. So in the first case, installation fails. User has to always select 'run as administrator' to install.
Is there any way to fix this issue?

A: What you see in task manager as a second process of your setup application is a spawn process that is used to run another processes with the same elevation from within your setup.
I haven't checked this deeper in InnoSetup source, but I don't think there's a way to prevent its creation. That spawn process is hidden from user's point of view and it's not something you should be afraid, just don't try to kill it manually, let it live its own live!
Anyway, you don't need to set the PrivilegesRequired directive to admin in your script. This is a default value of this directive, so you can remove that line.
