Hard-Coding Administrator Account into Installer - 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!

jimmyw404
Posts: 5
Joined: Mon Sep 28, 2009 8:18 pm

Hard-Coding Administrator Account into Installer

I searched for this but could not find anyone encountering this issue...

I'm making an installer to be used by a wide variety of non-technical users on a kiosk. They are only allowed to have limited permissions but need to run some kind of installer and updater (That needs to be run on an administrator account... I don't make the rules, I have to go around them!) Our current solution is to use a custom-built executable that escalates the privileges with hard-coded values.

My question is, is it possible to hard-code an admin account/pw into an AdvancedInstaller .msi that will cause the installer to be run as an administrator when it is used on a limited account?

Thanks.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Hard-Coding Administrator Account into Installer

Hello,

You can use the script posted in the following thread:
http://www.tek-tips.com/faqs.cfm?fid=2760

Please note that by hardcoding the username and password of the administrator account into your msi, you are severely compromising the security of that computer.

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

Return to “Common Problems”