Write to registry... - Advanced Installer Community
kondriks
Posts: 36
Joined: Mon Nov 17, 2014 3:49 pm

Write to registry...

I need to write to the registry keys, if the user has administrative rights. I can not find how to set the conditions.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Write to registry...

Hello,

In order to achieve what you want you should condition, from "Organization" page, the component of your registry using the "AdminUser" property. Also, please take a look on the "How to see if the logon user has admin rights?" thread which could be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kondriks
Posts: 36
Joined: Mon Nov 17, 2014 3:49 pm

Re: Write to registry...

Thanks Daniel.
Now everything works.
kondriks
Posts: 36
Joined: Mon Nov 17, 2014 3:49 pm

Re: Write to registry...

There is another issue - how to create the same key in the registry if it can be created with two components?
There is an example of such an implementation for files and folders.
How to implement similarly for the registry?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Write to registry...

Hello,

You can use an approach similar with the one exposed in our "Install 32/64-bit registry entries" how to. Please note there is not mandatory to create a mixed package type.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kondriks
Posts: 36
Joined: Mon Nov 17, 2014 3:49 pm

Re: Write to registry...

Thanks. That that is necessary!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Write to registry...

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”