Create MSI ¦ Import Reg Keys ¦ Runas Admin - 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!

adrian138
Posts: 3
Joined: Thu May 21, 2009 10:09 am

Create MSI ¦ Import Reg Keys ¦ Runas Admin

Hi there,

I would like to create a msi in which i created a lot of reg keys which i like to import on a client machine.
The Keys are HKLM Keys i need to import these with admin rights. How can i put the Admin Credentials to the msi file, so it will execute with admin rights on the client machine.

Thanks alot.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Create MSI ¦ Import Reg Keys ¦ Runas Admin

Hi,

A package configured to install per-machine is always executed with Administrator privileges. The installation type can be set in the Install Parameters page. However, you can also use the EXE boostrapper with a "Require Administrator" execution level.

Regarding the registry entries, I'm not sure I understand what you need to do. Can you please give me more details about this?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adrian138
Posts: 3
Joined: Thu May 21, 2009 10:09 am

Re: Create MSI ¦ Import Reg Keys ¦ Runas Admin

Thanks for your reply,

we have a remoteprogram which users can execute on their clients.

The thing is now, cause the program communicates through 8080 port we need to give proxyinformation with the program. The Program stores the proxyinformation on the clientside in the Registry. If the User has only Userrights it will write the informations to HKCU, if the User has local Adminrights it will write it down to HKLM.

My solution was simple, to create a link on the clientmachines which executes a msi file which contains the regkeys and afterwards would execute the remote program.

It would be nice if i had a msi file with both HKCU and HKLM Keys witch would be imported with adminrights.

cheers
adrian138
Posts: 3
Joined: Thu May 21, 2009 10:09 am

Re: Create MSI ¦ Import Reg Keys ¦ Runas Admin

anybody got an idea?

thanks very much!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Create MSI ¦ Import Reg Keys ¦ Runas Admin

Hi,

Like I mentioned in my previous post, you can try using the "Require Administrator" execution level for the EXE bootstrapper. When the installation is started through the EXE, the user will be prompted about elevation. This way, the package can run with Administrator privileges.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”