As far as I can see from the source code, it won't fail if the
application pool (or another metabase key) with the same name already
exists. It'll just try to create one, and if there's an error, it'll
check for the presence of such key and continue with OK status if it is
there.

I might miss something, but it seems this is how it works. :)
Hope this helps.

-- Yan

-----Original Message-----
From: Jirong Hu [mailto:jirong...@gov.ab.ca] 
Sent: Monday, June 29, 2009 8:04 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] IIS Application Pool, how to not create if exist?

Hi

I have the following code to create a IIS application pool. How can I
put in logic says that don't create if it's already exists?

<DirectoryRef Id="TARGETDIR">
                <Component Id='SFSAEAppPoolComp'
Guid='B7D1E298-5A98-11DE-937D-1DD455D89593' >
                                <iis:WebAppPool Id='SFSAEAppPool'
Name='Assessment Engine AppPool'>
                                </iis:WebAppPool>
                </Component>

Thanks
Jirong Hu
Build Master
780-644-5488


This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal, and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take
action relying on it. Any communication received in error, or subsequent
reply, should be deleted or destroyed.
------------------------------------------------------------------------
------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to