Old 6th January 2006, 10:04   #1
Roel
Guest
 
Posts: n/a
Showing a dialog while an ExecWait is running

Hi,

I'm trying to make an installer that checks wheter DirectX 9 is installed and if not, installs it. I package the DirectX redistributables in my setup and I can install it fine. I do that like this (in the .onInit):

InitPluginsDir
File /oname=$PLUGINSDIR\WaitWhileExtractingDlg.ini "WaitWhileExtractingDlg.ini"

InstallOptions::dialog "$PLUGINSDIR\WaitWhileExtractingDlg.ini"

SetOutPath "$TEMP"
File /r "DirectXRedist"

HideWindow ;hide installer window

ExecWait "$TEMP\DirectXRedist\dxsetup.exe"

BringToFront

As you can see I unpack the directx files to the temp directory and run the installer from there. Problem is now that no dialog is showing while the extraction is running. As shown above I've tried to fix it with a Page command but it doesn't show a dialog. Is there a way to show a message or dialog while an ExecWait is running? The same small dialog that is shown while an installer is initializing would be perfect. Thanks.
  Reply With Quote
Old 6th January 2006, 10:38   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
I am not sure how good is custom dialog before .onGUIInit, but any case you can use Banner plug-in from NSIS distribution (Start->Programs->NSIS->Contrib) or one of banner plug-ins from archive. This may be small but TOPMOST banner in the bottom-right part of desktop workarea (some code required to move banner).
BTW if your package is on CD you can leave DirectX outside main package and run it from $EXEDIR if required (zero time to extract). Or if user downloads single exe file from Net, you can use InetLoad plug-in (the same link) for optional download.
Takhir is offline   Reply With Quote
Old 6th January 2006, 10:40   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Use the Banner plug-in.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 6th January 2006, 12:01   #4
Roel
Guest
 
Posts: n/a
The Banner plugin works like a charm, thanks a lot guys! I thought it was only for displaying a splash screen, show how much I have to learn about NSIS!

Takhir: I need my setup to be a single file and self-containing, so no loading from internet, but thanks for the hints - Banner works just fine!
  Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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