Old 11th November 2011, 15:32   #1
khood
Junior Member
 
Join Date: Nov 2011
Posts: 2
nsDialogs::Create very slow

Hello,

So, I am trying to merge one installer (I'll call this installer A) into another installer (B). B originally launched A as a part of the install process if the right component was chosen.

Now, before I merged the installers, pages in A that had nsDialogs::Create calls in them were displayed at the normal page display speed. Furthermore, Process Explorer told me it performed around only 100 writes when navigating to such a page. Installer B did not originally have pages that used nsDialogs::Create. After I merged the installers, the first time the user clicks to a page with a nsDialogs::Create call it hangs for around a minute and performs around 50000 writes. After the first time the user navigates to one of these nsDialogs::Create pages, any other page with the call are as fast as they should be. This happens even if the user revisits the first page with a nsDialogs::Create call.

I have also noticed that if I remove parts of my installer script the delay when the user first visits a nsDialogs::Create page is shortened. This is most noticeable when I remove includes to files that have about 90000 File commands which add approximately 250mb to the final installer size. Furthermore, removing the commands between nsDialogs::Create and nsDialogs::Show has no effect that I can notice in the delay.
khood is offline   Reply With Quote
Old 11th November 2011, 17:27   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You probably need to use ReserveFile on the plug-in DLL.

Stu
Afrow UK is offline   Reply With Quote
Old 11th November 2011, 22:25   #3
khood
Junior Member
 
Join Date: Nov 2011
Posts: 2
That worked.

Thank you.
khood is offline   Reply With Quote
Old 16th November 2011, 11:26   #4
anandsunku
Junior Member
 
Join Date: Oct 2011
Posts: 5
the nsDialog plugin hangs while using nsExec due to some unknown reason. how do i find the same.
anandsunku is offline   Reply With Quote
Old 16th November 2011, 16:01   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Post the code.

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
nsdialogs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump