Hi, subrat agasti wrote: > I think u missed what i was asking. My assembly has a version 2010.2.0.0. I > dont want to change that version. And because of this I can't use the > !(bind.FileVersion.fileId), which will update the product version number > based on the assembly version. > > <Product Id="{B6870E83-42B6-409F-9309-8363A604C1F1}" > Version="!(bind.FileVersion.myfileId)" > > > So i was asking if there is any other method to update the version number > automatically now that i cannot use !(bind.FileVersion.fileId). > Use preprocessor variables.
We have a file called Version.wxi: <?xml version="1.0" encoding="utf-8"?> <!-- Note that this file will be overridden by the autobuild. --> <Include> <?define MajorVersion = "1" ?> <?define MinorVersion = "0" ?> <?define BuildNumber = "0" ?> </Include> Then use these where appropriate: <Product Id="*" Name="YourApplicationName" Language="1033" Version="$(var.MajorVersion).$(var.MinorVersion).$(var.BuildNumber)" Manufacturer="YourManufacturer" UpgradeCode="$(var.CurrentUpgradeCode)"> This file is updated by our autobuild system before it builds the installer. I hope this example helps. Note that there are different ways to set the values of the preprocessor variables (e.g.: using -dname=value switch to candle.exe), this is just the way we do it. Do note though that 2010 will not be a valid "MajorVersion" because it is bigger than 255, as Palbinder pointed out. Best regards, Kim >> OK you clearly missed the point on the page linked so I'll do you a >> favour & copy & paste it in the hope that you spot the issue this time. >> Consider this the WiX-users list version of "Where's Wally". >> >> >> "The format of the string is as follows: >> >> major.minor.build >> >> The first field is the major version and has a maximum value of 255. The >> second field is the minor version and has a maximum value of 255. The >> third field is called the build version or the update version and has a >> maximum value of 65,535." >> >> >> Palbinder Sandher >> Software Deployment & IT Administrator >> T: +44 (0) 141 945 8500 >> F: +44 (0) 141 945 8501 >> >> http://www.iesve.com >> **Design, Simulate + Innovate with the <Virtual Environment>** >> Integrated Environmental Solutions Limited. Registered in Scotland No. >> SC151456 >> Registered Office - Helix Building, West Of Scotland Science Park, >> Glasgow G20 0SP >> Email Disclaimer >> >> >> -----Original Message----- >> From: subrat agasti [mailto:subrat.w...@gmail.com] >> Sent: 27 July 2010 14:03 >> To: General discussion for Windows Installer XML toolset. >> Subject: Re: [WiX-users] updating the version number automatically >> >> Thanks for the quick reply Pally. I can't use the >> !(bind.FileVersion.fileId) , because I can't change my file version. Is >> there any other way to update the version number of the MSI >> automatically? is it possible to read it from a file ? >> >> On Tue, Jul 27, 2010 at 6:10 PM, Pally Sandher >> <pally.sand...@iesve.com>wrote: >> >> >>> http://msdn.microsoft.com/en-us/library/aa370859.aspx >>> >>> Palbinder Sandher >>> Software Deployment & IT Administrator >>> T: +44 (0) 141 945 8500 >>> F: +44 (0) 141 945 8501 >>> >>> http://www.iesve.com >>> **Design, Simulate + Innovate with the <Virtual Environment>** >>> Integrated Environmental Solutions Limited. Registered in Scotland No. >>> SC151456 >>> Registered Office - Helix Building, West Of Scotland Science Park, >>> Glasgow G20 0SP Email Disclaimer >>> >>> -----Original Message----- >>> From: subrat agasti [mailto:subrat.w...@gmail.com] >>> Sent: 27 July 2010 13:25 >>> To: wix-users@lists.sourceforge.net >>> Subject: [WiX-users] updating the version number automatically >>> >>> Hi, >>> >>> I am updating the version number of my msi using >>> !(bind.FileVersion.fileId). But i am getting an error which says that >>> the version number 2010.2.0.0 is invalid.Why is that? This is the >>> version number of my .exe file. I can't change the version number of >>> this file. Is there any other way to update the version number of the >>> MSI automatically? is it possible to read it from a file ? >>> >>> Thanks, >>> >>> Subrat Agasti >>> ---------------------------------------------------------------------- >>> -- >>> ------ >>> The Palm PDK Hot Apps Program offers developers who use the Plug-In >>> Development Kit to bring their C/C++ apps to Palm for a share of $1 >>> Million in cash or HP Products. Visit us here for more details: >>> http://ad.doubleclick.net/clk;226879339;13503038;l? >>> http://clk.atdmt.com/CRS/go/247765532/direct/01/ >>> _______________________________________________ >>> WiX-users mailing list >>> WiX-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wix-users >>> >>> >>> >>> >>> ---------------------------------------------------------------------- >>> -------- The Palm PDK Hot Apps Program offers developers who use the >>> Plug-In Development Kit to bring their C/C++ apps to Palm for a share >>> of $1 Million in cash or HP Products. Visit us here for more details: >>> http://ad.doubleclick.net/clk;226879339;13503038;l? >>> http://clk.atdmt.com/CRS/go/247765532/direct/01/ >>> _______________________________________________ >>> WiX-users mailing list >>> WiX-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wix-users >>> >>> >> ------------------------------------------------------------------------ >> ------ >> The Palm PDK Hot Apps Program offers developers who use the Plug-In >> Development Kit to bring their C/C++ apps to Palm for a share of $1 >> Million in cash or HP Products. Visit us here for more details: >> http://ad.doubleclick.net/clk;226879339;13503038;l? >> http://clk.atdmt.com/CRS/go/247765532/direct/01/ >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> >> >> >> ------------------------------------------------------------------------------ >> The Palm PDK Hot Apps Program offers developers who use the >> Plug-In Development Kit to bring their C/C++ apps to Palm for a share >> of $1 Million in cash or HP Products. Visit us here for more details: >> http://ad.doubleclick.net/clk;226879339;13503038;l? >> http://clk.atdmt.com/CRS/go/247765532/direct/01/ >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l? > http://clk.atdmt.com/CRS/go/247765532/direct/01/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > . > > -- * * *Kim Gybels Software Developer * kim.gyb...@nikonmetrology.com <mailto:kim.gyb...@nikonmetrology.com> Tel: +32 16 74 01 00 Fax: +32 16 74 01 03 *Nikon Metrology Europe NV* Interleuvenlaan 86 3001 Leuven Belgium www.nikonmetrology.com <http://www.nikonmetrology.com/> This message and any attachment are privileged, confidential and contain private information. If you are not the addressee named above any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is prohibited. If you have received this transmission in error, please notify the sender immediately and destroy this e-mail. Nikon Metrology does not guarantee that the integrity of this communication has been maintained or that this communication is free of viruses, interceptions or interference, and shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. Incoming and outgoing email communications may be monitored by Nikon Metrology, as permitted by applicable law and regulations. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users