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!

clive_bor
Posts: 48
Joined: Thu Mar 09, 2006 8:32 am

Install as admin

Hi,

I need to install our package as an administrator since we install a service, but our application runs in per-user mode.

What is the best way to do this for a limited user on Windows XP, since it reports that the user does not have privileges to access the Program Files directory and also wont be able to install the service?
It works fine on Vista since it prompts for privilege elevation.

I've tried using this
runas /profile /env /user:administrator "msiexec /i file.msi"
but this installs the application shortcuts etc. into the administrator's profile.

Thank you,
Clive
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Clive,

In order to install a per-user package that needs administrator privileges you need to advertise it. To do that run the package with following command line: msiexec /ju package.msi, after that run the package.

Read more about this here:
http://msdn2.microsoft.com/en-us/library/aa369519.aspx

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”