Here's the real use case.
I need to create what I'll call an 'Infrastructure Package',
specifically for a web service application in a corporate server
environment. I need a single unattended MSI that can create an IIS 6.0
web site and application pool based on an environment setting on the
machine (DEV, PROD, STRESS, etc). The contents of the iis:Web* elements
change based on environment (e.g. app pool user name, host header, etc).
The server folks will take the MSI and push it out to the various
servers using some tool they have.

Being an Infrastructure Package, there are neither files nor registry
entries, etc thus no KeyPaths. (Actually, I do have a RegKey with no
values but a key isn't allowed as a KeyPath)

The actual contents for the site are provided with version specific (v1,
v2, etc) installers (not necessary Wix created and even MSI based [e.g.
AppCenter or Xcopy]) and assume that the Infrastructure has already been
setup.

I'm sure I don't understand all the implications for servicing and a
random guid but I think my only use case for changes would be to
uninstall and install a new one. No patching required.

To make things more fun, in order to securely set the app pool password,
I'll eventually need a custom action that can call out to a SAML secured
WCF web service to retrieve the password. Hard coding it into the
install isn't an option. But that's for another day.

----- Ed

------------------------------

Message: 7
Date: Mon, 31 Aug 2009 16:25:46 +0000
From: Svet Bonev <sbo...@microsoft.com>
Subject: Re: [WiX-users] Preprocessor and Component Guids


No, there is no built-in functionality to accomplish that.

But the bigger question is why you want to create such components.
Ideally, you would have file KeyPaths. Random component guids are
usually bad  for servicing scenarios. What are you doing with these
components? Giving us more details about the use case would help us
identify a solution.

-----Original Message-----
From: Maillet, Ed [mailto:email...@unum.com]
Sent: Monday, August 31, 2009 8:53 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Preprocessor and Component Guids

Hey all,
  I hope I'm missing something obvious. Is there a way for the
preprocessor to generate a guid value for a variable? (without making my
own custom extension).

Something like <?define guid = $(Guid.NewGuid) ?>

I'm trying to create multiple conditional components like:

<?define environments=DEVELOPMENT;PRODUCTION;STRESS?>
 <?foreach env in $(var.environments)?>
        <!-- Environment specific Component -->
        <Component Id="MyWebSite_$(var.env)"
                   Guid="My_AUTO_GUID">
                <!-- Rest of the component details here -->
          <Condition>
            <![CDATA[%ENVIRONMENT = "$(var.env)"]]>
          </Condition>
        </Component>
 <?endforeach?>  

I can't use Guid="*" since I also don't have a KeyPath in components. (I
can make it work with KeyPath but how could I do it without?)


----- Ed



------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day trial. Simplify your report design, integration and deployment -
and focus on what you do best, core application coding. Discover what's
new with Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




------------------------------

------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day trial. Simplify your report design, integration and deployment -
and focus on what you do best, core application coding. Discover what's
new with Crystal Reports now.  http://p.sf.net/sfu/bobj-july

------------------------------

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


End of WiX-users Digest, Vol 39, Issue 118
******************************************

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to