[WiX-users] (no subject)
My product wxs starts as this: ?xml version=1.0 encoding=UTF-8? ?define VERSION=0.3.0? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Product Id=* Name=!(wix.ProductName) !(wix.TheVersion) Language=1033 Version=!(wix.TheVersion) Manufacturer=My Company UpgradeCode=!(wix.UpgradeID) Package InstallerVersion=200 Compressed=yes Description=!(wix.ProductName) !(wix. TheVersion) Setup / WixVariable Id=ProductName Value=My Product Name / WixVariable Id=UpgradeID Value={5FC4DAE6-D1B9-42D6-BF3A-6DA600FB8A3F} / WixVariable Id=TheVersion Value=0.3.0/ This fails to compile with the following errors: Error 1 The Product/@Version attribute's value, '!(wix.TheVersion)', is not a valid version. Legal version values should look like 'x.x.x.x' where x is an integer from 0 to 65534. C:\russell\ServerTools\trunk\IssueChooserWix\Product.wxs4 1 IssueChooserWix Error 2 The Product/@Version attribute was not found; it is required. C:\russell\ServerTools\trunk\IssueChooserWix\Product.wxs4 1 IssueChooserWix If I change the product version from using the WixVariable to the defined VERSION e.g. Product Id=* Name=!(wix.ProductName) !(wix.TheVersion) Language=1033 Version=$(var.VERSION)) Manufacturer=My Company UpgradeCode=!(wix.UpgradeID) Then this works as expected. But using the WixVariable works in the Product Name string, but not as the product value. Even if I declare the variable as WixVariable Id=TheVersion Value=$(var.VERSION) / It still fails as the product version. Is this a bug in the compiler? I'd like to define this variable in a common library shared by all my setup projects in a single solution but this is preventing that. Cheers Russell -- 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] (no subject)
I don't believe that is correct. Visual studio setup projects use 3 digits for the product version number and my #define only has 3 digits as the version number but that works. And regardless of that, I'd tried it with 4 digits and get the same error message so it doesn't work with 3 or 4. Cheers Russell On Thursday, 16 July, 2009, at 07:58AM, Konstantin Vlasenko konstantin.vlase...@gmail.com wrote: Shoul be 4 digits as you use it for the VERISOn attribute in the Product element. WixVariable Id=TheVersion Value=0.3.0/ - incorrect WixVariable Id=TheVersion Value=0.3.0.0/ - correct 2009/7/16 rh_maill...@mac.com My product wxs starts as this: ?xml version=1.0 encoding=UTF-8? ?define VERSION=0.3.0? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Product Id=* Name=!(wix.ProductName) !(wix.TheVersion) Language=1033 Version=!(wix.TheVersion) Manufacturer=My Company UpgradeCode=!(wix.UpgradeID) Package InstallerVersion=200 Compressed=yes Description=!(wix.ProductName) !(wix. TheVersion) Setup / WixVariable Id=ProductName Value=My Product Name / WixVariable Id=UpgradeID Value={5FC4DAE6-D1B9-42D6-BF3A-6DA600FB8A3F} / WixVariable Id=TheVersion Value=0.3.0/ This fails to compile with the following errors: Error 1 The Product/@Version attribute's value, '!(wix.TheVersion)', is not a valid version. Legal version values should look like 'x.x.x.x' where x is an integer from 0 to 65534. C:\russell\ServerTools\trunk\IssueChooserWix\Product.wxs4 1 IssueChooserWix Error 2 The Product/@Version attribute was not found; it is required. C:\russell\ServerTools\trunk\IssueChooserWix\Product.wxs 4 1 IssueChooserWix If I change the product version from using the WixVariable to the defined VERSION e.g. Product Id=* Name=!(wix.ProductName) !(wix.TheVersion) Language=1033 Version=$(var.VERSION)) Manufacturer=My Company UpgradeCode=!(wix.UpgradeID) Then this works as expected. But using the WixVariable works in the Product Name string, but not as the product value. Even if I declare the variable as WixVariable Id=TheVersion Value=$(var.VERSION) / It still fails as the product version. Is this a bug in the compiler? I'd like to define this variable in a common library shared by all my setup projects in a single solution but this is preventing that. Cheers Russell -- 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 -- Konstantin Vlasenko -- 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] (no subject)
I'm using Visual Studio integration. Passing a -d to candle is equivalent to doing a ?define VERSION=0.3.0? isn't it? Using the pre-processor define works for me. Using a WixVariable is equivalent to passing -dVersion=0.3.0 to light as variables are resolved at link time. Cheers Russell On Thursday, 16 July, 2009, at 08:20AM, Konstantin Vlasenko konstantin.vlase...@gmail.com wrote: Whad do you use for building your setups? I had defined the variable in the CCnet build project. Then I put it to candle -dVersion=$(MyCCNetVersion). Or candle -dVersion=1.2.3. 2009/7/16 Konstantin Vlasenko konstantin.vlase...@gmail.com I see. It looks like the some problem with the WixVariabl. -- 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] (no subject)
This seems to have been reported already (just found the bug database): http://sourceforge.net/tracker/index.php?func=detailaid=2803055group_id=105970atid=642717 On Thursday, 16 July, 2009, at 08:32AM, rh_maill...@mac.com wrote: I'm using Visual Studio integration. Passing a -d to candle is equivalent to doing a ?define VERSION=0.3.0? isn't it? Using the pre-processor define works for me. Using a WixVariable is equivalent to passing -dVersion=0.3.0 to light as variables are resolved at link time. Cheers Russell -- 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] WixLibrary project WixUI declarations
I'm new to wix and have a couple of wix projects in our solution. I'm now trying to put the UI setup in to a common WixLibrary that our other setup programs can link to. I'm using Wix 3.0. I've created a library project with the following code: ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Fragment !-- Setup the UI -- UIRef Id=WixUI_Minimal/ WixVariable Id=WixUIBannerBmp Value=Banner.jpg/ WixVariable Id=WixUIDialogBmp Value=Dialog.jpg/ Icon Id=AddRemove.ico SourceFile=addremove.ico/ Property Id=ARPPRODUCTICON Value=AddRemove.ico / /Fragment /Wix The images Banner.jpg and Dialog.jpg live in the library project folder. This library references the WixUIExtension dll and it builds find. I've then created a wix project that references this library but when I build that and run the resultant setup, I don't get the 'minimal' UI, I just get none (well, the progress bar doing the install). If I put the above code inside the actual wix project, then the UI works as expected. Are Wix libraries not meant for pre-compiling Wix code such as UI behaviour? Or do I have to do something else to get the actual wix project to link correctly to the library? I've just added the library as a project reference. Thanks Russell -- 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 UI images and paths
I have the following code for the UI in my setup projects: UIRef Id=WixUI_Minimal/ WixVariable Id=WixUIBannerBmp Value=Banner.jpg/ WixVariable Id=WixUIDialogBmp Value=Dialog.jpg/ This code is actually in an include file that is shared by multiple wix projects. So Banner.jpg and Dialog.jpg don't live in each project folder, they're in a common location. So I've added relative include and reference paths to each Wix project to the location where the include file and the 2 jpgs are located. Both projects find the include file correctly via the include path but both fail to find the images. When specifying images like this, does the linker not search the reference paths for them? Is this a bug or is this as expected? If so, how can you share images across multiple projects? I've tried putting the common UI code in to a WixLibrary project but that doesn't work either (see my earlier post). Thanks Russell -- 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] WixLibrary project WixUI declarations
Thanks Peter. I am using Wix through its Visual Studio integration. I'd added the library as a reference to the main setup project. I've now added an explicit property to the library which can be referenced: Property Id=WixCommon Value=WixCommon / Which is referenced from the main project and this now works. But it seems a bit odd. I'd expect linking to the library would have indicated I wanted the fragment included. Cheers Russell On Wednesday, 15 July, 2009, at 02:45PM, Peter Shirtcliffe pshirtcli...@sdl.com wrote: Did you reference your library both by including it on the light command line and by referencing the fragment in your wix source code ? Like a C function library, you have to reference something in the library for it to be included. In this case, you could use something like PropertyRef Id=ARPPRODUCTICON /. When you reference something in a fragment, the whole fragment is included. -- 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] WixLibrary project WixUI declarations
The multiple fragments in a single library does make sense. Thanks for your help on this. Cheers Russell On Wednesday, 15 July, 2009, at 03:09PM, Peter Shirtcliffe pshirtcli...@sdl.com wrote: I see what you mean, especially if youre used to C# references in VS. The oddness allows you to have multiple fragments in a wixlib and you might not necessarily want to pull in all the fragments into your project. It reduces bloat and avoids the need for lots of little wixlibs. -- 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] WixVariables and GUIDs
I'm trying to put a GUID in to a wix variable but can't seem to make it work. I've successfully put the same GUID in to a pre-processor define and it works correctly. Is this a bug in Wix 3 or am I trying to use wix variables incorrectly. I've declared the define like this: ?define UPGRADE_ID = 5FC4DAE6-D1B9-42D6-BF3A-6DA600FB8A3F? And was accessing it like this: Upgrade Id=$(var.UPGRADE_ID) Which worked fine. I've then tried to declare this as a wix variable so it can go in a library project like this: WixVariable Id=UpgradeID Value=5FC4DAE6-D1B9-42D6-BF3A-6DA600FB8A3F / But if I then try and use this variable in an upgrade section: Upgrade Id=!(wix.UpgradeID) I get the following 2 errors: Error 1 ICE03: Invalid GUID string (Be sure GUID is all UPPER case); Table: Upgrade, Column: UpgradeCode, Key(s): 5FC4DAE6-D1B9-42D6-BF3A-6DA600FB8A3F..0.2.0..256 C:\russell\ServerTools\trunk.wix\IssueChooserWix\Common.wxi 7 1 IssueChooserWix Error 2 ICE61: In Upgrade table UpgradeCode 5FC4DAE6-D1B9-42D6-BF3A-6DA600FB8A3F is not a valid GUID C:\russell\ServerTools\trunk.wix\IssueChooserWix\Common.wxi 7 1 IssueChooserWix Is this the correct syntax to use wix variables? Thanks Russell -- 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 UI images and paths
OK, I've found the problem. A library is just re-formatted XML just embeds the WixVariable value as its written in the wxs file. So a solution to this is to change the WixVariable lines to by: WixVariable Id=WixUIBannerBmp Value=$(sys.SOURCEFILEDIR)Banner.jpg/ Which then embeds a full path to the file assuming it is in the current folder. This works fine if the library project is part of your solution (as ours is) but not so well if you are trying to share the compiled wxlib file. Cheers Russell On Wednesday, 15 July, 2009, at 02:42PM, rh_maill...@mac.com wrote: I have the following code for the UI in my setup projects: UIRef Id=WixUI_Minimal/ WixVariable Id=WixUIBannerBmp Value=Banner.jpg/ WixVariable Id=WixUIDialogBmp Value=Dialog.jpg/ This code is actually in an include file that is shared by multiple wix projects. So Banner.jpg and Dialog.jpg don't live in each project folder, they're in a common location. So I've added relative include and reference paths to each Wix project to the location where the include file and the 2 jpgs are located. Both projects find the include file correctly via the include path but both fail to find the images. When specifying images like this, does the linker not search the reference paths for them? Is this a bug or is this as expected? If so, how can you share images across multiple projects? I've tried putting the common UI code in to a WixLibrary project but that doesn't work either (see my earlier post). Thanks Russell -- 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] WixVariables and GUIDs
Thanks Brian, this does work (I thought I'd tried this and it didn't before!) Odd that if I define the GUID as a pre-processor variable it doesn't require {}'s and if you enter the GUID manually Wix says it doesn't need them. But it works so great. Thanks Russell On Wednesday, 15 July, 2009, at 04:59PM, Brian Rogers rogers.br...@gmail.com wrote: Hey Russell, Have you tried putting brackets around the GUID? http://msdn.microsoft.com/en-us/library/aa368767(VS.85).aspx Thanks, Brian Rogers Intelligence removes complexity. - Me http://blogs.msdn.com/icumove -- NEW -- 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