Re: [WiX-users] CLR 2.0 assembly and the gac

2006-10-25 Thread Don Tasanasanta
Where did you add this code? 

__
 
Don Tasanasanta
VIACK Corporation
425-605-7423
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jyothi
Gummadi
Sent: Thursday, October 19, 2006 1:57 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] CLR 2.0 assembly and the gac


Hi, 

when we are creating a distribution package MSI file through WIX 
toolset it consists of light and candle .exe which are capable of 
running on .net 1.1 assemblies. but when we convert our code to 2.0 
framework, light.exe will fail to run on this 2.0 assemblies giving an 
error Invalid File Assembly  - LGHT0006. 


In order to overcome this and make light.exe run successfully on our 
2.0 assemblies add light.exe xml configuration file with the following 
information 


?xml version=1.0 encoding=utf-8? 
!-- 
Copyright (c) Microsoft Corporation.  All rights reserved. 
-- 
configuration 
startup 
supportedRuntime version=v2.0.50727 / 
supportedRuntime version=v1.1.4322 / 
/startup 
/configuration 


this file basically says to light.exe to support both 1.1 assemblies 
and 2.0 assemblies. 
now light .exe successfully  creates MSI on 2.0 net code. 


Thanks  Regards, 
Jyothi Gummadi 



-- 
View this message in context:
http://www.nabble.com/Re%3A-RE%3A-CLR-2.0-assembly-and-the-gac-tf657609.
html#a6905644
Sent from the wix-users mailing list archive at Nabble.com.



-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] CLR 2.0 assembly and the gac

2006-10-19 Thread Jyothi Gummadi

Hi,


Light.exe works well with 1.1 .net environment. but when the code is
converted to 2.0 net environment the light cannot work on 2.0 assemblies. in
order to make light.exe to work add light.exe.config file with this
information:


?xml version=1.0 encoding=utf-8?
!--
Copyright (c) Microsoft Corporation.  All rights reserved.
--
configuration
startup
supportedRuntime version=v2.0.50727 /
supportedRuntime version=v1.1.4322 /
/startup
/configuration


now run light.exe on 2.0 net assembly files it will run successfully and the
MSI will be created.

Thanks  Regards,
Jyothi Gummadi

John Vottero wrote:
 
 Nobody wants to write code that they know they will have to go fix when
 the CLR is upgraded.  The goal is to write code that will work with all
 new versions of the CLR without touching it.
 
 
 
 
   From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Rob
 Mensching
   Sent: Friday, December 02, 2005 1:01 PM
   To: 'Kinny Kun'; [EMAIL PROTECTED]
   Cc: Frederik Carlier; wix-users@lists.sourceforge.net
   Subject: RE: [WiX-users] RE: CLR 2.0 assembly and the gac
   
   
 
   I'm not aware of anyway to do what you are asking but if someone
 finds one, that would be great.  Honestly, though, how often do you plan
 to change your CLR version?  When you do update the CLR version
 light.exe will fail with a pretty decent error message (now I think)
 saying that it can't load the new assemblies because the CLR versions
 aren't aligned.
 

 
   This just doesn't seem like that huge of an issue to me.
 Annoying yes... but upgrading CLR versions isn't something I think
 anybody does lightly.
 

 
   
 
 
 
   From: Kinny Kun [mailto:[EMAIL PROTECTED] 
   Sent: Thursday, December 01, 2005 5:53 PM
   To: [EMAIL PROTECTED]
   Cc: Frederik Carlier; wix-users@lists.sourceforge.net
   Subject: Re: [WiX-users] RE: CLR 2.0 assembly and the gac
 

 
   So let said I'm now running framework version 2.0.50215 and I
 specified in the config file.
 
   requiredRuntime version=v2.0.50215/
   Then later when framework version 2.1. came out. Then my
 code will break because the version is different.
 
   Is there any work around for the issue above? 
 
   The reason I want to handle this case is I created a program to
 build msi using Wix programmatically, and I don't want to have something
 that I know it will break in the future.
 
   Any suggestion?
 

 
   Thanks alot. Any help is appreciated.

 
   On 12/1/05, Rob Mensching [EMAIL PROTECTED] wrote: 
 
   AFAIK, that isn't supported.  You can however list several
 requiredRuntime elements to support many different versions.  We need
 to add that information to the light.exe.config file now that CLR 2.0
 has shipped.
 

 
   
 
 
 
   From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kinny Kun
   Sent: Thursday, December 01, 2005 4:39 PM
   To: Frederik Carlier 
   Cc: wix-users@lists.sourceforge.net
   Subject: Re: [WiX-users] RE: CLR 2.0 assembly and the gac
 

 
   Thanks for the input, but I have another question regarding to
 the configuration file below. The code below, it only work for that
 particular version,  v2.0.50215. How about I want to support future
 versions? In that case, I can't hard coded the version. How to handle if
 I want to support 2.0 or above?
 

 
   Many thanks.
   

 
   On 8/10/05, Frederik Carlier 
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote: 
 
   Kinny,
   
   You should create a file named light.exe.config with the
 following
   contents (for .NET Framework 2.0 Beta 2):
   
   ?xml version = 1.0?
   configuration
  startup
   requiredRuntime version=v2.0.50215/
   /startup
   /configuration 
   
   This will cause light to be loaded under version 2.0 of the .NET
   framework. That version can load your assembly.
   
   I hope it helps,
   
   Frederik
   
   -Original Message-
   From: Kinny Kun [mailto: [EMAIL PROTECTED]
   Sent: Thursday, August 11, 2005 2:36 AM
   To: wix-users@lists.sourceforge.net 
   Subject: [WiX-users] RE: CLR 2.0 assembly and the gac
   
   I encountered the same problem, I'm trying to register .Net 2.0
   asseblies into the GAC and getting error with light.exe.
   
   fatal error LGHT0006: Invalid assembly file C:\test.dll.
 Please 
   ensure this is a valid assembly file and that the user has the
   appropriate access rights to this file.
   
   Can anyone provide an example or sample code that will
 accomplish the
   above task?
   
   Thanks alot, 
   Kinny

Re: [WiX-users] CLR 2.0 assembly and the gac

2006-10-19 Thread Rob Mensching
What version of the WiX toolset are you using?  There should already be .config 
files that do exactly this.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jyothi Gummadi
Sent: Thursday, October 19, 2006 1:38 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] CLR 2.0 assembly and the gac


Hi,


Light.exe works well with 1.1 .net environment. but when the code is
converted to 2.0 net environment the light cannot work on 2.0 assemblies. in
order to make light.exe to work add light.exe.config file with this
information:


?xml version=1.0 encoding=utf-8?
!--
Copyright (c) Microsoft Corporation.  All rights reserved.
--
configuration
startup
supportedRuntime version=v2.0.50727 /
supportedRuntime version=v1.1.4322 /
/startup
/configuration


now run light.exe on 2.0 net assembly files it will run successfully and the
MSI will be created.

Thanks  Regards,
Jyothi Gummadi


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] CLR 2.0 assembly and the gac

2006-10-19 Thread Jyothi Gummadi

Hi, 

when we are creating a distribution package MSI file through WIX 
toolset it consists of light and candle .exe which are capable of 
running on .net 1.1 assemblies. but when we convert our code to 2.0 
framework, light.exe will fail to run on this 2.0 assemblies giving an 
error Invalid File Assembly  - LGHT0006. 


In order to overcome this and make light.exe run successfully on our 
2.0 assemblies add light.exe xml configuration file with the following 
information 


?xml version=1.0 encoding=utf-8? 
!-- 
Copyright (c) Microsoft Corporation.  All rights reserved. 
-- 
configuration 
startup 
supportedRuntime version=v2.0.50727 / 
supportedRuntime version=v1.1.4322 / 
/startup 
/configuration 


this file basically says to light.exe to support both 1.1 assemblies 
and 2.0 assemblies. 
now light .exe successfully  creates MSI on 2.0 net code. 


Thanks  Regards, 
Jyothi Gummadi 



-- 
View this message in context: 
http://www.nabble.com/Re%3A-RE%3A-CLR-2.0-assembly-and-the-gac-tf657609.html#a6905644
Sent from the wix-users mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users