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!

clamarazu
Posts: 5
Joined: Mon Feb 20, 2012 11:00 pm

Run as Admin in Windows 7 or Vista

Hello,

We have version 8.2 installed. I need to launch the application at the end of installation. When I run this in Windows 7 I need the application to run as administrator because this application makes changes to the Windows registry. I have tried to do it with a custon action RunAsAdmin partnering this action in the event "Published events" but it doesn´t work. The only way that it works is to run the installer as administrator.

I need your help to make this setting,

Thanks.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Run as Admin in Windows 7 or Vista

Hi,

To make the setup generated by Advanced Installer to run as administrator you can simply go to Media page, Bootstrapper tab and set the execution level
to "Require administrator".

To make the main executable of your application always run as an administrator you need to embed the manifest that specifies the execution level before you create the setup package. Usually the development tools provide support for setting it.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
clamarazu
Posts: 5
Joined: Mon Feb 20, 2012 11:00 pm

Re: Run as Admin in Windows 7 or Vista

Thanks for your reply. This worked. I set the option "Execution Level = Require Administrator" in Bootstrapper.

I have another question. I am installing a windows service within the installer. When installing the application it works correctly, but when I need to unistall it with the same installer or by the Control Panel, the application unistalls correctly but the service continues in the windows service list (I need that the service unistall ).

I have the following configuration:
>> In the tab Services/Control Operation:
- Event On Install: Only have checked "Stop"
- Event On Uninstall: Have checked "Stop" and "Delete".

Do I need another configuration to delete the service?

Thanks
clamarazu
Posts: 5
Joined: Mon Feb 20, 2012 11:00 pm

Re: Run as Admin in Windows 7 or Vista

I have used all necessary settings and read all the examples that explain it and it does not work.

I need your help...
clamarazu
Posts: 5
Joined: Mon Feb 20, 2012 11:00 pm

Re: Run as Admin in Windows 7 or Vista

It worked. Thanks for your help

Return to “Feature Requests”