lubosh
Posts: 11
Joined: Mon Feb 05, 2007 6:22 am

Recommended approach for custom actions please

I have a number of .NET assemblies which are installed into GAC. What's the easiest way to NGen these assemblies during installation?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Advanced Installer offer support for installing assemblies into GAC, please see:
http://www.advancedinstaller.com/user-g ... blies.html

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
lubosh
Posts: 11
Joined: Mon Feb 05, 2007 6:22 am

Thanks, I'm aware of this feature however doesn't solve what I need.

NGen.exe is a tool in .NET framework which can create native images of assemblies. This is important to improve startup time of deployed application on target machine.

Basically I have around 12 assemblies and I need to execute for each assembly command "NGen.exe <assembly_path>", I am wondering how such a script would look like.

This is quite common requirement for any .NET deployment and I was a little surprised that Advanced Installer offers a neat way to install assemblies into GAC but doesn't have any in-built way to NGen them as well.
pachwald
Posts: 11
Joined: Wed Oct 18, 2006 3:01 pm

Hi!

In my project, I ngen my libraries using this approach:

http://msdn2.microsoft.com/en-us/librar ... S.80).aspx

I am not quite sure whether or not this is OK for Vista certification. Perhaps anyone did it before and knows how to do it "correctly"?

Cheers,
Alex

Return to “Common Problems”