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!

litu
Posts: 71
Joined: Fri Mar 22, 2013 2:57 pm

Permission on the registry depending on a condition

Hi,

I want to add the IIS_WPG (later IIS_IUSRS) group permissions on a certain keys of the registry. Is there any way to set permission to IIS_WPG or to IIS_IUSRS depending on the OS version?

I've done that creating users, but I can't see if that's possible when assigning permissions to registry keys. Can you help me?

Thanks in advance.
Arnau.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Permission on the registry depending on a condition

Hi Arnau,

In order to achieve this you can use the following approach:
- go in the Install Parameters page and create one property for each Operating System type (i.e. [XP], [VISTA], [WIN7], etc)
- the value of these properties will be the same (i.e. IIS_WPG)
- go in the Registry page and create registry keys for each OS using the properties created earlier as the name for these keys
- set the permissions you need for each registry key
- go in the Organization tab, move each registry entry in its own component and set an OS condition for these components (i.e. VersionNT = 501 for WinXP)
- build and run the package

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”