Admin privileges in Vista - 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!

Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Admin privileges in Vista

Hi in my current project I need to install some users to an SQL database and also restore databases with that user my user creation script runs but restore scripts does not and I think this is because vista does not give permission to create the database files because I get an error with the SQL management studio also

My installer runs with admin priviliges and I am using admin account under vista so anyone can help on this?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Admin privileges in Vista

Hello,

Can you please state the error you are getting in SQL Management Studio? Please note that if it will not work in SQL Management Studio, it will not work in Advanced Installer either.

Thank you,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Admin privileges in Vista

it says "operating system error (error not found)"
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Admin privileges in Vista

Hi,

Here is some information regarding the error you've received. Please note that this is not related to Advanced Installer, you should first try to fix it and afterwards to create the project in Advanced Installer.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Admin privileges in Vista

I already did the things mentioned there and I do know this is not something about AI it is about vista because I don't get this error in xp when I try to install my project

I just want to know that is there anyway to make the script files or the exe files I attach to the installation run with admin priviliges or is it handled when I make my project execution level Require administrator?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Admin privileges in Vista

Hi,

By default, your SQL scripts run under the local SYSTEM account, with administrator privileges. To run SQL scripts under current user account, you can use the "Impersonate installing user" context menu item while "Database Server" is selected in the tree pane. Make sure the installing user has access to your database.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Mert
Posts: 50
Joined: Mon Jun 15, 2009 4:00 pm

Re: Admin privileges in Vista

OK I did it and it works well now but I wanted to know if there was a such thing for the custom actions also because I run some exe files that has to be run as administrator so will they work that way or do I need to do something?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Admin privileges in Vista

Hi,

For custom actions to run under the current user you can use one of these Execution Options:

- immediate
- deferred
- rollback
- commit

To run the custom action with administrator rights you can use one these options:

- deferred with no impersonation
- rollback with no impersonation
- commit with no impersonation

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”