Make user an Administrator using patch - 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!

Koystinen
Posts: 2
Joined: Mon Nov 14, 2011 3:42 pm

Make user an Administrator using patch

Are there way to add user who running a patch to a local administrators group without prompt? If we know the password of the local administrator account on the machine.

User is running on Windows XP.

All machines are not in the domain, so group policies would not apply.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Make user an Administrator using patch

Hi and welcome to Advanced Installer forums,

Unfortunately, there is no predefined support for this behavior in Advanced Installer.

Also this kind of behavior seems like a hack and it is not recommended. The recommended way to elevate any user account's privileges is by logging in as another admin user.

If running an installer from an admin user account, you can change the settings of an existing user from within your own custom action. Here is an article to get you started:

Code: Select all

net localgroup <local group> <local account> /<ADD>
You cannot use the predefined User and Groups page because our error policy doesn't cover changing the settings of an existing user account.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Koystinen
Posts: 2
Joined: Mon Nov 14, 2011 3:42 pm

Re: Make user an Administrator using patch

thank you for response.

In that case, What will be recommended strategy of delivering application with fully-automated updates, that will be run by user with limited privileges?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Make user an Administrator using patch

Hello,

You can try to use the Advanced Installer Auto Updater. Here is the tutorial to get you started.

Please keep in mind that a per-user installation also needs Administrator privileges if it installs resources in per-machine locations. You can read more about per-user installations in the Install Parameters article. If your package installs resources in per-machine locations, it requires Administrator privileges.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”