[wix-users] SWID Tag input string was not in a correct format error from Light

Rob Mensching rob at firegiant.com
Tue Sep 1 21:43:57 PDT 2015


Yes. We can't reproduce any issue using AssemblyVersion bind information.

_______________________________________________________________
 FireGiant  |  Dedicated support for the WiX toolset  |  http://www.firegiant.com/

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of David Hary
Sent: Tuesday, September 1, 2015 6:27 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] SWID Tag input string was not in a correct format error from Light

I tried the new release with the bind.assemblyVersion element that was failing on all older versions (including 4.x):

<?define ProductVersion      =
'!(bind.assemblyVersion.$(var.isr.IO.Diolan.Handler.Driver.Console.TargetFileName))'
?>

The error differs from rev 2026. Progress. This is the new error:

string portion was too short or too long.
isr.IO.Diolan.Handler.Driver.Console.WiX light.exe 0


is debug data called for?


On Tue, Sep 1, 2015 at 6:15 PM, David Hary <davidhary at gmail.com> wrote:

> works -- no errors compiling the msi.  We'll check the install tomorrow.
>
> On Tue, Sep 1, 2015 at 5:18 PM, Rob Mensching <rob at firegiant.com> wrote:
>
>> Okay, we tracked it down and there is a new WiX v3.10 build that 
>> should fix your issue. Can you please confirm?
>>
>>  http://wixtoolset.org/releases/v3-10-0-2101/
>>
>>
>> _______________________________________________________________
>>  FireGiant  |  Dedicated support for the WiX toolset  | 
>> http://www.firegiant.com/
>>
>> -----Original Message-----
>> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On 
>> Behalf Of David Hary
>> Sent: Monday, August 31, 2015 2:38 PM
>> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
>> Subject: Re: [wix-users] SWID Tag input string was not in a correct 
>> format error from Light
>>
>> the value of the version attribute comes from the executable. as follows:
>>
>> Under Product element I have:
>>
>>              Version='$(var.ProductVersion)'
>>
>> I share a .wxi with the bootstrapper where the version is bound to 
>> the
>> executable:
>>
>>         <?define ProductVersion      =
>> '!(bind.assemblyVersion.fid.MyAssembly)' ?>
>>
>> The assembly id is defined in the assembly feature file (.wxs) 
>> because binding to a <TargetFileName> only works for a reference with 
>> few (<=2 as I
>> recall) periods in the file name.
>>
>> in other words, version 1.0.5721.23193 comes from executable 
>> isr.IO.Diolan.Handler.Driver.Console.exe
>>
>> I hope this answers your question.
>>
>> BTW, the Diolan board is super cool: www.diolan.com (DLN-4M).
>>
>>
>>
>> On Mon, Aug 31, 2015 at 2:24 PM, Rob Mensching <rob at firegiant.com> wrote:
>>
>> > What is the value of Version attribute on your Product element?  
>> > The
>> same?
>> >
>> > _______________________________________________________________
>> >  FireGiant  |  Dedicated support for the WiX toolset  | 
>> > http://www.firegiant.com/
>> >
>> > -----Original Message-----
>> > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On 
>> > Behalf Of David Hary
>> > Sent: Monday, August 31, 2015 1:39 PM
>> > To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
>> > Subject: Re: [wix-users] SWID Tag input string was not in a correct 
>> > format error from Light
>> >
>> > Product Version:  1.0.5721.23193
>> > matches the executable.
>> >
>> > Product name is also correct: Diolan.Handler.Driver.Console.2015
>> >
>> >
>> >
>> >
>> >
>> > On Mon, Aug 31, 2015 at 1:19 PM, Rob Mensching <rob at firegiant.com>
>> wrote:
>> >
>> > > Hmm, I'm looking for the ProductVersion. What does your <Product 
>> > > Version="ThisRightHere"/> look like? If you open the MSI in Orca 
>> > > and look at the Property table for the "ProductVersion" property, 
>> > > what version is there?
>> > >
>> > > _______________________________________________________________
>> > >  FireGiant  |  Dedicated support for the WiX toolset  | 
>> > > http://www.firegiant.com/
>> > >
>> > > -----Original Message-----
>> > > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] 
>> > > On Behalf Of David Hary
>> > > Sent: Monday, August 31, 2015 1:02 PM
>> > > To: WiX Toolset Users Mailing List 
>> > > <wix-users at lists.wixtoolset.org>
>> > > Subject: Re: [wix-users] SWID Tag input string was not in a 
>> > > correct format error from Light
>> > >
>> > > Here is what I see in the MSI:
>> > > Subject: Diolan Handler Tester 2015
>> > > Author: Integrated.Scientific.Resources;
>> > > x86 Rev: {6E4B74D3-9CC9-4138-B128-54871B9A4FD6}
>> > > x64 Rev {8CFD676A-AF38-4874-9B8C-CCBD7A2E5EEB}
>> > >
>> > >         <?define ProductName         =
>> > 'Diolan.Handler.Driver.Console.2015'
>> > > ?>
>> > >         <?define ProductDescription  = 'Diolan Handler Driver 
>> > > Console
>> > 2015'
>> > > ?>
>> > >
>> > >
>> > > On Mon, Aug 31, 2015 at 12:42 PM, Rob Mensching 
>> > > <rob at firegiant.com>
>> > wrote:
>> > >
>> > > > This is perfect. What is your Product/@Version? Is it being 
>> > > > resolved correctly in the final MSI?
>> > > >
>> > > > _______________________________________________________________
>> > > >  FireGiant  |  Dedicated support for the WiX toolset  | 
>> > > > http://www.firegiant.com/
>> > > >
>> > > > -----Original Message-----
>> > > > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] 
>> > > > On Behalf Of David Hary
>> > > > Sent: Monday, August 31, 2015 12:20 PM
>> > > > To: WiX Toolset Users Mailing List 
>> > > > <wix-users at lists.wixtoolset.org>
>> > > > Subject: Re: [wix-users] SWID Tag input string was not in a 
>> > > > correct format error from Light
>> > > >
>> > > > by dotted string I mean the file name that has dots in the path
>> name.
>> > > >
>> > > > like this:
>> > > >
>> > > > isr.IO.Diolan.Handler.Driver.Console.WiX.wixproj
>> > > >
>> > > > it looks like the trace has line numbers now.  let me know if 
>> > > > you need to full log.
>> > > >
>> > > > On Mon, Aug 31, 2015 at 11:59 AM, David Hary 
>> > > > <davidhary at gmail.com>
>> > > wrote:
>> > > >
>> > > > > will do that...
>> > > > >
>> > > > > On Mon, Aug 31, 2015 at 11:53 AM, David Hary 
>> > > > > <davidhary at gmail.com>
>> > > > wrote:
>> > > > >
>> > > > >> see attached
>> > > > >>
>> > > > >> On Mon, Aug 31, 2015 at 11:40 AM, David Hary 
>> > > > >> <davidhary at gmail.com>
>> > > > wrote:
>> > > > >>
>> > > > >>> will do.
>> > > > >>>
>> > > > >>> On Mon, Aug 31, 2015 at 11:39 AM, David Hary 
>> > > > >>> <davidhary at gmail.com>
>> > > > >>> wrote:
>> > > > >>>
>> > > > >>>> Rob,
>> > > > >>>>
>> > > > >>>> I did not do the wix-debug item wondering if the bug has 
>> > > > >>>> to do with the long dotted string. I had an issue with a 
>> > > > >>>> long dotted string also when using the assembly version 
>> > > > >>>> bind command, which I solved by replacing the long dotted 
>> > > > >>>> string with a shorted directory id. As I recall having 
>> > > > >>>> more than 2 or 3 dots thew a monkey wrench at the parser. 
>> > > > >>>> let me know if you'd like info on that
>> > > as well.
>> > > > >>>>
>> > > > >>>>
>> > > > >>>>
>> > > > >>>> On Mon, Aug 31, 2015 at 11:08 AM, David Hary 
>> > > > >>>> <davidhary at gmail.com>
>> > > > >>>> wrote:
>> > > > >>>>
>> > > > >>>>> Here is the item from the log:
>> > > > >>>>>
>> > > > >>>>> "C:\My\LIBRARIES\VS\IO\Diolan\isr.IO.Diolan.sln" (default
>> > > > >>>>> target)
>> > > > >>>>> (1)
>> > > > >>>>> ->
>> > > > >>>>>
>> > > >
>> > >
>> >
>> "C:\My\LIBRARIES\VS\IO\Diolan\WiX\Handler.Driver.Console.WiX\isr.IO.Diolan.Handler.Driver.Console.WiX.wixproj"
>> > > > >>>>> (default
>> > > > >>>>>  target) (11) ->
>> > > > >>>>> (Link target) ->
>> > > > >>>>>   light.exe : error LGHT0001: Input string was not in a 
>> > > > >>>>> correct format.
>> > > > >>>>> [C:\My\LIBRARIES\VS\IO\Diolan\WiX\Handler.Drive
>> > > > >>>>> r.Console.WiX\isr.IO.Diolan.Handler.Driver.Console.WiX.wi
>> > > > >>>>> xpr
>> > > > >>>>> oj
>> > > > >>>>> ]
>> > > > >>>>>
>> > > > >>>>>     0 Warning(s)
>> > > > >>>>>     1 Error(s)
>> > > > >>>>>
>> > > > >>>>> please let me know if you need more info.
>> > > > >>>>>
>> > > > >>>>>
>> > > > >>>>>
>> > > > >>>>>
>> > > > >>>>> On Mon, Aug 31, 2015 at 10:22 AM, David Hary 
>> > > > >>>>> <davidhary at gmail.com>
>> > > > >>>>> wrote:
>> > > > >>>>>
>> > > > >>>>>> I too used a directory down the folder tree. I show 
>> > > > >>>>>> TARGETDIR in the example rather than the lower 
>> > > > >>>>>> directory, which is idiosyncratic. Both failed with the same error.
>> > > > >>>>>> Because the install otherwise works, the directory id is
>> likely kosher.
>> > > > >>>>>> I'll try to figure out how to get the log per Rob's clues.
>> > > > >>>>>>
>> > > > >>>>>> On Mon, Aug 31, 2015 at 10:00 AM, Phill Hogland < 
>> > > > >>>>>> phill.hogland at rimage.com> wrote:
>> > > > >>>>>>
>> > > > >>>>>>> I'm curious as to what TARGETDIR is set too, in the 
>> > > > >>>>>>> example
>> > > posted.
>> > > > >>>>>>> The posted code looks similar to what works for me, but 
>> > > > >>>>>>> I use a DirectoryId that is lower in my Folder tree.
>> > > > >>>>>>>
>> > > > >>>>>>> -----Original Message-----
>> > > > >>>>>>> From: wix-users
>> > > > >>>>>>> [mailto:wix-users-bounces at lists.wixtoolset.org]
>> > > > >>>>>>> On Behalf Of Rob Mensching
>> > > > >>>>>>> Sent: Monday, August 31, 2015 11:57 AM
>> > > > >>>>>>> To: WiX Toolset Users Mailing List 
>> > > > >>>>>>> <wix-users at lists.wixtoolset.org>
>> > > > >>>>>>> Subject: Re: [wix-users] SWID Tag input string was not 
>> > > > >>>>>>> in a correct format error from Light
>> > > > >>>>>>>
>> > > > >>>>>>> Yeah, we'd like to get this bug fixed as quickly as 
>> > > > >>>>>>> possible to make WiX v3.10 deadline. Problem is we 
>> > > > >>>>>>> don't repro this issue at FireGiant, so your data 
>> > > > >>>>>>> should help
>> make it clear.
>> > > > >>>>>>>
>> > > > >>>>>>> _______________________________________________________
>> > > > >>>>>>> ___ __ __ _  FireGiant  |  Dedicated support for the 
>> > > > >>>>>>> WiX toolset  | http://www.firegiant.com/
>> > > > >>>>>>>
>> > > > >>>>>>> -----Original Message-----
>> > > > >>>>>>> From: wix-users
>> > > > >>>>>>> [mailto:wix-users-bounces at lists.wixtoolset.org]
>> > > > >>>>>>> On Behalf Of David Hary
>> > > > >>>>>>> Sent: Monday, August 31, 2015 9:26 AM
>> > > > >>>>>>> To: WiX Toolset Users Mailing List 
>> > > > >>>>>>> <wix-users at lists.wixtoolset.org>
>> > > > >>>>>>> Subject: Re: [wix-users] SWID Tag input string was not 
>> > > > >>>>>>> in a correct format error from Light
>> > > > >>>>>>>
>> > > > >>>>>>> sure, Rob, your wish is my command -- I'll try to 
>> > > > >>>>>>> figure out how to do that
>> > > > >>>>>>> -- the least one could do to pay the dues that you are owed!
>> > > > >>>>>>>
>> > > > >>>>>>> On Mon, Aug 31, 2015 at 9:05 AM, Rob Mensching 
>> > > > >>>>>>> <rob at firegiant.com>
>> > > > >>>>>>> wrote:
>> > > > >>>>>>>
>> > > > >>>>>>> > Can you build from the command with msbuild with 
>> > > > >>>>>>> > logging
>> on?
>> > > > >>>>>>> > There will be a much longer error message that will 
>> > > > >>>>>>> > help figure out the issue. If you can copy down the 
>> > > > >>>>>>> > wix-debug.zip and extract the files next to where you 
>> > > > >>>>>>> > installed, that'd be even more help tracking
>> > > > >>>>>>> down the issue.
>> > > > >>>>>>> >
>> > > > >>>>>>> > _____________________________________________________
>> > > > >>>>>>> > ___ __ __ __ _  FireGiant  |  Dedicated support for 
>> > > > >>>>>>> > the WiX toolset  | http://www.firegiant.com/
>> > > > >>>>>>> >
>> > > > >>>>>>> > -----Original Message-----
>> > > > >>>>>>> > From: wix-users
>> > > > >>>>>>> > [mailto:wix-users-bounces at lists.wixtoolset.org] On 
>> > > > >>>>>>> > Behalf Of David Hary
>> > > > >>>>>>> > Sent: Saturday, August 29, 2015 11:39 AM
>> > > > >>>>>>> > To: WiX Toolset Users Mailing List 
>> > > > >>>>>>> > <wix-users at lists.wixtoolset.org
>> > > > >>>>>>> >
>> > > > >>>>>>> > Subject: Re: [wix-users] SWID Tag input string was 
>> > > > >>>>>>> > not in a correct format error from Light
>> > > > >>>>>>> >
>> > > > >>>>>>> > Correct: Product.
>> > > > >>>>>>> >
>> > > > >>>>>>> > This is what I get in the Error List panel.
>> > > > >>>>>>> >
>> > > > >>>>>>> > Severity Code Description Project File Line Error 
>> > > > >>>>>>> > Input string was
>> > > > >>>>>>> not
>> > > > >>>>>>> > in a correct format.
>> > > > >>>>>>> > isr.IO.Diolan.Handler.Driver.Console.WiX light.exe 0
>> > > > >>>>>>> >
>> > > > >>>>>>> > Also, the tab works fine in the bootstrap project.
>> > > > >>>>>>> >
>> > > > >>>>>>> >
>> > > > >>>>>>> > On Sat, Aug 29, 2015 at 11:34 AM, Rob Mensching 
>> > > > >>>>>>> > <rob at firegiant.com>
>> > > > >>>>>>> wrote:
>> > > > >>>>>>> >
>> > > > >>>>>>> > > Can you provide more context? Did you mean Product 
>> > > > >>>>>>> > > instead of
>> > > > >>>>>>> Project?
>> > > > >>>>>>> > > Can you provide the full error and other messages 
>> > > > >>>>>>> > > around the
>> > > > >>>>>>> error?
>> > > > >>>>>>> > >
>> > > > >>>>>>> > > ___________________________________________________
>> > > > >>>>>>> > > ___ __ __ __ ___  FireGiant  |  Dedicated support 
>> > > > >>>>>>> > > for the WiX toolset  | http://www.firegiant.com/
>> > > > >>>>>>> > >
>> > > > >>>>>>> > > -----Original Message-----
>> > > > >>>>>>> > > From: wix-users
>> > > > >>>>>>> > > [mailto:wix-users-bounces at lists.wixtoolset.org]
>> > > > >>>>>>> On
>> > > > >>>>>>> > > Behalf Of David Hary
>> > > > >>>>>>> > > Sent: Saturday, August 29, 2015 11:20 AM
>> > > > >>>>>>> > > To: WiX Toolset Users Mailing List <
>> > > > >>>>>>> wix-users at lists.wixtoolset.org>
>> > > > >>>>>>> > > Subject: [wix-users] SWID Tag input string was not 
>> > > > >>>>>>> > > in a correct format error from Light
>> > > > >>>>>>> > >
>> > > > >>>>>>> > > With 3.10.0.2026 and this code in <Project>:
>> > > > >>>>>>> > >
>> > > > >>>>>>> > > <swid:Tag Regid='acme.com'
>> > > > >>>>>>> > > InstallDirectory='TARGETDIR'/>
>> > > > >>>>>>> > >
>> > > > >>>>>>> > > Light reports an error: Input string was not in a 
>> > > > >>>>>>> > > correct
>> > > > format.
>> > > > >>>>>>> > >
>> > > > >>>>>>> > > Is there a file where I could find the offending string?
>> > > > >>>>>>> > >
>> > > > >>>>>>> > >
>> > > > >>>>>>> _______________________________________________________
>> > > > >>>>>>> ___
>> > > > >>>>>>> __
>> > > > >>>>>>> __
>> > > > >>>>>>> __
>> > > > >>>>>>> ____
>> > > > >>>>>>> > > WiX Toolset Users Mailing List provided by 
>> > > > >>>>>>> > > FireGiant http://www.firegiant.com/
>> > > > >>>>>>> > >
>> > > > >>>>>>> > >
>> > > > >>>>>>> _______________________________________________________
>> > > > >>>>>>> ___
>> > > > >>>>>>> __
>> > > > >>>>>>> __
>> > > > >>>>>>> __
>> > > > >>>>>>> ____
>> > > > >>>>>>> > > WiX Toolset Users Mailing List provided by 
>> > > > >>>>>>> > > FireGiant http://www.firegiant.com/
>> > > > >>>>>>> > >
>> > > > >>>>>>> >
>> > > > >>>>>>> >
>> > > > >>>>>>> _______________________________________________________
>> > > > >>>>>>> ___
>> > > > >>>>>>> __
>> > > > >>>>>>> __
>> > > > >>>>>>> __
>> > > > >>>>>>> ____
>> > > > >>>>>>> > WiX Toolset Users Mailing List provided by FireGiant 
>> > > > >>>>>>> > http://www.firegiant.com/
>> > > > >>>>>>> >
>> > > > >>>>>>> >
>> > > > >>>>>>> _______________________________________________________
>> > > > >>>>>>> ___
>> > > > >>>>>>> __
>> > > > >>>>>>> __
>> > > > >>>>>>> __
>> > > > >>>>>>> ____
>> > > > >>>>>>> > WiX Toolset Users Mailing List provided by FireGiant 
>> > > > >>>>>>> > http://www.firegiant.com/
>> > > > >>>>>>> >
>> > > > >>>>>>>
>> > > > >>>>>>> _______________________________________________________
>> > > > >>>>>>> ___ __ __ __ ____ WiX Toolset Users Mailing List 
>> > > > >>>>>>> provided by FireGiant http://www.firegiant.com/
>> > > > >>>>>>>
>> > > > >>>>>>> _______________________________________________________
>> > > > >>>>>>> ___ __ __ __ ____ WiX Toolset Users Mailing List 
>> > > > >>>>>>> provided by FireGiant http://www.firegiant.com/
>> > > > >>>>>>>
>> > > > >>>>>>> _______________________________________________________
>> > > > >>>>>>> ___ __ __ __ ____ WiX Toolset Users Mailing List 
>> > > > >>>>>>> provided by FireGiant http://www.firegiant.com/
>> > > > >>>>>>>
>> > > > >>>>>>
>> > > > >>>>>>
>> > > > >>>>>
>> > > > >>>>
>> > > > >>>
>> > > > >>
>> > > > >
>> > > >
>> > > > _______________________________________________________________
>> > > > ___ __ WiX Toolset Users Mailing List provided by FireGiant 
>> > > > http://www.firegiant.com/
>> > > >
>> > >
>> > > _________________________________________________________________
>> > > ___ WiX Toolset Users Mailing List provided by FireGiant 
>> > > http://www.firegiant.com/
>> > >
>> > > _________________________________________________________________
>> > > ___ WiX Toolset Users Mailing List provided by FireGiant 
>> > > http://www.firegiant.com/
>> > >
>> >
>> > ___________________________________________________________________
>> > _ WiX Toolset Users Mailing List provided by FireGiant 
>> > http://www.firegiant.com/
>> >
>> > ___________________________________________________________________
>> > _ WiX Toolset Users Mailing List provided by FireGiant 
>> > http://www.firegiant.com/
>> >
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant 
>> http://www.firegiant.com/
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant 
>> http://www.firegiant.com/
>>
>
>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list