buzz71
Posts: 25
Joined: Tue Nov 02, 2010 11:03 am

Folder permissions on differing Operating Systems

Hi

I am performing an installation that is targetted for more than one operating system (Windows 2003 Server & Windows 2008 Server) requiring setting of users specific to those operating systems on particular folders.

On Windows 2003 Server I need this to be:
IUSR_[COMPUTERNAME]

On Windows 2008 Server I need this to be:
IUSR
IIS_IUSRS

How do I achieve setting these permissions on a folder within a single installer? On the Folder Permissions dialog there does not seem a way to set a permission with an "Install Condition"?

Thanks in advance.

Buzz
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Folder permissions on differing Operating Systems

Hi,

You can try this:
- when setting permissions use a custom property in "Username" field, for example:

Code: Select all

[IIS_PERMISSIONS_USER]
- in Custom Actions page show the "InstallExecuteSequence" -> "CostFinalize" standard action
- under it create a Property set with formatted custom action
- set the "Property Name" field to your custom property (IIS_PERMISSIONS_USER)
- set the "Formatted Text" field to:

Code: Select all

IUSR_[ComputerName]
- set this condition for it:

Code: Select all

VersionNT = 502
- create another custom action with the same property
- set this formatted text:

Code: Select all

IIS_IUSRS
- set this condition for it:

Code: Select all

VersionNT >= 600
This way the permissions user account or group is set based on the target Windows version.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hgxu2013
Posts: 28
Joined: Wed Dec 11, 2013 1:50 am

Re: Folder permissions on differing Operating Systems

Hello Cosmin,

I have a need to do the same requirements. I read your response, i followed the steps instructions but got stuck. I am using AI version 11.4.1

- in Custom Actions page show the "InstallExecuteSequence" -> "CostFinalize" standard action

I clicked on Custom Actions page, from the right panel, I saw only "Wizard Dialogs Stage", "Install Execution Stage", and "Finish Dialogs Stage". Where do I find "InstallExecuteSequence"?

Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Folder permissions on differing Operating Systems

Hi,

The "InstallExecuteSequence" is that name that was used in the older version of Advanced Installer for the "Install Execution Stage" section. So, they are the same thing.

In order to show the "CostFinalize" standard action, you can right-click on that section, then select "Show Standard Actions -> Paths Resolution -> CostFinalize".

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

Return to “Common Problems”