Prestart .Net - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

ifoko
Posts: 35
Joined: Tue Apr 12, 2011 5:10 pm
Contact: Website

Prestart .Net

Hi,

I have a .Net 4.0 app.
Unfortunatly the .Net Framework needs relativ long time to start up first time. (Because the mscorlib.dll must be loaded, init,...) This means bad user expirence for my app.

So I ask do you know a way to start how to start the .net framework before the setup ends? Do you know a trick?


best regards
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prestart .Net

Hello,
So I ask do you know a way to start how to start the .net framework before the setup ends? Do you know a trick?
Unfortunately there is no predefined or standard way to achieve this. However, my colleague Bogdan suggested to build an .EXE custom action for example, and schedule it after Begin standard action. This custom action should use some .NET resources thus initializing it and always have success return code.

Although this is kind of a hack, you could try it in lack of other options.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Prestart .Net

Hello,

Another predefined method you can try is to set the following to your .DLL from the Assemblies page:
settings.jpg
settings.jpg (47.78 KiB) Viewed 3462 times
You could also consider the splash screen functionality described by Microsoft:
http://msdn.microsoft.com/en-us/library/cc656886.aspx

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”