davidesharpe
Posts: 56
Joined: Fri Jul 01, 2011 4:56 am

How to delimit the Installer Property indicator - []

have an issue with a custom action running the AppCmd

the command line would be C:\Windows\System32\inetsrv\appcmd.exe set config /section:applicationPools -[name='nameOfService'].startMode:AlwaysRunning, however I need to replace the nameOfService with an installer property [MYPROPERTY], How do i delimit the square braces [] that dont relate to an Installer property ?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to delimit the Installer Property indicator - []

Indeed, this is the default behavior of Windows Installer.

If a substring of the form [\x] is found, it is replaced by the character x , where x is one character, without any further processing. Only the first character after the backslash is kept; everything else is removed. For example, to include a literal left bracket ([), use [\[]. The text [\[]Bracket Text[\]] resolves to [Bracket Text]. You can also take a look on the Windows Installer Formatted data type article.

However, you can use an IIS Custom Property from the Advanced Installer UI to define that application pool attribute value.

In order to set the App Pool to "AlwaysRunning=true" you can select your Application Pool and add a Custom property like this:
Section: <ApplicationPool>
Name: startMode
Value:AlwaysRunning

Please let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidesharpe
Posts: 56
Joined: Fri Jul 01, 2011 4:56 am

Re: How to delimit the Installer Property indicator - []

I cannot add a custom prpoerty in the app pool, there is no where to do this ! I have IIS7.5 installed on this machine.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to delimit the Installer Property indicator - []

Hello,

In order to define a custom property you can go in the IIS page and select your Application pool. In the Custom Properties tag you can use the [ New ] >> [ Attribute Value ] option and add a custom property, something like:
Section: <ApplicationPool>
Name: startMode
Value:AlwaysRunning

Please let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”