Re: [WiX-users] MSP patch creation with Wix

2009-07-08 Thread Yan Sklyarenko
Ilya,

>> How do you specify in the patch1.wxs the version of the base MSI

I'm not sure what you mean by this. When building a patch with torch
tool, you provide targetInput (wixpdb) and updatedInput (wixpdb), which
I think contain the necessary information about version of your old and
new MSI packages.

>> What do you need to do (version/product code/package code) if you
create
number of consecutive patches patch2, patch3, patch4 that essentially
update same few files monthly reflecting development process?

This sounds like the small updates fit most in your case. However, be
careful with this - there are enough reefs under this technique. I would
recommend first look into the base MSDN article:
http://msdn.microsoft.com/en-us/library/aa370579(VS.85).aspx. Study the
differences between Small updates, Minor upgrades and Major upgrades and
decide which approach fits most for your case. And always keep the
component rules in mind:
http://msdn.microsoft.com/en-us/library/aa372795(VS.85).aspx.
Afterwards, take a look at this article by Bob:
http://www.joyofsetup.com/2008/12/30/paying-for-upgrades/ and the
comments to it.

Good luck.

-- Yan

-Original Message-
From: Ilya Mayzel [mailto:imay...@mdsol.com] 
Sent: Wednesday, July 08, 2009 6:32 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] MSP patch creation with Wix

Yan,

This is great news for me! Can you please elaborate on the process you
follow? Different articles give different process recommendations.

How do you specify in the patch1.wxs the version of the base MSI
(product.wxs)

What do you need to do (version/product code/package code) if you create
number of consecutive patches patch2, patch3, patch4 that essentially
update same few files monthly reflecting development process?


Thanks,
 
Ilya Mayzel

-Original Message-
From: Yan Sklyarenko [mailto:y...@sitecore.net] 
Sent: Wednesday, July 08, 2009 2:34 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] MSP patch creation with Wix

>> Does anyone have an experience following those instructions?
Yes, this works perfectly well, both "old-fashioned" Windows SDK based
approach and the new "purely WiX" one.

>> Can you build a patch without creating a final v1.1 MSI, but just
using
v1.0 as a base?

Patch is a diff between two MSI packages, in any case. With the first
approach you need MSI files, both baseline and new. With the second
(recommended) one you work with wixpdb files and torch/pyro utils. I'm
using the later - it doesn't require other tools to be installed apart
from WiX toolset itself.

Good luck.

-- Yan

-Original Message-
From: Ilya Mayzel [mailto:imay...@mdsol.com] 
Sent: Wednesday, July 08, 2009 12:55 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] MSP patch creation with Wix

Does anyone have an experience following those instructions?
Can you build a patch without creating a final v1.1 MSI, but just using
v1.0 as a base?


Thanks,
 
Ilya Mayzel

-Original Message-
From: Brian Rogers [mailto:rogers.br...@gmail.com] 
Sent: Tuesday, July 07, 2009 5:19 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] MSP patch creation with Wix

There is a sample in the CHM.

Brian Rogers
"Intelligence removes complexity." - Me
http://blogs.msdn.com/icumove <-- NEW


On Tue, Jul 7, 2009 at 1:44 PM, Ilya Mayzel  wrote:

> Hello,
>
>
>
> Does anyone know how can I create MSP with Wix based on my MSI/Wix
> package?
>
>
>
> First I created template.wxs schema file and compiled it into MSI
using
> candle and light.
>
> Now I have a new binary file I need to replace at the target location.
>
>
>
> What is a step by step process to create MSP?
>
> Can I use the same .wxs file with just modifications in a binary
> section?
>
> What product/package codes and GUIDS modifications should I make to
this
> file to turn it into PCP/MSP
>
>
>
> I read on the web that this is a sequence:
>
> candle patch.wxs
> light patch.wixobj -out patch.pcp
> msimsp -s patch.pcp -p patch.msp -l msimsp.log
>
>
>
> But what should be a different in the patch.wxs vs normal MSI .wxs ?
>
>
>
> Thanks,
>
>
>
> Ilya Mayzel
>
>
>
>
>
>
>
>
>

--
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited
time,
> vendors submitting new applications to BlackBerry App World(TM) will
have
> the opportunity to enter the BlackBerry Developer Challenge. See full
prize
> details at: http://p.sf.net/sfu/blackberry
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in priz

[WiX-users] Set required Free Disk space

2009-07-08 Thread Hukumchand Shah
Hi All,

I want set a limit for 10 GB of free disk space before installing my
application which I developed in WIX.
How can I achieve that in WIX? I can't use C or C++ code.

Thanks,
Hukum
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Versioning interop assemblies for patching

2009-07-08 Thread Heath Stewart
tlbimp.exe does allow you to set the assembly version using the /asmversion
option which also sets the file version. Note that it's the file version
that matters, though - not the assembly or product version. During link, you
won't need to pass -fv to light.exe since the assembly version changes. Ship
a publisher policy assembly in the GAC to automatically update bindings to
the new version as documented in the .NET Framework SDK at
http://msdn.microsoft.com/en-us/library/dz32563a.aspx.

On Thu, Jun 25, 2009 at 4:54 PM, Tony Juricic wrote:

> In this particular case I am not interested in setting Company Name and
> version number for my interop assemblies (that is, files generated using
> tlbimp) just so that the name is not an empty string and that the version is
> not 1.0.0.0.
>
> In order to have un-installable patches I need assembly file version
> numbers to change whenever the code changes.
>
> How are other developers handling this problem? Are you just praying that
> you never have to patch interop assembly or have you settled for solution as
> explained here:
>
> http://blogs.msdn.com/ianhu/archive/2005/06/16/429903.aspx
>
> I there any better, newer solution?
>
> As a matter of fact, I could not get the solution described at the blog
> link above to work because ilasm.exe from MS SDKs just won't run without
> fusion.dll. I have a bunch of fusion dlls installed in SxS (a new Hell after
> DLL Hell) but, really, does anybody in this century even run ilasm.exe
> anymore? If you do, please help!
>
> TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS:
> TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member
> NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading
> software and subscription company, and TradeStation Europe Limited, a United
> Kingdom, FSA-authorized introducing brokerage firm. None of these companies
> provides trading or investment advice, recommendations or endorsements of
> any kind. The information transmitted is intended only for the person or
> entity to which it is addressed and may contain confidential and/or
> privileged material. Any review, retransmission, dissemination or other use
> of, or taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material from any
> computer.
>
>
> --
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Heath Stewart
Deployment Technologies Team, Microsoft
http://blogs.msdn.com/heaths
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Uncompressed package and error finding files

2009-07-08 Thread Heath Stewart
Uncompresed, non-embedded source files are not supported for Windows
Installer patches.

On Thu, Jul 2, 2009 at 11:33 AM, Chris Bardon wrote:

> I've been experimenting with creating msp files for all updates, and I've
> run into a strange problem.  I read about having to create uncompressed cabs
> for a patch, so I created two different installers that upgrade a single
> text file, and actually managed to create the msp file, but then I noticed
> something strange with the original installer.  When I run this setup now,
> it complains that it's unable to find "readme.txt" in the path that I run
> the installer from.  If I change the Compressed attribute on the Package
> node to "yes" the installer works.  Is there something else that I need to
> do to get the installer to work in the first place?  Here's the markup for
> the original installer (it's pretty basic):
>
> 
> http://schemas.microsoft.com/wix/2006/wi";>
> Version="1.0.0.0" Manufacturer="ComputerTalk"
> UpgradeCode="edb51369-d386-46c8-96ee-8244a40d18d3">
> Manufacturer="ComputerTalk" Comments="Some product" Compressed="no" />
>
>
>
>
>  
>
>Guid="b3bf3e0b-d116-49cd-8d24-b7c76a7c3b28">
>  Source="..\$bin\readme.txt"/>
>   
>
>  
>
>
>
>   
>
>  
> 
>
> The install log from my test machine looks like this when I run the msi
> from c:\insttemp:
>
> Error 1309. Error reading from file: C:\insttemp\PatchTest\readme.txt.
>  System error 3.  Verify that the file exists and that you can access it.
>
> This is building with Votive under VS 2008, and using version 3.5.0619.0 of
> the toolkit.  Any idea what's going on?  The \PatchTest directory doesn't
> exist under c:\insttemp, but the files should be embedded in the msi,
> correct?
>
> Thanks for the help,
>
> Chris
>
> --
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Heath Stewart
Deployment Technologies Team, Microsoft
http://blogs.msdn.com/heaths
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Creating multi-instance installations using WiX

2009-07-08 Thread Heath Stewart
Instancing is a feature of MSI covered in the Windows Installer SDK. WiX v3
does add fairly simple support to build embedded instance transforms for
known instances. See the documentation for the InstanceTransforms element.
This and child Instance elements allow you to define unique property values
as well.

Patching these instances means building patches against each instanced
ProductCode. Or you can also produce a patch where the Validation element
does not target the ProductCode (by default it does).

On Fri, Jul 3, 2009 at 9:05 AM, Carl Caulkett
wrote:

> Hello,
>
>
>
> Does anyone know of a way to create an installation using WiX where the
> user can specify a particular instance for the installation and for this
> to be controlled at the WiX level rather than delving down into the
> murky depths of MSI?
>
>
>
> In other words supposing we have an installer which installs application
> "A", can the user run the installer and specify that she wants to
> install instance "A1" in a particular folder, and then later come along
> and run the installer again, this time specifying the installation of
> instance "A2" in a different folder, with the result that there are two
> separate installations of the "A" application, one instance called "A1",
> the other called "A2", and, crucially,  separate entries in the
> Add/Remove Programs list.
>
>
>
> We have a solution at the moment but it is a hybrid approach with a
> Delphi written front end which gathers the installation details and then
> passes them as parameters to a WiX written MSI and uses MSI Transforms
> to achieve the multiple instances! It works quite well, but we would
> like a purely WiX solution going forward.
>
>
>
> Thanks in advance,
>
> Carl
>
>
>
> Carl Caulkett - Developer, Inspired Signage Group
>
> AMX   - 6th Floor, Salisbury House, London Wall,
> London, EC2M 5QQ
>
> Main Office +44 (0) 1904 343 100
>
> carl.caulk...@amxeurope.com 
>
> P   Please consider the environment before deciding to print this email
>
>
>
>
> AMX
>
> AMX UK
> Auster Road
> Clifton Moor
> York, North Yorkshire
> United Kingdom
> YO30 4GD
>
> +44 (0) 1904 343100 office
> +44 (0) 1904 343101 fax
>
> AMX South
> 6th Floor Salisbury House
> London Wall
> London
> United Kingdom
> EC2M 5QQ
>
> +44 (0) 2076 529450 office
> +44 (0) 8701 991661 fax
>
> AMX Belgium
> Boerenkrijglaan, 96a
> B-2260
> Westerlo
> Belgium
>
>
> + 32 (0) 1454 2763  office
> + 32 (0) 1454 2766  fax
>
> ##
> Attention:
> This e-mail message is privileged and confidential. If you are not the
> intended recipient please delete the message and notify the sender.
> Any views or opinions presented are solely those of the author.
>
> This email was scanned and cleared by NetIQ MailMarshal.
> ##
>
> --
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Heath Stewart
Deployment Technologies Team, Microsoft
http://blogs.msdn.com/heaths
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] WiX contractors?

2009-07-08 Thread Josh Santangelo
Hi all -- I'm looking for someone to help us out with building a WiX
installer that we can use for multiple applications at my company. I've
already figured out enough WiX to copy files into the right place, and
that's working, but we need to go a little further. It's all spec'd out and
there's nothing too crazy involved (show a EULA, allow the user to opt-in to
things, uninstall previous copies of the product automatically, etc). I'm
hoping it's a weekend of work for someone who knows what they're doing.
I'd like to get this done by the end of the month. If this is something you
think you could help out with, please reply off-list. Thanks!

-- 
s t i m u l a n t  /  Josh Santangelo, Technical Lead
P 206 229 5674 / O 415 255 7081 / F 815 550 1203 / W http://stimulant.io
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to register file type with wix 3 RTM?

2009-07-08 Thread Ryan Dai

Hi Bob,
 
Thanks for your answer.
After I remove the Sequence attribute, I still get errors.
 







 
error LGHT0094 : Unresolved reference to symbol 'File:FileId'
 
Wixcop changed my original Target = "[!FileId]" to TargetFile="FileId". So in 
wix 2, it works if we specify:
 







 
I think our orginal intention is just to register a file type for an editor of 
our Visual Studio package. So it seems like there is no something about "the 
target file to be executed for the verb".
 
> Date: Wed, 8 Jul 2009 07:51:20 -0400
> From: b...@joyofsetup.com
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] How to register file type with wix 3 RTM?
> 
> Ryan Dai wrote:
> > error CNDL0035 : The Verb/@Sequence attribute cannot 
> > be specified when attribute Advertise is present with value 'no'.
> > 
> 
> If you have only a single Verb element, just omit the Sequence 
> attribute. WiX v2 accepted the Sequence attribute when Advertised="no" 
> but did nothing with it; WiX v3 is more strict and doesn't just throw 
> away what you give it.
> 
> -- 
> sig://boB
> http://joyofsetup.com/
> 
> 
> 
> --
> Enter the BlackBerry Developer Challenge 
> This is your chance to win up to $100,000 in prizes! For a limited time, 
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize 
> details at: http://p.sf.net/sfu/Challenge
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

_
Windows Live™: Keep your life in sync. Check it out!
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] WiX-users Digest, Vol 38, Issue 35

2009-07-08 Thread Rob MacFadyen
Jason,

Thanks a ton! I'll dig into this again and see if I can make it work
(fingers crossed).

Regards,

Rob


-Original Message-

Date: Wed, 8 Jul 2009 14:38:38 -0700
From: Jason Ginchereau 
Subject: Re: [WiX-users] DTF and PDB files for better error logging
To: "wix-users@lists.sourceforge.net"

Message-ID:

<139942f2536b7c4fbde6b44132f80c842c4cd76...@na-exmsg-c111.redmond.corp.micro
soft.com>

Content-Type: text/plain; charset="us-ascii"

Just tried again and it does work -- I got line numbers in the stack trace
in the log.

Note if you're referencing $(IntermediateOutputPath) like in my example
below, you need to define the CustomActionContents property at the BOTTOM of
your project file, because $(IntermediateOutputPath) isn't created until
Microsoft.Common.targets is included.

At runtime the entire CA package is always extracted. At build time you
should be able to see the PDB getting included in the CA package in the
MSBuild output/log, it looks like this:

Modifying SfxCA.dll stub
Copying file version info from
C:\temp\CATest\CustomAction1\obj\x86\Debug\Microsoft.Deployment.Samples.Mana
gedCA.dll to
C:\temp\CATest\CustomAction1\obj\x86\Debug\Microsoft.Deployment.Samples.Mana
gedCA.CA.dll
Packaging files
Microsoft.Deployment.Samples.ManagedCA.dll
Microsoft.Deployment.WindowsInstaller.dll
CustomAction.config
Microsoft.Deployment.Samples.ManagedCA.pdb
MakeSfxCA finished:
C:\temp\CATest\CustomAction1\obj\x86\Debug\Microsoft.Deployment.Samples.Mana
gedCA.CA.dll





--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] FW: Web Service

2009-07-08 Thread Rob Mensching
What do you mean "grant permissions for specific port"?  Firewall exception?

Thomas Svare wrote:
> Hello,
>
> Sorry for the spam on this issue.  I've got a beta deadline coming up so
> I'll probably go with InstallUtil and use the intaller class in the exe
> but if anyone has any ideas on this I would very much like to hear them.
>
> Thanks,
> Tom
>
> -Original Message-
> From: Thomas Svare [mailto:thomas_sv...@symantec.com]
> Sent: Monday, July 06, 2009 12:32 PM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Web Service
>
> Hello,
>
>
>
> I've got to install a web service running as NT AUTHORITY\LocalService.
> I'm able to do this but I also have to grant permissions for
> LocalService on a specific port.  Is there a way to do this through WiX?
>
>
>
>
> I've searched the archives and did not come up with anything but I'm
> probably not using a good search query.
>
>
>
> Thanks,
>
> Tom
>
> 
> --
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> --
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/blackberry
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Shortcuts in Votive

2009-07-08 Thread Rob Mensching
What is "the InstallAllUsers flag"? Do you mean ALLUSERS=1?

Wright, Lance wrote:
> I am trying to install shortcuts to files in my Setup project to the All 
> Users desktop.  I have the InstallAllUsers flag set to True and the shortcuts 
> are in the 'User's Desktop' special folder.  If an administrator installs the 
> product, the shortcuts appear on the All User's desktop.  If a user with 
> elevated privileges installs the product the shortcuts appear on that user's 
> desktop.  My previous install builder has a lot of bugs, but it got this part 
> right.
>
> Is this a bug in Votive or am I doing something wrong?
>
> Thanks for any help,
>
> Lance Wright
> Senior Software Engineer
> SPARTA National Security Sector
> Cobham Analytic Solutions
> T: 256 428-2484
> F: 256 890 2041
> lance.wri...@cobham.com
>
> SPARTA, Inc., dba Cobham Analytic Solutions, 401 Diamond Dr. NW, Huntsville, 
> AL 35806 www.sparta.com
>
> Please consider the environment before printing this email
>
> This e-mail and any files transmitted with it ("E-mail") is intended solely 
> for the addressee(s) and may contain confidential and/or legally privileged 
> information. If you are not the addressee(s), any disclosure, reproduction, 
> copying, distribution or other use of the E-mail is prohibited. If you have 
> received this E-mail in error, please delete it and notify the sender 
> immediately via our switchboard or return e-mail.
>
> Neither the company nor any subsidiary or affiliate or associated company nor 
> any individual sending this E-mail accepts any liability in respect of the 
> content (including errors and omissions) nor shall this e-mail be deemed to 
> enter the company or any subsidiary or affiliate or associated company into a 
> contract or to create any legally binding obligations unless expressly agreed 
> to in writing under separate cover and timeliness of the E-mail which arise 
> as a result of transmission. If verification is required, please request a 
> hard copy version from the sender.
>
> --
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/blackberry
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] WiX documentation links broken

2009-07-08 Thread Rob Mensching
Yes, known issue. Should be fixed with the next build.

Brian Kretzler wrote:
> Has anyone else noticed that the "Manual (WiX 3.0)" links on the right hand 
> side of wix.sourceforge.net are broken?  The 2.0 links are not much better, 
> but show something.  Under the 2.0 links, clicking on "Schema" takes me to an 
> empty page.
>
> ---
> This email message is for the sole use of the intended recipient(s) and may 
> contain
> confidential information.  Any unauthorized review, use, disclosure or 
> distribution
> is prohibited.  If you are not the intended recipient, please contact the 
> sender by
> reply email and destroy all copies of the original message.
> ---
> --
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Pressing yes to cancel button won't cause rollback

2009-07-08 Thread Rob Mensching
Many MSI calls can return the user cancel message, not just 
::MsiProcessMessage(). It is possible some other call ate the return 
value. The WcaUtil functions handle this sort of thing for you.

DONG LEE wrote:
> Hi all,
>
> I am trying to detect whether a user cancels within a custom action by doing
>
> the following
>
> UINT __stdcall CA()
> {
> int retVal = 0;
> PMSIHANDLE hRecord = MsiCreateRecord(1);
> ...
>  SomeLongOperation(); // trigger cancellation while this function is
> running
>
> MsiRecordSetString(hRecord, 0, L"[1]");
> MsiRecordSetString(hRecord, 1, L"Some Message");
> retVal = MsiProcessMessage(hInstall, INSTALLMESSAGE_INFO, hRecord);
> if(retVal == IDCANCEL)
> {
> MsiLogWrapper(L"User cancellation is detected!");
> return ERROR_USER_EXIT;
> }
> else
> {
> MsiLogWrapper(L"MsiProcessMessage() returned %d", retVal);
> }
> ...
> }
>
> The problem is that the value returned by MsiProcessMessage() is always 0.
> And I've confirmed that the installation was cancelled during the
> SomeLongOperation() was running,and the string L"Some Message" is properly
> logged. What is wrong in this
> case? am I missing anything? The CA is scheduled to be a deferred and
> no-impersonate action.
> I wanted to detect it so that I could return ERROR_USER_EXIT from the CA.
> --
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/blackberry
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Conditions issue

2009-07-08 Thread Rob Mensching
Does a verbose log file show the Property getting set?

Patrick Sullivan wrote:
> Moderate time user, first time question asker.
>
>
>
> I'm having issues where my protection condition around a component that
> includes an inifile is not working correctly, yet when I include the value
> of the tested variable it appears like it should be
>
>
>
> Sample
>
>
>
> 
>
>
>
> 
>
>Path='[OSINSTALLDIR]Static\Path\' Depth='0'>
>
> 
>
>   
>
> 
>
>
>
> And later
>
>
>
>Guid='1fdcfd16-db4c-4de3-b06e-12f6d2f4c270' SharedDllRefCount='yes'>
>
>  Action='addLine' Key='Connect0' Directory='ConfigLocation' Name='Config.ini'
> Section='Robotic Connections' Value='Provider=SQLOLEDB.1;Integrated Security
> = SSPI;Initial Catalog=[DATABASENAME];Data Source=[DATABASESERVER];'/>
>
>  Key='Environment' Directory=' ConfigLocation' Name='Config.ini'
> Section='Main' Value='0'/>
>
>  Action='addLine' Key='Connect0' Directory=' ConfigLocation'
> Name='Config.ini' Section='Main' Value='Provider=SQLOLEDB.1;Integrated
> Security = SSPI;Initial Catalog=[DATABASENAME];Data
> Source=[DATABASESERVER];'/>
>
>  Key='License File'  Directory=' ConfigLocation'
> Value='[RedCap05]oscaere.lic' Name='Config.ini' Section='Caere License' />
>
>  Key='templine' Directory=' ConfigLocation' Value='[OSINSTALLDIR]Static\Path'
> Name='Config.ini' Section='temp'/>
>
>  Directory=' ConfigLocation' Value='[CONFIGINIEXISTS]' Name='Config.ini'
> Section='temp'/>
>
> 
>
>   
>
>   
>
>
>
> I've tried with and without the CDATA wrapping CONFIGINIEXISTS and it isn't
> wanting to work either way.  And the output line I'm writing to configini
> (when I've already got the file there) is filled in with the path and file
> name.  I've researched but this looks like it should work.  I figure I'm
> doing something simple and dumb.
>
>
>
> I've tried pre-setting OSINSTALLDIR inside the installer AND in my batch
> file I'm calling the MSI from via the command line.
>
>
>
> Any info I'm missing that will help just point out and I'll supply it.
>
>
>
> Thanks
>
>
>
> ~Patrick Sullivan
>
> --
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Wix v2 to v3

2009-07-08 Thread Raj, Vijay
Rob men, had posted some tips how to migrate from wix v2 to wix v3: 
http://bit.ly/l5fGK

Cheers'
Vijay Raj |   ESD - IT Services, TI-India.
Weblog | RSS Feed 
| Twitter


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] DTF and PDB files for better error logging

2009-07-08 Thread Jason Ginchereau
Just tried again and it does work -- I got line numbers in the stack trace in 
the log.

Note if you're referencing $(IntermediateOutputPath) like in my example below, 
you need to define the CustomActionContents property at the BOTTOM of your 
project file, because $(IntermediateOutputPath) isn't created until 
Microsoft.Common.targets is included.

At runtime the entire CA package is always extracted. At build time you should 
be able to see the PDB getting included in the CA package in the MSBuild 
output/log, it looks like this:

Modifying SfxCA.dll stub
Copying file version info from 
C:\temp\CATest\CustomAction1\obj\x86\Debug\Microsoft.Deployment.Samples.ManagedCA.dll
 to 
C:\temp\CATest\CustomAction1\obj\x86\Debug\Microsoft.Deployment.Samples.ManagedCA.CA.dll
Packaging files
Microsoft.Deployment.Samples.ManagedCA.dll
Microsoft.Deployment.WindowsInstaller.dll
CustomAction.config
Microsoft.Deployment.Samples.ManagedCA.pdb
MakeSfxCA finished: 
C:\temp\CATest\CustomAction1\obj\x86\Debug\Microsoft.Deployment.Samples.ManagedCA.CA.dll


-Original Message-
From: Rob MacFadyen [mailto:rmacfad...@rmtrack.com] 
Sent: Wednesday, July 08, 2009 1:49 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] DTF and PDB files for better error logging

Jason,

I did this at one point but it was ineffective. On the installation side it
appeared that the .PDB was not being extracted to the temporary directory.

Are you certain this actually works and results in line numbers showing in
stack traces for unhandled exceptions in managed CA's?

Thanks,

Rob

-Original Message-

Date: Wed, 8 Jul 2009 12:32:07 -0700
From: Jason Ginchereau 
Subject: Re: [WiX-users] DTF and PDB files for better error logging
To: "wix-users@lists.sourceforge.net"

Message-ID:

<139942f2536b7c4fbde6b44132f80c842c4cd76...@na-exmsg-c111.redmond.corp.micro
soft.com>

Content-Type: text/plain; charset="us-ascii"

You can add additional items to the CA package by manually adding a
CustomActionContents property to your project file. For example, to include
your assembly PDB when building in debug mode:


$(IntermediateOutputPath)$(AssemblyName).pdb




--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] DTF and PDB files for better error logging

2009-07-08 Thread Rob MacFadyen
Jason,

I did this at one point but it was ineffective. On the installation side it
appeared that the .PDB was not being extracted to the temporary directory.

Are you certain this actually works and results in line numbers showing in
stack traces for unhandled exceptions in managed CA's?

Thanks,

Rob

-Original Message-

Date: Wed, 8 Jul 2009 12:32:07 -0700
From: Jason Ginchereau 
Subject: Re: [WiX-users] DTF and PDB files for better error logging
To: "wix-users@lists.sourceforge.net"

Message-ID:

<139942f2536b7c4fbde6b44132f80c842c4cd76...@na-exmsg-c111.redmond.corp.micro
soft.com>

Content-Type: text/plain; charset="us-ascii"

You can add additional items to the CA package by manually adding a
CustomActionContents property to your project file. For example, to include
your assembly PDB when building in debug mode:


 
$(IntermediateOutputPath)$(AssemblyName).pdb






--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to dynamically get current locale that my msi is built in?

2009-07-08 Thread Lian Jiang
Thanks Blair. I am using the similar technique as you described.

-Original Message-
From: Blair [mailto:os...@live.com]
Sent: Wednesday, July 08, 2009 11:03 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] How to dynamically get current locale that my msi is 
built in?

I tested something like this and it seemed to work:

Add a value (en-us) in your .wxl files and set
the value to the appropriate value (es-es) in your translated .wxl file.
Then do something like this:


  
...

  


You will need to also use a !(loc.LCID) or similar string to set the
Product/@Language value from your wxl files as well.

Note that I usually never use the Windows Installer UI (and the WixUI, by
extension), so I don't know if those values are already supplied for you.

-Original Message-
From: Lian Jiang [mailto:lji...@microsoft.com]
Sent: Sunday, July 05, 2009 8:45 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to dynamically get current locale that my msi
is built in?

Thanks for any suggestion.


-Original Message-
From: Lian Jiang
Sent: Friday, July 03, 2009 7:50 AM
To: General discussion for Windows Installer XML toolset.
Cc: Lian Jiang
Subject: How to dynamically get current locale that my msi is built in?

Hi,

I have a wixproj which specifies "en-us;es-es". As you
know, compiling this wixproj will create two MSIs located in en-us folder
and es-es folder respectively.

My installer installs a UI product and need to place the corresponding
resource file to the installation folder. For example, the en-us version MSI
should put the en-us resource of the UI product to the installation folder.

Right now, I am hard code the locale names and put all locales' resources to
the installation folder like:

   

  

  
   

  

  

This is obvious a bad solution since it packs all locales resources for any
locale's MSI. I would like pack only the corresponding locale resource for
one MSI. But how can I dynamically get the current locale that the MSI is
built? Is there any global variable exposing locale information?

Appreciate your help!


Thanks
Lian





--
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize

details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] DTF and PDB files for better error logging

2009-07-08 Thread Jason Ginchereau
You can add additional items to the CA package by manually adding a 
CustomActionContents property to your project file. For example, to include 
your assembly PDB when building in debug mode:


  
$(IntermediateOutputPath)$(AssemblyName).pdb



-Original Message-
From: Rob MacFadyen [mailto:rmacfad...@rmtrack.com] 
Sent: Wednesday, July 08, 2009 11:22 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] DTF and PDB files for better error logging

Hey all,

I've been doing a few C# based custom actions and find the DTF "stuff" very
easy to use and it works quite well. 

However I'm wondering if there is anyway to include my custom action DLL's
PDB file with the actual CA? If the .PDB was extracted and copied to the
same location as the .DLL then if the .DLL throws an unhandled exception the
stack trace would include an exact line number reference.

I find that having an exact line number reference to be exceptionally useful
when diagnosing problems. Especially null object errors that can creep in at
unexpected places. Have an exact line number reduces the possible places a
single function could be failing because of a null reference error.

Having this would avoid needed to add logging after each and every line
(which is overkill and brute force... but if I need to know exactly where a
function is crapping out there's not much choice).

For example here is a custom action that installs a list of assemblies and
their associated PDB's into the GAC:

/// 
/// Install a list of files into the GAC.
/// 
/// 
/// ActionResult.Success if the files where installed successfull. 
/// Otherwise the action has thrown an unexpected exception.
[CustomAction]
public static ActionResult InstallFilesToGac(Session session)
{
//
// Show a nice status message
//
session.Message(InstallMessage.ActionStart, new Record(new object[] {
"Installing assemblies in the Global Assembly Cache" }));
session.Log("Installing assemblies in the Global Assembly Cache");

//
// Build a reference using specific values
//  - The reference is used by the GAC for reference count purposes.
Each
//installer that installs a given assembly should provide its own 
//reference. When all references have been removed from the GAC
//then the assembly will actually be removed from the GAC.
//
string ReferenceGuid = "{USE_YOUR_OWN_GUID}";
string ReferenceDescription = "Your Installer";
InstallReference Reference = new
InstallReference(InstallReferenceGuid.OpaqueGuid, ReferenceGuid,
ReferenceDescription);

//
// Process each file
//
session.Log("Number of files to install: {0}",
session.CustomActionData.Values.Count);
foreach (string Filename in session.CustomActionData.Values)
{
//
// Ought not happen but rather safe than sorry
//
if (!string.IsNullOrEmpty(Filename))
{
//
// Add the assembly to the GAC
//
session.Log("Install in the GAC: {0}", Filename);
AssemblyCache.InstallAssembly(Filename, Reference,
AssemblyCommitFlags.Default);

//
// If a PDB exists then copy it to the GAC as well
//
string PdbFilename = Path.ChangeExtension(Filename, "pdb");
if (!File.Exists(PdbFilename))
{
session.Log("No PDB was found: {0}", PdbFilename);
}
else
{
session.Log("PDB found: {0}", PdbFilename);
string StrongName = GetStrongTypeName(Filename);
session.Log("Assembly strong name: {0}", StrongName);
string GacFileLocation =
AssemblyCache.QueryAssemblyInfo(StrongName);
session.Log("GAC location: {0}", GacFileLocation);
string GacPDbFileLocation =
Path.ChangeExtension(GacFileLocation, "pdb");
session.Log("PDB GAC location will be: {0}",
GacPDbFileLocation);
File.Copy(PdbFilename, GacPDbFileLocation);
session.Log("PDB copied to GAC");
}
}
}

//
// Success
//
session.Log("All assemblies installed in the GAC");
session.Log("Returning ActionResult.Success");
return ActionResult.Success;
}


When I was first putting this together I was having trouble getting
parameters passed in and a couple of other problems... but debugging was
challenging. I couldn't get the actual debugger to work... and even if I had
I would still prefer to have the DTF runtime be able log the exact error
location.

So... any ideas on how to get a .PDB for a DTF custom action to be "carted
around" with the actual dll?

Regards,

Rob





--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM

[WiX-users] DTF and PDB files for better error logging

2009-07-08 Thread Rob MacFadyen
Hey all,

I've been doing a few C# based custom actions and find the DTF "stuff" very
easy to use and it works quite well. 

However I'm wondering if there is anyway to include my custom action DLL's
PDB file with the actual CA? If the .PDB was extracted and copied to the
same location as the .DLL then if the .DLL throws an unhandled exception the
stack trace would include an exact line number reference.

I find that having an exact line number reference to be exceptionally useful
when diagnosing problems. Especially null object errors that can creep in at
unexpected places. Have an exact line number reduces the possible places a
single function could be failing because of a null reference error.

Having this would avoid needed to add logging after each and every line
(which is overkill and brute force... but if I need to know exactly where a
function is crapping out there's not much choice).

For example here is a custom action that installs a list of assemblies and
their associated PDB's into the GAC:

/// 
/// Install a list of files into the GAC.
/// 
/// 
/// ActionResult.Success if the files where installed successfull. 
/// Otherwise the action has thrown an unexpected exception.
[CustomAction]
public static ActionResult InstallFilesToGac(Session session)
{
//
// Show a nice status message
//
session.Message(InstallMessage.ActionStart, new Record(new object[] {
"Installing assemblies in the Global Assembly Cache" }));
session.Log("Installing assemblies in the Global Assembly Cache");

//
// Build a reference using specific values
//  - The reference is used by the GAC for reference count purposes.
Each
//installer that installs a given assembly should provide its own 
//reference. When all references have been removed from the GAC
//then the assembly will actually be removed from the GAC.
//
string ReferenceGuid = "{USE_YOUR_OWN_GUID}";
string ReferenceDescription = "Your Installer";
InstallReference Reference = new
InstallReference(InstallReferenceGuid.OpaqueGuid, ReferenceGuid,
ReferenceDescription);

//
// Process each file
//
session.Log("Number of files to install: {0}",
session.CustomActionData.Values.Count);
foreach (string Filename in session.CustomActionData.Values)
{
//
// Ought not happen but rather safe than sorry
//
if (!string.IsNullOrEmpty(Filename))
{
//
// Add the assembly to the GAC
//
session.Log("Install in the GAC: {0}", Filename);
AssemblyCache.InstallAssembly(Filename, Reference,
AssemblyCommitFlags.Default);

//
// If a PDB exists then copy it to the GAC as well
//
string PdbFilename = Path.ChangeExtension(Filename, "pdb");
if (!File.Exists(PdbFilename))
{
session.Log("No PDB was found: {0}", PdbFilename);
}
else
{
session.Log("PDB found: {0}", PdbFilename);
string StrongName = GetStrongTypeName(Filename);
session.Log("Assembly strong name: {0}", StrongName);
string GacFileLocation =
AssemblyCache.QueryAssemblyInfo(StrongName);
session.Log("GAC location: {0}", GacFileLocation);
string GacPDbFileLocation =
Path.ChangeExtension(GacFileLocation, "pdb");
session.Log("PDB GAC location will be: {0}",
GacPDbFileLocation);
File.Copy(PdbFilename, GacPDbFileLocation);
session.Log("PDB copied to GAC");
}
}
}

//
// Success
//
session.Log("All assemblies installed in the GAC");
session.Log("Returning ActionResult.Success");
return ActionResult.Success;
}


When I was first putting this together I was having trouble getting
parameters passed in and a couple of other problems... but debugging was
challenging. I couldn't get the actual debugger to work... and even if I had
I would still prefer to have the DTF runtime be able log the exact error
location.

So... any ideas on how to get a .PDB for a DTF custom action to be "carted
around" with the actual dll?

Regards,

Rob





--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to dynamically get current locale that my msi is built in?

2009-07-08 Thread Blair
I tested something like this and it seemed to work:

Add a value (en-us) in your .wxl files and set
the value to the appropriate value (es-es) in your translated .wxl file.
Then do something like this:


  
...

  


You will need to also use a !(loc.LCID) or similar string to set the
Product/@Language value from your wxl files as well.

Note that I usually never use the Windows Installer UI (and the WixUI, by
extension), so I don't know if those values are already supplied for you.

-Original Message-
From: Lian Jiang [mailto:lji...@microsoft.com] 
Sent: Sunday, July 05, 2009 8:45 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to dynamically get current locale that my msi
is built in?

Thanks for any suggestion.


-Original Message-
From: Lian Jiang
Sent: Friday, July 03, 2009 7:50 AM
To: General discussion for Windows Installer XML toolset.
Cc: Lian Jiang
Subject: How to dynamically get current locale that my msi is built in?

Hi,

I have a wixproj which specifies "en-us;es-es". As you
know, compiling this wixproj will create two MSIs located in en-us folder
and es-es folder respectively.

My installer installs a UI product and need to place the corresponding
resource file to the installation folder. For example, the en-us version MSI
should put the en-us resource of the UI product to the installation folder.

Right now, I am hard code the locale names and put all locales' resources to
the installation folder like:

   

  

  
   

  

  

This is obvious a bad solution since it packs all locales resources for any
locale's MSI. I would like pack only the corresponding locale resource for
one MSI. But how can I dynamically get the current locale that the MSI is
built? Is there any global variable exposing locale information?

Appreciate your help!


Thanks
Lian





--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize

details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] WiX 3.5.0626 missing VS2010 Project Types?

2009-07-08 Thread John H. Bergman (XPedient Technologies)
Finally got back to this.

I did not get the errors with Wix3.0.  When I moved to 3.5 so that I had VS2010 
support, I had to recreate the projects.  The MergeModule Projects compile 
fine, it is only the actual setup project that gives the error when it 
references to MergeModules.

Each MergeModule needed/used is added as a reference to the setup project.  I 
get the same error regardless of whether I run from inside VS2010 or from 
MSBuild.

Today, I got the latest build that has Votive2010 back in, (3.5.0704.0); the 
behavior has not changed.

I had previously included the VS2010 output; here is the MSBuild output 
(including the commandline used to start the build of the install).

Thanks,
John

=-=-=- MSBUILD OUTPUT BELOW -=-=-=



C:\XP2010\XPertJustice\Working\XPedient>msbuild install.app.server.xpertjustice\
install.app.server.xpertjustice.wixproj /p:Configuration=Debug
Microsoft (R) Build Engine Version 4.0.20506.1
[Microsoft .NET Framework, Version 4.0.20506.1]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 7/8/2009 12:50:58 PM.
Project "C:\XP2010\XPertJustice\Working\XPedient\install.app.server.xpertjustic
e\install.app.server.xpertjustice.wixproj" on node 1 (default targets).
Project "C:\XP2010\XPertJustice\Working\XPedient\install.app.server.xpertjustic
e\install.app.server.xpertjustice.wixproj" (1) is building "C:\XP2010\XPertJust
ice\Working\XPedient\Install.MM.Management.Client\Install.MM.Management.Client.
wixproj" (3) on node 1 (GetTargetPath;GetResolvedReferencePaths target(s)).
C:\XP2010\XPertJustice\Working\XPedient\Install.MM.Management.Client\Install.MM
.Management.Client.wixproj : error MSB4057: The target "GetResolvedReferencePat
hs" does not exist in the project.
Done Building Project "C:\XP2010\XPertJustice\Working\XPedient\Install.MM.Manag
ement.Client\Install.MM.Management.Client.wixproj" (GetTargetPath;GetResolvedRe
ferencePaths target(s)) -- FAILED.

Project "C:\XP2010\XPertJustice\Working\XPedient\install.app.server.xpertjustic
e\install.app.server.xpertjustice.wixproj" (1) is building "C:\XP2010\XPertJust
ice\Working\XPedient\Install.MM.Management.Plugins.Client\Install.MM.Management
.Plugins.Client.wixproj" (4) on node 1 (GetTargetPath;GetResolvedReferencePaths
 target(s)).
C:\XP2010\XPertJustice\Working\XPedient\Install.MM.Management.Plugins.Client\In
stall.MM.Management.Plugins.Client.wixproj : error MSB4057: The target "GetReso
lvedReferencePaths" does not exist in the project.
Done Building Project "C:\XP2010\XPertJustice\Working\XPedient\Install.MM.Manag
ement.Plugins.Client\Install.MM.Management.Plugins.Client.wixproj" (GetTargetPa
th;GetResolvedReferencePaths target(s)) -- FAILED.

Project "C:\XP2010\XPertJustice\Working\XPedient\install.app.server.xpertjustic
e\install.app.server.xpertjustice.wixproj" (1) is building "C:\XP2010\XPertJust
ice\Working\XPedient\Install.MM.Management.Plugins.Common\Install.MM.Management
.Plugins.Common.wixproj" (5) on node 1 (GetTargetPath;GetResolvedReferencePaths
 target(s)).
C:\XP2010\XPertJustice\Working\XPedient\Install.MM.Management.Plugins.Common\In
stall.MM.Management.Plugins.Common.wixproj : error MSB4057: The target "GetReso
lvedReferencePaths" does not exist in the project.
Done Building Project "C:\XP2010\XPertJustice\Working\XPedient\Install.MM.Manag
ement.Plugins.Common\Install.MM.Management.Plugins.Common.wixproj" (GetTargetPa
th;GetResolvedReferencePaths target(s)) -- FAILED.

Project "C:\XP2010\XPertJustice\Working\XPedient\install.app.server.xpertjustic
e\install.app.server.xpertjustice.wixproj" (1) is building "C:\XP2010\XPertJust
ice\Working\XPedient\Install.MM.Platform.Common\Install.MM.Platform.Common.wixp
roj" (6) on node 1 (GetTargetPath;GetResolvedReferencePaths target(s)).
C:\XP2010\XPertJustice\Working\XPedient\Install.MM.Platform.Common\Install.MM.P
latform.Common.wixproj : error MSB4057: The target "GetResolvedReferencePaths"
does not exist in the project.
Done Building Project "C:\XP2010\XPertJustice\Working\XPedient\Install.MM.Platf
orm.Common\Install.MM.Platform.Common.wixproj" (GetTargetPath;GetResolvedRefere
ncePaths target(s)) -- FAILED.

Project "C:\XP2010\XPertJustice\Working\XPedient\install.app.server.xpertjustic
e\install.app.server.xpertjustice.wixproj" (1) is building "C:\XP2010\XPertJust
ice\Working\XPedient\Install.MM.Platform.Diagnostics\Install.MM.Platform.Diagno
stics.wixproj" (7) on node 1 (GetTargetPath;GetResolvedReferencePaths target(s)
).
C:\XP2010\XPertJustice\Working\XPedient\Install.MM.Platform.Diagnostics\Install
.MM.Platform.Diagnostics.wixproj : error MSB4057: The target "GetResolvedRefere
ncePaths" does not exist in the project.
Done Building Project "C:\XP2010\XPertJustice\Working\XPedient\Install.MM.Platf
orm.Diagnostics\Install.MM.Platform.Diagnostics.wixproj" (GetTargetPath;GetReso
lvedReferencePaths target(s)) -- FAILED.

Project "C:\XP2010\XPertJustice\Working\XPedient\install.app.server.xpertjustic
e\install.app.server.xpertjustice.wixproj

[WiX-users] timeout value for sql connection.

2009-07-08 Thread Leo ...

 

Can the connection timeout to the database be controlled when using the 
SqlExtension WIX library for running SQL scripts such using "sql:SqlString"?  
Thx!

 


 
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Conditions issue

2009-07-08 Thread Patrick Sullivan
Moderate time user, first time question asker.

 

I'm having issues where my protection condition around a component that
includes an inifile is not working correctly, yet when I include the value
of the tested variable it appears like it should be

 

Sample

 



 



  



  



 

And later

 

  















  

  

 

I've tried with and without the CDATA wrapping CONFIGINIEXISTS and it isn't
wanting to work either way.  And the output line I'm writing to configini
(when I've already got the file there) is filled in with the path and file
name.  I've researched but this looks like it should work.  I figure I'm
doing something simple and dumb.

 

I've tried pre-setting OSINSTALLDIR inside the installer AND in my batch
file I'm calling the MSI from via the command line.

 

Any info I'm missing that will help just point out and I'll supply it.

 

Thanks

 

~Patrick Sullivan

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to localize wix package in this way?

2009-07-08 Thread Dirk Räder
Hi again,

as I wrote before: Windows Installer does not allow one MSI calling
another MSI. You will have to use an external program calling the MSI
with the appropriate language information.

Regards,

Dirk

2009/7/8 Jiang, Chunyan (GE Healthcare) :
> As I thought to define two wix projects to realize my aim, I tried to define 
> a CustomAction in one msi to call another msi.
>
>            SourceFile="..SourceDir\VP6Wix.msi" />
>
>                      BinaryKey="GermanInstallMsi"
>                  ExeCommand=""
>                  Execute="deferred"
>                  Return="check"
>                  HideTarget="no"
>                  Impersonate="no" />
>
>  Then call this action in one push button after the radio button is selected:
>
>       Y="229" Text="Next" Property="USERNAME">
>           Value="GermanInstall">
>
> However, when I run the first msi, select one language, click the push 
> button, I got the error:
>
> The installer has encountered an unexpected error installing this package. 
> This may indicate a problem with this package. The error code is 2762.
>
> The language selection dialog is called in InstallUISequence as:
>
>    
>      
>
> Why does the error come when I run the first msi? Could some one give me tips?
>
> Regards,
>
> Chunyan
>
> -Ursprüngliche Nachricht-
> Von: Jiang, Chunyan (GE Healthcare)
> Gesendet: Mittwoch, 8. Juli 2009 14:58
> An: General discussion for Windows Installer XML toolset.
> Betreff: Re: [WiX-users] How to localize wix package in this way?
>
> Hi Rob,
>
> Thanks to the Wix Tutorial, I learned from the SampleAskKey source code and 
> got to know how to use RadioButtonGroup to get the different selection value. 
> For example, I give the three radio buttons different value for the property 
> and define the push button publish even according to different property's 
> values.
>
> As you said, WIX doesn't support language switching. Is it possible to create 
> another wix project, which has different localization msi, using the push 
> button above to call the msi accordingly? The idea is to have two wix 
> projects. One is for language selection, the other one is for the real 
> installation, which has different localization msi versions.
>
> How can I define the publish event for the push button in this case?
>
>
> Best regards,
>
> Chunyan
>
> -Ursprüngliche Nachricht-
> Von: Jiang, Chunyan (GE Healthcare)
> Gesendet: Mittwoch, 8. Juli 2009 10:17
> An: General discussion for Windows Installer XML toolset.
> Betreff: Re: [WiX-users] How to localize wix package in this way?
>
> Hi Rob,
>
> Thank you for your information. Although Wix doesn't support switching 
> different language packages, I think the radio button can transfer the 
> language selection parameter to some small program or dll, and ask it to 
> select the coresponding localization package and go on to do the installation.
>
> How ever, I don't know how to transfer parameter throught radio button 
> selection, and what program or dll can be used in wix. Is there some example 
> that I can learn?
>
> Best regards,
>
>
> Chunyan
>
> -Ursprüngliche Nachricht-
> Von: Rob Mensching [mailto:r...@wixtoolset.org]
> Gesendet: Montag, 6. Juli 2009 19:39
> An: General discussion for Windows Installer XML toolset.
> Betreff: Re: [WiX-users] How to localize wix package in this way?
>
> Windows Installer doesn't support that. You need to have something outside 
> control the language switching.
>
> Jiang, Chunyan (GE Healthcare) wrote:
>> Hi Wix-users,
>>
>> I would like to create the installation package by using of wix. Is it
>> possible to have different language installation in the same package?
>> For example, the first dialog have the radio button group, English,
>> German, Italian. If user select one language, click next button, the
>> next dialog will show the defined language page.
>>
>> I have read some articles about localization in wix. And I can define
>> the string in .wxl and refer it in the dialog as !(loc.stringname)
>>
>> However, I don't know how to define the radio button condation or
>> action in order to load the corresponding dialog.
>>
>> It will be appreciated for any help!
>>
>>
>> Chunyan
>> --
>>  ___
>> 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
>
> --
> Enter the BlackBerry Developer Challenge This is your chance to win up to 
> $100,000 in prizes! For a limited time, vendors submitting new applications 
> to BlackBerry App World(TM) will

Re: [WiX-users] Do not change the service start type on upgrade

2009-07-08 Thread Saurabh

Bob,

That i what we are doing in the wix (I checked after your reply)


Also I do not mind if we delete the service as long as we can save the start 
type before deleting and then set the start type to the same during 
serviceinstall.

--Saurabh

--- On Wed, 7/8/09, Bob Arnson  wrote:

> From: Bob Arnson 
> Subject: Re: [WiX-users] Do not change the service start type on upgrade
> To: "General discussion for Windows Installer XML toolset." 
> 
> Date: Wednesday, July 8, 2009, 4:55 AM
> Saurabh wrote:
> > Now if we install an update, the service is deleted
> and re-installed and the service start is set to manual
> again. I would like to have a way in which the service start
> type should not change if the user has set it to automatic
> when an upgrade msi is being installed.
> >   
> 
> If you use a major upgrade, the only way to prevent the
> service from 
> being removed is to use a late scheduling of
> RemoveExistingProducts, 
> either just before or just after InstallFinalize. Note that
> that 
> scheduling requires adherence to the component rules. See 
> http://www.joyofsetup.com/2008/12/30/paying-for-upgrades/
> for more details.
> 
> -- 
> sig://boB
> http://joyofsetup.com/
> 
> 
> 
> --
> Enter the BlackBerry Developer Challenge  
> This is your chance to win up to $100,000 in prizes! For a
> limited time, 
> vendors submitting new applications to BlackBerry App
> World(TM) will have
> the opportunity to enter the BlackBerry Developer
> Challenge. See full prize  
> details at: http://p.sf.net/sfu/Challenge
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>


  

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Do not change the service start type on upgrade

2009-07-08 Thread Saurabh

Yan,

I would like to overwrite the files, but keep the service start type same after 
installation as it was before.

--Saurabh

--- On Tue, 7/7/09, Yan Sklyarenko  wrote:

> From: Yan Sklyarenko 
> Subject: Re: [WiX-users] Do not change the service start type on upgrade
> To: "General discussion for Windows Installer XML toolset." 
> 
> Date: Tuesday, July 7, 2009, 11:38 PM
> Can you try setting the Component's
> attribute NeverOverwrite to 'yes'?
> Didn't try it myself, though...
> 
> -- Yan
> 
> 
> -Original Message-
> From: Saurabh [mailto:sk...@yahoo.com] 
> Sent: Wednesday, July 08, 2009 9:18 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Do not change the service start type
> on upgrade
> 
> 
> Hello,
> 
> I am quite new to wix and stuck with an issue.
> 
> I have a windows service which is installed as a part of an
> MSI , the
> service start being set to manual. The users can change
> this to
> automatic after installation.
> 
> Now if we install an update, the service is deleted and
> re-installed and
> the service start is set to manual again. I would like to
> have a way in
> which the service start type should not change if the user
> has set it to
> automatic when an upgrade msi is being installed.
> 
> 
> I tried :
> 
>  Get the current service start type
> 
>       Id='ServiceStatus' Type='raw' Root='HKLM'
> Key='SYSTEM\Current Control Set\Services\My Service'
> Name='Start' />
> 
>     
> 
> =
> Based on the Property tried suppressing the installservices
> and
> deleteservices elements in the InstallExecuete table
>  SERVICE_STATUS
> 
>   >SERVICE_STATUS
> 
> This did not work.
> 
> 
> Then I tried to create two different component elements:
> 
>  Guid="67B3D72D-0CB9-41BA-B76A-ADEF1DF87745"
> DiskId="1">
>                
> 
>                
> 
>
> and
> 
>              
>  Guid="A50691F0-5C0F-49d5-AA27-9C5280278459" DiskId="1">
>                
> 
>                
> 
>                
>                 
>                 
>  
> In this case service does not install when I upgrade from
> older version
> of MSI
> ===
> 
> Any other ways in which i tried setting a property and
> using it as a
> value in the start attribute of serviceinstall element
> failed as it did
> not support properties.
> 
> Could anyone point me to the correct way of doing this?
> 
> Thanks
> 
> 
> 
>       
> 
> 
> --
> Enter the BlackBerry Developer Challenge  
> This is your chance to win up to $100,000 in prizes! For a
> limited time,
> 
> vendors submitting new applications to BlackBerry App
> World(TM) will
> have
> the opportunity to enter the BlackBerry Developer
> Challenge. See full
> prize  
> details at: http://p.sf.net/sfu/Challenge
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> --
> Enter the BlackBerry Developer Challenge  
> This is your chance to win up to $100,000 in prizes! For a
> limited time, 
> vendors submitting new applications to BlackBerry App
> World(TM) will have
> the opportunity to enter the BlackBerry Developer
> Challenge. See full prize  
> details at: http://p.sf.net/sfu/Challenge
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 


  

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to localize wix package in this way?

2009-07-08 Thread Dirk Räder
Hi Chunyan,

it is not possible to have one msi file call another msi file. You
would have to write an external setup.exe that shows the language
selection dialog. When the user clicks Next on that dialog, setup.exe
calls the msi with the necessary transformation parameter.

Hope that helps,

Dirk Räder

2009/7/8 Jiang, Chunyan (GE Healthcare) :
> Hi Rob,
>
> Thanks to the Wix Tutorial, I learned from the SampleAskKey source code and 
> got to know how to use RadioButtonGroup to get the different selection value. 
> For example, I give the three radio buttons different value for the property 
> and define the push button publish even according to different property's 
> values.
>
> As you said, WIX doesn't support language switching. Is it possible to create 
> another wix project, which has different localization msi, using the push 
> button above to call the msi accordingly? The idea is to have two wix 
> projects. One is for language selection, the other one is for the real 
> installation, which has different localization msi versions.
>
> How can I define the publish event for the push button in this case?
>
>
> Best regards,
>
> Chunyan
>
> -Ursprüngliche Nachricht-
> Von: Jiang, Chunyan (GE Healthcare)
> Gesendet: Mittwoch, 8. Juli 2009 10:17
> An: General discussion for Windows Installer XML toolset.
> Betreff: Re: [WiX-users] How to localize wix package in this way?
>
> Hi Rob,
>
> Thank you for your information. Although Wix doesn't support switching 
> different language packages, I think the radio button can transfer the 
> language selection parameter to some small program or dll, and ask it to 
> select the coresponding localization package and go on to do the installation.
>
> How ever, I don't know how to transfer parameter throught radio button 
> selection, and what program or dll can be used in wix. Is there some example 
> that I can learn?
>
> Best regards,
>
>
> Chunyan
>
> -Ursprüngliche Nachricht-
> Von: Rob Mensching [mailto:r...@wixtoolset.org]
> Gesendet: Montag, 6. Juli 2009 19:39
> An: General discussion for Windows Installer XML toolset.
> Betreff: Re: [WiX-users] How to localize wix package in this way?
>
> Windows Installer doesn't support that. You need to have something outside 
> control the language switching.
>
> Jiang, Chunyan (GE Healthcare) wrote:
>> Hi Wix-users,
>>
>> I would like to create the installation package by using of wix. Is it
>> possible to have different language installation in the same package?
>> For example, the first dialog have the radio button group, English,
>> German, Italian. If user select one language, click next button, the
>> next dialog will show the defined language page.
>>
>> I have read some articles about localization in wix. And I can define
>> the string in .wxl and refer it in the dialog as !(loc.stringname)
>>
>> However, I don't know how to define the radio button condation or
>> action in order to load the corresponding dialog.
>>
>> It will be appreciated for any help!
>>
>>
>> Chunyan
>> --
>>  ___
>> 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
>
> --
> Enter the BlackBerry Developer Challenge This is your chance to win up to 
> $100,000 in prizes! For a limited time, vendors submitting new applications 
> to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry 
> Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge 
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> --
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer C

Re: [WiX-users] MSP patch creation with Wix

2009-07-08 Thread Ilya Mayzel
Yan,

This is great news for me! Can you please elaborate on the process you
follow? Different articles give different process recommendations.

How do you specify in the patch1.wxs the version of the base MSI
(product.wxs)

What do you need to do (version/product code/package code) if you create
number of consecutive patches patch2, patch3, patch4 that essentially
update same few files monthly reflecting development process?


Thanks,
 
Ilya Mayzel

-Original Message-
From: Yan Sklyarenko [mailto:y...@sitecore.net] 
Sent: Wednesday, July 08, 2009 2:34 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] MSP patch creation with Wix

>> Does anyone have an experience following those instructions?
Yes, this works perfectly well, both "old-fashioned" Windows SDK based
approach and the new "purely WiX" one.

>> Can you build a patch without creating a final v1.1 MSI, but just
using
v1.0 as a base?

Patch is a diff between two MSI packages, in any case. With the first
approach you need MSI files, both baseline and new. With the second
(recommended) one you work with wixpdb files and torch/pyro utils. I'm
using the later - it doesn't require other tools to be installed apart
from WiX toolset itself.

Good luck.

-- Yan

-Original Message-
From: Ilya Mayzel [mailto:imay...@mdsol.com] 
Sent: Wednesday, July 08, 2009 12:55 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] MSP patch creation with Wix

Does anyone have an experience following those instructions?
Can you build a patch without creating a final v1.1 MSI, but just using
v1.0 as a base?


Thanks,
 
Ilya Mayzel

-Original Message-
From: Brian Rogers [mailto:rogers.br...@gmail.com] 
Sent: Tuesday, July 07, 2009 5:19 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] MSP patch creation with Wix

There is a sample in the CHM.

Brian Rogers
"Intelligence removes complexity." - Me
http://blogs.msdn.com/icumove <-- NEW


On Tue, Jul 7, 2009 at 1:44 PM, Ilya Mayzel  wrote:

> Hello,
>
>
>
> Does anyone know how can I create MSP with Wix based on my MSI/Wix
> package?
>
>
>
> First I created template.wxs schema file and compiled it into MSI
using
> candle and light.
>
> Now I have a new binary file I need to replace at the target location.
>
>
>
> What is a step by step process to create MSP?
>
> Can I use the same .wxs file with just modifications in a binary
> section?
>
> What product/package codes and GUIDS modifications should I make to
this
> file to turn it into PCP/MSP
>
>
>
> I read on the web that this is a sequence:
>
> candle patch.wxs
> light patch.wixobj -out patch.pcp
> msimsp -s patch.pcp -p patch.msp -l msimsp.log
>
>
>
> But what should be a different in the patch.wxs vs normal MSI .wxs ?
>
>
>
> Thanks,
>
>
>
> Ilya Mayzel
>
>
>
>
>
>
>
>
>

--
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited
time,
> vendors submitting new applications to BlackBerry App World(TM) will
have
> the opportunity to enter the BlackBerry Developer Challenge. See full
prize
> details at: http://p.sf.net/sfu/blackberry
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,

vendors submitting new applications to BlackBerry App World(TM) will
have
the opportunity to enter the BlackBerry Developer Challenge. See full
prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,

vendors submitting new applications to BlackBerry App World(TM) will
have
the opportunity to enter the BlackBerry Developer Challenge. See full
prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,

vendors submitting new applications to BlackBerry App World(TM) will
have
the opportunity to enter the BlackBerry Developer Challenge. See full
prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailin

[WiX-users] SQL db browse problem

2009-07-08 Thread akash bhatia
hi all,

i am facing here quite a different problem.

i have created my custom dialog for *SQLlogin* and in that on
*SQLBROWSE *button
i am calling a C# custom action for gettin all the dbservers on network and
writing all that in a textfile.
next i am calling a spawn dialog with listbox control  in which all of these
*sqlserver values* will get populated.

and clicking on any dbserver value should return the value to the main *
SQLlogin* dialog in the edit control.

this is happening perfectly for the first time, but if user deletes the text
value in edit field and clicks browse again, it is populating all the
dbservers in the listbox on spawn dialog but somehow not able to return the
dbserver value back to the sqlLogin dialog.

here is wat i have written for spwan dialog


















also Property for the edit field in *SQLlogin* dialog is same as the listbox
in the spawn dialog.


any suggestions on this will be highly appreciated.


Thanks!
Akash
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to localize wix package in this way?

2009-07-08 Thread Jiang, Chunyan (GE Healthcare)
As I thought to define two wix projects to realize my aim, I tried to define a 
CustomAction in one msi to call another msi. 





 Then call this action in one push button after the radio button is selected:

  
  
 
However, when I run the first msi, select one language, click the push button, 
I got the error:

The installer has encountered an unexpected error installing this package. This 
may indicate a problem with this package. The error code is 2762.

The language selection dialog is called in InstallUISequence as:


  

Why does the error come when I run the first msi? Could some one give me tips?

Regards,

Chunyan

-Ursprüngliche Nachricht-
Von: Jiang, Chunyan (GE Healthcare) 
Gesendet: Mittwoch, 8. Juli 2009 14:58
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to localize wix package in this way?

Hi Rob,

Thanks to the Wix Tutorial, I learned from the SampleAskKey source code and got 
to know how to use RadioButtonGroup to get the different selection value. For 
example, I give the three radio buttons different value for the property and 
define the push button publish even according to different property's values.

As you said, WIX doesn't support language switching. Is it possible to create 
another wix project, which has different localization msi, using the push 
button above to call the msi accordingly? The idea is to have two wix projects. 
One is for language selection, the other one is for the real installation, 
which has different localization msi versions.

How can I define the publish event for the push button in this case?


Best regards,

Chunyan

-Ursprüngliche Nachricht-
Von: Jiang, Chunyan (GE Healthcare)
Gesendet: Mittwoch, 8. Juli 2009 10:17
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to localize wix package in this way?

Hi Rob,

Thank you for your information. Although Wix doesn't support switching 
different language packages, I think the radio button can transfer the language 
selection parameter to some small program or dll, and ask it to select the 
coresponding localization package and go on to do the installation.

How ever, I don't know how to transfer parameter throught radio button 
selection, and what program or dll can be used in wix. Is there some example 
that I can learn?

Best regards,


Chunyan 

-Ursprüngliche Nachricht-
Von: Rob Mensching [mailto:r...@wixtoolset.org]
Gesendet: Montag, 6. Juli 2009 19:39
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to localize wix package in this way?

Windows Installer doesn't support that. You need to have something outside 
control the language switching.

Jiang, Chunyan (GE Healthcare) wrote:
> Hi Wix-users,
>
> I would like to create the installation package by using of wix. Is it 
> possible to have different language installation in the same package?
> For example, the first dialog have the radio button group, English, 
> German, Italian. If user select one language, click next button, the 
> next dialog will show the defined language page.
>
> I have read some articles about localization in wix. And I can define 
> the string in .wxl and refer it in the dialog as !(loc.stringname)
>
> However, I don't know how to define the radio button condation or 
> action in order to load the corresponding dialog.
>
> It will be appreciated for any help!
>
>
> Chunyan
> --
>  ___
> 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

--
Enter the BlackBerry Developer Challenge This is your chance to win up to 
$100,000 in prizes! For a limited time, vendors submitting new applications to 
BlackBerry App World(TM) will have the opportunity to enter the BlackBerry 
Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Enter the BlackBerry Developer Challenge This is your chance to win up to 
$100,000 in prizes! For a limited time, vendors submitting new applications to 
BlackBerry App World(TM) will have the opportunity to enter the BlackBerry 
Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge 
___
WiX-users mailing list
WiX-users@lists

Re: [WiX-users] How to localize wix package in this way?

2009-07-08 Thread Jiang, Chunyan (GE Healthcare)
Hi Rob,

Thanks to the Wix Tutorial, I learned from the SampleAskKey source code and got 
to know how to use RadioButtonGroup to get the different selection value. For 
example, I give the three radio buttons different value for the property and 
define the push button publish even according to different property's values.

As you said, WIX doesn't support language switching. Is it possible to create 
another wix project, which has different localization msi, using the push 
button above to call the msi accordingly? The idea is to have two wix projects. 
One is for language selection, the other one is for the real installation, 
which has different localization msi versions.

How can I define the publish event for the push button in this case?


Best regards,

Chunyan

-Ursprüngliche Nachricht-
Von: Jiang, Chunyan (GE Healthcare) 
Gesendet: Mittwoch, 8. Juli 2009 10:17
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to localize wix package in this way?

Hi Rob,

Thank you for your information. Although Wix doesn't support switching 
different language packages, I think the radio button can transfer the language 
selection parameter to some small program or dll, and ask it to select the 
coresponding localization package and go on to do the installation.

How ever, I don't know how to transfer parameter throught radio button 
selection, and what program or dll can be used in wix. Is there some example 
that I can learn?

Best regards,


Chunyan 

-Ursprüngliche Nachricht-
Von: Rob Mensching [mailto:r...@wixtoolset.org]
Gesendet: Montag, 6. Juli 2009 19:39
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to localize wix package in this way?

Windows Installer doesn't support that. You need to have something outside 
control the language switching.

Jiang, Chunyan (GE Healthcare) wrote:
> Hi Wix-users,
>
> I would like to create the installation package by using of wix. Is it 
> possible to have different language installation in the same package?
> For example, the first dialog have the radio button group, English, 
> German, Italian. If user select one language, click next button, the 
> next dialog will show the defined language page.
>
> I have read some articles about localization in wix. And I can define 
> the string in .wxl and refer it in the dialog as !(loc.stringname)
>
> However, I don't know how to define the radio button condation or 
> action in order to load the corresponding dialog.
>
> It will be appreciated for any help!
>
>
> Chunyan
> --
>  ___
> 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

--
Enter the BlackBerry Developer Challenge This is your chance to win up to 
$100,000 in prizes! For a limited time, vendors submitting new applications to 
BlackBerry App World(TM) will have the opportunity to enter the BlackBerry 
Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] msi failure when using ServiceConfigFailureActions

2009-07-08 Thread Bob Arnson
Lian Jiang wrote:
> But installing msi failed with the message "no enough priviledge". 

Check a verbose log for the exact error message.

> If I remove the ServiceConfigFailureActions node, the msi works fine.
>
> Did I miss anything when using ServiceConfigFailureActions?
>   

Are you expecting to run only on Windows 7/2008 r...@? The 
ServiceConfigFailureActions element requires MSI 5.0.

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Where is the game extension docs?

2009-07-08 Thread Bob Arnson
Richard wrote:
> If I install Wix35.msi, then this appears in the CHM file.
>   

It's also in the v3.0 .chm.

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to register file type with wix 3 RTM?

2009-07-08 Thread Bob Arnson
Ryan Dai wrote:
> error CNDL0035 : The Verb/@Sequence attribute cannot 
> be specified when attribute Advertise is present with value 'no'.
>   

If you have only a single Verb element, just omit the Sequence 
attribute. WiX v2 accepted the Sequence attribute when Advertised="no" 
but did nothing with it; WiX v3 is more strict and doesn't just throw 
away what you give it.

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Do not change the service start type on upgrade

2009-07-08 Thread Bob Arnson
Saurabh wrote:
> Now if we install an update, the service is deleted and re-installed and the 
> service start is set to manual again. I would like to have a way in which the 
> service start type should not change if the user has set it to automatic when 
> an upgrade msi is being installed.
>   

If you use a major upgrade, the only way to prevent the service from 
being removed is to use a late scheduling of RemoveExistingProducts, 
either just before or just after InstallFinalize. Note that that 
scheduling requires adherence to the component rules. See 
http://www.joyofsetup.com/2008/12/30/paying-for-upgrades/ for more details.

-- 
sig://boB
http://joyofsetup.com/



--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to create a Compiler Extension

2009-07-08 Thread Yan Sklyarenko
There's an example in WiX.chm (installed together with the toolset): see
"Developing for WiX >> Developing WiX Extensions" chapter.

-- Yan

-Original Message-
From: Mazin Sayid Ali [mailto:mazin.s...@gmail.com] 
Sent: Wednesday, July 08, 2009 2:06 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to create a Compiler Extension

Hi guys,

I'm trying to create an WIX Compiler Extension. Could anyone direct me
to a
resource for the same.


Thanks
Mazin

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,

vendors submitting new applications to BlackBerry App World(TM) will
have
the opportunity to enter the BlackBerry Developer Challenge. See full
prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] How to create a Compiler Extension

2009-07-08 Thread Mazin Sayid Ali
Hi guys,

I'm trying to create an WIX Compiler Extension. Could anyone direct me to a
resource for the same.


Thanks
Mazin
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Free disk space

2009-07-08 Thread Hukumchand Shah
Thanks for reply kezhong.
But I want to use it in .wxs file. I am new to WIX.
Could you send me a sample code for that?


--Hukum

On Tue, Jul 7, 2009 at 2:11 PM, kezhong zhou  wrote:

> By using a custom action.
>
> You can call GetDiskFreeSpaceEx function to get what you want.
>
> On Tue, Jul 7, 2009 at 2:13 PM, Hukumchand Shah  >wrote:
>
> > Hi All,
> >
> > I want to check free disk space of the machine at the time of
> installation.
> > How can I do that?
> >
> > Thanks,
> > Hukum
> >
> >
> --
> > Enter the BlackBerry Developer Challenge
> > This is your chance to win up to $100,000 in prizes! For a limited time,
> > vendors submitting new applications to BlackBerry App World(TM) will have
> > the opportunity to enter the BlackBerry Developer Challenge. See full
> prize
> > details at: http://p.sf.net/sfu/blackberry
> > ___
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
> --
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/blackberry
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to localize wix package in this way?

2009-07-08 Thread Jiang, Chunyan (GE Healthcare)
Hi Rob,

Thank you for your information. Although Wix doesn't support switching 
different language packages, I think the radio button can transfer the language 
selection parameter to some small program or dll, and ask it to select the 
coresponding localization package and go on to do the installation.

How ever, I don't know how to transfer parameter throught radio button 
selection, and what program or dll can be used in wix. Is there some example 
that I can learn?

Best regards,


Chunyan 

-Ursprüngliche Nachricht-
Von: Rob Mensching [mailto:r...@wixtoolset.org] 
Gesendet: Montag, 6. Juli 2009 19:39
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to localize wix package in this way?

Windows Installer doesn't support that. You need to have something outside 
control the language switching.

Jiang, Chunyan (GE Healthcare) wrote:
> Hi Wix-users,
>
> I would like to create the installation package by using of wix. Is it 
> possible to have different language installation in the same package?
> For example, the first dialog have the radio button group, English, 
> German, Italian. If user select one language, click next button, the 
> next dialog will show the defined language page.
>
> I have read some articles about localization in wix. And I can define 
> the string in .wxl and refer it in the dialog as !(loc.stringname)
>
> However, I don't know how to define the radio button condation or 
> action in order to load the corresponding dialog.
>
> It will be appreciated for any help!
>
>
> Chunyan
> --
>  ___
> 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

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Do not change the service start type on upgrade

2009-07-08 Thread Yan Sklyarenko
Can you try setting the Component's attribute NeverOverwrite to 'yes'?
Didn't try it myself, though...

-- Yan


-Original Message-
From: Saurabh [mailto:sk...@yahoo.com] 
Sent: Wednesday, July 08, 2009 9:18 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Do not change the service start type on upgrade


Hello,

I am quite new to wix and stuck with an issue.

I have a windows service which is installed as a part of an MSI , the
service start being set to manual. The users can change this to
automatic after installation.

Now if we install an update, the service is deleted and re-installed and
the service start is set to manual again. I would like to have a way in
which the service start type should not change if the user has set it to
automatic when an upgrade msi is being installed.


I tried :

 Get the current service start type

 



=
Based on the Property tried suppressing the installservices and
deleteservices elements in the InstallExecuete table
 SERVICE_STATUS 
 SERVICE_STATUS

This did not work.


Then I tried to create two different component elements:







http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users