Old 25th October 2006, 09:58   #1
bloodfire29
Junior Member
 
Join Date: Oct 2006
Posts: 3
Silent unInstall and progress bar

Hello,

I try to run an Uninstall and to display only a progress bar during the process...
but if i choose a silent uninstall, i can only display message boxes.

And if i don't choose silent uninstall, all uninstall process and windows are displayed.

Somebody know how to display a progress bar during a silent uninstall?

Thank you very much for your answers.
bloodfire29 is offline   Reply With Quote
Old 25th October 2006, 21:23   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Silent means completely silent. What you want is to display only the instfiles page. Simply remove all pages and keep only the instfiles page.

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 26th October 2006, 07:58   #3
bloodfire29
Junior Member
 
Join Date: Oct 2006
Posts: 3
Thank you for the answer but
the problem is:

in one case (an update operation) i only want to see a progress bar during the process and in the second case (the base installation) I want to see all the dialogs boxes and all the process.

I have a parameter called : UPDATE to know if i'm in an update process or not.

So the difficulty is to have a dynamic behaviour.
bloodfire29 is offline   Reply With Quote
Old 26th October 2006, 11:26   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Call Abort in the pre callback function of pages you don't want to show, when this UPDATE flag is set, and they'll disappear.

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 26th October 2006, 12:34   #5
bloodfire29
Junior Member
 
Join Date: Oct 2006
Posts: 3
Thank you very much for you help!

That was THE solution! We now, have a great install process.

sample code:

Quote:
!define MUI_PAGE_CUSTOMFUNCTION_PRE "AbortFunction"
!insertmacro MUI_PAGE_WELCOME

Function AbortFunction
Abort
FunctionEnd
bloodfire29 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