Old 16th September 2008, 15:09   #1
JockeL
Junior Member
 
Join Date: Sep 2008
Posts: 3
Progressbar for extraction

Hi all!

We only use the NSIS compiler as to package our own installation in an easy way for our customers. We have used this solution for quite some time but I myself am completely new to working with NSIS.

So far NSIS has been run in silentmode and just executed our setup.exe installer which runs in normal mode (not silent). However now we have packages that are up to 200-400 mb and in silent mode it looks to the customer as though nothing is happening when we extract the files in silent mode.

I have been trying to just include the MUI_PAGE_INSTFILES which shows the progressbar fine but when our executable is called this dialog doesn't close but is still shown behind.

All help appreciated
/Joakim
JockeL is offline   Reply With Quote
Old 16th September 2008, 16:58   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Doesn't close after the installation is done? Use SetAutoClose or AutoCloseWindow.

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 17th September 2008, 11:24   #3
JockeL
Junior Member
 
Join Date: Sep 2008
Posts: 3
Thank you for your response.

I would like the dialog to close as soon as extraction is done, I do not want it to wait for our executable to be closed as our installer has its own dialogs and this might be confusing for the end user.
JockeL is offline   Reply With Quote
Old 17th September 2008, 19:25   #4
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
hmm... are you maybe using ExecWait to launch the 2nd installation? If so, try using just Exec.
Comperio is offline   Reply With Quote
Old 18th September 2008, 09:36   #5
JockeL
Junior Member
 
Join Date: Sep 2008
Posts: 3
Thank you for your response again!

Maybe i wasn't being clear and for that I apologize but I am very new to using NSIS.

We are currently using ExecWait and if we use Exec instead this solves our problem. However we also would like the extraction folder to be deleted upon completion of the installer and currently delete the output folder when installation is done.

This is only possible by using ExecWait as far as I know. So the scenario we would like to achieve is a scenario where the extraction dialog closes upon completion of the extraction but the excraction folder containing our installer files will not be removed until the installer is finished.

I will attach my project and appreciate all help I can get.
Attached Files
File Type: nsi visma administration 4.50.nsi (3.2 KB, 175 views)
JockeL is offline   Reply With Quote
Old 18th September 2008, 14:10   #6
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 462
I think you should continue to use ExecWait so that you can delete the extraction folder after the installer completes. While the installer is running you can hide the wrapper program that extracted it.
code:
!include WinMessages.nsh
GetDlgItem $0 $HWNDPARENT 1
ShowWindow $0 ${SW_HIDE}

demiller9 is offline   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