Browse IIS - UAC Elevation Prompt - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

rn-pro
Posts: 48
Joined: Thu Jun 16, 2011 10:27 am

Browse IIS - UAC Elevation Prompt

In your (excellent) article [http://www.advancedinstaller.com/user-g ... e-iis.html] I’ve found the following information:

“This predefined custom action will automatically trigger the necessary UAC Elevation Prompt for you, enabling temporary elevated privileges to execute the IIS browsing operation, so there is no need to elevate the MSI execution beforehand (manually or by means of the bootstrapper).”

In my solution I’m trying to create 2 dialogs:
1) The first one will list all IIS-Websites, so will need the “BrowseIIS” custom action -> UAC Elevation Prompt
2) The second one will list all Virtual Directories for the selected Website so it’ll need again “BrowseIIS” custom action -> UAC Elevation Prompt for the second time.

Is it possible to suppress the second UAC Elevation Prompt?

Thank you very much,
Razvan
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Browse IIS - UAC Elevation Prompt

Hi Razvan,

The only way to suppress both elevations is by creating a bootstrapper EXE which requires elevation of the package from the beginning of the install process.

If the package is not elevated from the beginning, the elevation prompt will appear everything you call our "BrowseIIS" custom action. This happens because we elevate only the custom action process,
not the entire install process. So after the we elevate the process the first time, we perform the actions and then return to the non elevated install process, therefore the elevation permissions are lost.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rn-pro
Posts: 48
Joined: Thu Jun 16, 2011 10:27 am

Re: Browse IIS - UAC Elevation Prompt

Thank you very much, my problem is solved with this.
One more point which could be usefull for somebody reading this post in the future:

All configurations can be made under Media -> Bootstrapper.

Return to “Common Problems”