Re: License Compiler will not accept multiple modules

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jens Christian Mikkelsen (jensmNoSpam_at_jcmikkelsenNoSpamPlease.dk)
Date: 08/25/04


Date: Wed, 25 Aug 2004 22:44:19 +0200


"Jens Christian Mikkelsen" <jensmNoSpam@jcmikkelsenNoSpamPlease.dk> skrev i
en meddelelse news:OM7XKIjhEHA.2812@tk2msftngp13.phx.gbl...
> According to the documentation:
>
>
http://msdn.microsoft.com/library/en-us/cptools/html/cpgrflicensecompilerlcexe.asp
>
> the License Compiler (lc.exe) should be able to accept multiple modules
with
> the /i option.
>
> lc /target:targetPE /complist:filename [/outdir:path] /i:modules
> [/nologo] [/v]
>
> But it does not seem to work! I have tried:
>
> /i:control1.dll /i:control2.dll
> /i:control1.dll,control2.dll
> /i:control1.dll+control2.dll
>
> and several other separators. Does anyone know how to reference multiple
> modules? If not, is there a way to merge multiple license resources into
one
> resource in the .exe image?

OK, problem appears to be solved. Sort of....

First I tried merging the assemblies into one by using ILMerge, but this
failed miserably. Not even IL DASM would open the resulting assembly.

Then I started studying the implementation of lc.exe using Reflector.
Reading the code revealed that this form should be the correct one:

   /i:control1.dll /i:control2.dll

but it still didn't work. And based on what Reflector told me, I couldn't
find any flaws in the implementation. As a last resort, I made a new C#
command line project in VS.NET and copied the code from the Reflector output
into the project, thinking I then might be able to debug it. Upon running
this reverse-engineered project, however, it all worked perfectly and the
tool generated a new license file.

So where does this leave me/us? There is still a bug in lc.exe, but maybe
another bug in Reflector cancels the first bug out? I am a bit mystified,
but I still believe Microsoft should fix their lc.exe. I assume it is a
trivial bug, for anyone with access to the real source code.

   /Jens

-- 
Jens Christian Mikkelsen
http://www.jcmikkelsen.dk


Relevant Pages

  • Re: Licencing
    ... > OS on multiple computers, either purchase multiple licenses, a volume ... > license, or an OS whose license permits multiple installations, such ... > to pay for each and every car that you drive off their dealers' lots. ... And I bet you really hate your local grocer for forcing ...
    (microsoft.public.windowsxp.general)
  • Re: VMS system on the web
    ... >>multiple servers and multiple users. ... > And a bunch of layered products. ... License itself stating that it is acceptable for educational use ... where that is purely educational and not related to the administration ...
    (comp.os.vms)
  • Re: hardware hash (coded profile) kept at MS or on PC?
    ... multiple licenses. ... The implication is that Microsoft would not ... terms in the End User license Agreement - this however does not detract from ... boot setup using one licensed copy is a violation. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Decompiler.NET reverse engineers your CLS compliant code
    ... I can respect that you don't want multiple people using a single license, ... I'm a home user and so there never would be more than one people on my ... Nonetheless, regardless of whether a license can be reissued, I still still ... My choice not to purchase software that ties me down (regardless if I can ...
    (microsoft.public.dotnet.languages.vb)
  • Re: ATA in WinCE5.0 and Samsung HD -- Not a repost.
    ... then it is a BUG right? ... is a sample driver, it should work fine. ... multiple..now why does he then set the read/write command to READ/WRITE ... the only way out is to avoid using READ/WRITE MULTIPLE ...
    (microsoft.public.windowsce.platbuilder)