requesting evelated rights on 'install'-button click - 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!

Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

requesting evelated rights on 'install'-button click

hi guys,

The Advanced Installer Application setup requests the elevated rights not until you press the 'install' button.
How can this behaviour be implemented in my own setup package?

kind regards
laurin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: requesting evelated rights on 'install'-button click

Hi Laurin,

This behavior is achieved with the default settings in a new project.
If you are not being elevated at all during your installer, this is most likely because you are creating a per-user package.

If you are getting elevated at the very beginning of the install process, you are most likely creating an .exe installer, meaning you are using the bootstrapper.
Do the following:
- Go to Media page->Bootstrapper tab
- in the Security section lower on the tab, make sure you have "As Invoker" selected from the combo for the "Execution level".
Your installer should now only require privileges after pressing the "Install button"

If this is not what you intended, please describe your issue in more detail:
- what is the current behavior
- what behavior do you expect

Do let me know if this helped.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Laurin
Posts: 58
Joined: Thu Jun 12, 2008 4:27 pm

Re: requesting evelated rights on 'install'-button click

Thank you, that does it for now. :-)
antidotcb
Posts: 34
Joined: Mon May 17, 2010 8:10 am

Re: requesting evelated rights on 'install'-button click

GabrielBarbu wrote:If you are not being elevated at all during your installer, this is most likely because you are creating a per-user package.
Is there a possibility to be elevated with per-user installation.
I need per-user installation. But some customizable features could change a system (register event logs, services, register system wide plugins for MSVC),
so all of these I make in CustomAction, but require to be evaluated. The best choice will be UAC prompt like in case of per-machine changes.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: requesting evelated rights on 'install'-button click

Hello,

You can try using the "Per User (with administrator rights required)" installation type in the Install Parameters page. This way the installation should run per-user, but elevated.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”