Perfect thanks!

-----Original Message-----
From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com] 
Sent: Tuesday, January 10, 2012 1:57 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Conditionally Include based on Build Configuration

Supporting multiple MSI's with patches would seem more of a support issue to me 
than the initial installs. I'd use logic in a CA ala 
http://msdn.microsoft.com/en-us/library/aa383838%28VS.85%29.aspx
(http://stackoverflow.com/questions/4186153/api-for-determining-if-app-i
s-running-on-citrix-or-terminal-services/4188982#4188982) and disable the 
feature that contains the extra EXE and shortcut for Citrix and possibly 
Terminal Server. The user wouldn't have to choose anything and there would only 
be one MSI to give out.

That being said, you could define preprocessor variables to include or exclude 
the file and shortcut if you are hard set on having 2 separate MSI files. 
<?if $(var.CitrixInstall) = true ?>
        Your WiX code for the exe and shorcut.
<?endif ?>

Then, in your MSBuild file, define CitrixInstall for the configuration you want 
and pass the variable on to WiX. 

<PropertyGroup Condition=" ... ">
...
<CitrixInstall>true</CitrixInstall>
<DefineConstants>$(DefineConstants);CitrixInstall=$(CitrixInstall);</Def
ineConstants>
</PropertyGroup>


-----Original Message-----
From: Daniel Sniderman [mailto:dani...@magenic.com]
Sent: Tuesday, January 10, 2012 1:25 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Conditionally Include based on Build Configuration

No licensing issues - just support - we want the installs to be "Idiot Proof" - 
so we give the appropriate MSI to the appropriate user and need to ensure they 
do the proper type of install.

This is critical for the Laptop users - not so much for Citrix - as we can give 
detailed instructions...

-----Original Message-----
From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com]
Sent: Tuesday, January 10, 2012 1:10 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Conditionally Include based on Build Configuration

Is it a licensing concern with wanting two separate MSI packages? I'd handle 
this with a second feature for the laptop users, and then use a CA to detect 
Citrix/Terminal Services to enable/disable the feature.
(I'd also provide a public secure property to allow for command line enabling 
the feature in case the detection fails on some obscure install.

-----Original Message-----
From: Bourne, Kevin [mailto:kevin.bou...@chasepaymentech.com]
Sent: Tuesday, January 10, 2012 12:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Conditionally Include based on Build Configuration

If you could find a way to determine when the install is running on citrix or 
your laptop users (registry entry possibly) then you could use a condition to 
determine if you need to install the additional shortcut.

See if this helps.
http://wix.mindcapers.com/wiki/Shortcuts_in_WiX




-----Original Message-----
From: Daniel Sniderman [mailto:dani...@magenic.com]
Sent: Tuesday, January 10, 2012 1:41 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Conditionally Include based on Build Configuration

If by that you mean a command line property set when the user installs -
this is exactly what we want to AVOID.   We want this all controlled by
the particular MSI that a particular user executes.  We can't rely on them 
setting a command line...

-----Original Message-----
From: Ian Williams [mailto:iawil...@microsoft.com]
Sent: Tuesday, January 10, 2012 12:26 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Conditionally Include based on Build Configuration

I _think_ you can accomplish everything you want here by simply passing in a 
runtime property when msiexec is called, like "ConfigurationToBuild". Then you 
can use the value of that property to determine what to install, etc. I've had 
success with that approach personally.

-----Original Message-----
From: Daniel Sniderman [mailto:dani...@magenic.com]
Sent: Tuesday, January 10, 2012 10:21 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Conditionally Include based on Build Configuration

I'm working on automating our Build - and migrating from VS Setup to WIX.

We have a Windows Forms Application that has two different Configurations - One 
to Deploy to Citrix Servers and another for occasionally connected Laptop Users 
(plus several "environments"
dev/qa/prod etc)

For the two different configurations the differences are in differing config 
settings (which I've already figured out how to)

What I need help with - the Laptop MSI needs include an additional EXE and a 
few corresponding files - and add a shortcut to the additional EXE to the 
startup folder.

Ideally I'd like one WIX solution (and wxs file if possible) that based on the 
"Configuration to Build" setting (ideally both from a desktop
build and a TFS 2010 build) create the appropriate MSI.   (IE - I don't
want a single type of MSI that requires the user to select based on UI).

What is the best way to implement this?

Thanks!

Daniel P. Sniderman| Sr Consultant| Magenic MCSD.NET, MCTS: Team Foundation 
Server 2010 Administration

333 E. Butterfield Rd. Suite 100, Lombard, IL 60148
Mobile: 847-668-4882  | eFax 847-390-7810 magenic.com | 
dani...@magenic.com<mailto:dani...@magenic.com>


------------------------------------------------------------------------
------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create new or 
port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM 
program developer opportunity. appdeveloper.intel.com/join 
http://p.sf.net/sfu/intel-appdev _______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users






------------------------------------------------------------------------
------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create new or 
port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM 
program developer opportunity. appdeveloper.intel.com/join 
http://p.sf.net/sfu/intel-appdev _______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create

new or port existing apps to sell to consumers worldwide. Explore the Intel 
AppUpSM program developer opportunity. appdeveloper.intel.com/join 
http://p.sf.net/sfu/intel-appdev _______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
----------
Learn more about Chase Paymentech Solutions,LLC payment processing services at 
www.chasepaymentech.com.

THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are 
proprietary and confidential information intended only for the use of the 
recipient(s) named above.  If you are not the intended recipient, you may not 
print, distribute, or copy this message or any attachments.
If you have received this communication in error, please notify the sender by 
return e-mail and delete this message and any attachments from your computer.





------------------------------------------------------------------------
------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create

new or port existing apps to sell to consumers worldwide. Explore the Intel 
AppUpSM program developer opportunity. appdeveloper.intel.com/join 
http://p.sf.net/sfu/intel-appdev _______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create new or 
port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM 
program developer opportunity. appdeveloper.intel.com/join 
http://p.sf.net/sfu/intel-appdev _______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create

new or port existing apps to sell to consumers worldwide. Explore the Intel 
AppUpSM program developer opportunity. appdeveloper.intel.com/join 
http://p.sf.net/sfu/intel-appdev _______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create new or 
port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM 
program developer opportunity. appdeveloper.intel.com/join 
http://p.sf.net/sfu/intel-appdev _______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to