Chris, I think I understand about the GAC and ngen and thats why I want to
check it out, for performance reasons.
So does anyone have the best/recommended approach to installing the same
file into the GAC and on-disk? I need a copy of the .exe on disk so that I
can run the main executable.
Regards
Ryan
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan O'Neill
Sent: 10 April 2008 16:30
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] ngen confusion
Thanks Chris. I've been reading that on and off for a couple of weeks now, I
think I got confused about the GAC really, not just ngen.
When I install to the GAC my program files version no longer exists, as I
understand it ngen will need both copies though. Will I have to duplicate
the component so that there is an entry for the GAC plus the program files
version for each DLL/exe?
For example, would I change from;
<Component Id="C_Exe" Guid="{09540465-4B06-472d-AB01-FA3A2E578789}">
<File Id="MyExe.exe" Name="MyExe.exe" KeyPath="yes" Vital="yes"
Assembly=".net" AssemblyManifest="MyExe.exe" DiskId="1" Source="MyExe.exe" >
<netfx:NativeImage Id="N_Exe.exe" AppBaseDirectory="TARGETDIR"
AssemblyApplication="MyExe.exe" Platform="all" Priority="0"/>
</File>
</Component>
to
<Component Id="C_Exe" Guid="{09540465-4B06-472d-AB01-FA3A2E578789}">
<File Id="MyExe.exe" Name="MyExe.exe" KeyPath="yes" Vital="yes"
Assembly=".net" AssemblyManifest="MyExe.exe" DiskId="1" Source="MyExe.exe" >
<netfx:NativeImage Id="N_Exe.exe" AppBaseDirectory="TARGETDIR"
AssemblyApplication="MyExe.exe" Platform="all" Priority="0"/>
</File>
<File Id="MyExe.exe" Name="MyExe.exe" KeyPath="yes" Vital="yes"
Assembly=".net" AssemblyManifest="MyExe.exe" DiskId="1" Source="MyExe.exe"
/>
</Component>
To install to both places?
Regards
Ryan
From: Christopher Painter [mailto:[EMAIL PROTECTED]
Sent: 10 April 2008 16:22
To: Ryan O'Neill; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] ngen confusion
Prejitted assemblies don't *have* to be installed to the GAC, however doing
so can be more optimal since there is less overhead in verifying the
assembly signature. A good article on this subject is:
http://msdn2.microsoft.com/en-us/magazine/cc163610.aspx
As an aside, I've always been tought to not assume NGEN will be a
performance miracle and it shouldn't be arbitrarily done. In other words:
"Developer: Setup Dude, I need the install to prejit this assembly."
"Setup Dude: Why?"
"Developer: I think it'll speed up my application."
"Setup Dude: Have you ran it through a profiler?"
"Developer: No, I haven't"
"Setup Dude: Don't you think you should?"
Ryan O'Neill <[EMAIL PROTECTED]> wrot
I have one exe and four dlls (all .net) which I have ngenned into the GAC.
The docs state that when I run my main exe the CLR will look for an ngenned
version and use that if it is OK to do so.
The conceptual problem I have is that the executable is now in the GAC and
not in the program files\myapp folder where it used to be so I can't run it
anymore. Should I install a non-ngenned copy of the executable and DLL files
in the main dir as well? It did this before I add the NativeImage element,
but now it moves them straight to the GAC.
Apologies if this has been asked already, can't find any references to it.
Ryan
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao
ne_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users