Hi there.
We have been trying to build a MSI that we can pass a property to set
MaxWorkerProcesses when installing the MSI, and thus, choose between having
WebGarden ON or OOF.
I cannot set the attribute to a public property that I pass from the command
line, like this:
<WebAppPool Id='AppPoolWGOFF' Identity='networkService' Name='HotmailAppPool'
RecycleMinutes='14400' MaxWorkerProcesses='[WEBGARDEN]' VirtualMemory='1879040'
/>
Because I get the following warning:
Warning 1 The 'MaxWorkerProcesses' attribute is invalid - The value
'[WEBGARDEN]' is invalid according to its datatype
'http://www.w3.org/2001/XMLSchema:integer' - The string '[WEBGARDEN]' is not a
valid Integer
I cannot put it in two components that I condition with that property, because
I need to have two IDs for the WebAppPool and therefore only one of them match
the WebAppPool atribute in the WebApplication element. I decided to create two
components for my website being identical, with the only difference of the
value of MaxWorkerProcesses and the element IDs, but this did not work as
desired because, the website ID gets bumps by one in the second component, I
think is because the first website is marked to install.
MSI (s) (70:B0) [14:01:04:844]: Component:WebSiteComponentWGOFF; Installed:
Absent; Request: Local; Action: Null
MSI (s) (70:B0) [14:01:04:844]: Component: WebSiteComponentWGON; Installed:
Absent; Request: Local; Action: Local
So the first one will get web site ID 1 and the second #2, and the desired goal
is for both of them to install identically.
Any way, we can have the MaxWorkerProcesses taken its value from a property?
Thanks
Andres
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users