Skip to content
⌘ NSIS Forum Archive

Automatically go to next page

8 posts

DomiOh#

Automatically go to next page

Hi,

I have a big problem...

After clicking a special button on my CustomPage or after Executing a external App I want to display a new CustomPage.
I don't know how to do this.

I tried to solve it using SendMessage an WM_COMMAND to "click" on the Next button, but it doesn't work.

GetDlgItem $0 $HWNDPARENT 1
SendMessage $0 ${WM_COMMAND} 0 $HWNDPARENT 
or so:

GetDlgItem $0 $HWNDPARENT 1
SendMessage $HWNDPARENT ${WM_COMMAND} $HWNDPARENT 0 
Has someone an idea how to do it ?

Thanks.
Anders#
it should b:
GetDlgItem $0 $HWNDPARENT 1
SendMessage $HWNDPARENT ${WM_COMMAND} 1 $0


(NOTE: i didnt test this code)
DomiOh#
Ah... It works.

@Anders: Thanks for your help. I have now used this code:

          !insertmacro MUI_INSTALLOPTIONS_DISPLAY "Account_a.ini"
          GetDlgItem $0 $HWNDPARENT 1
          EnableWindow $0 0
          SendMessage $HWNDPARENT ${WM_COMMAND} 1 $0
          SendMessage $HWNDPAREMT ${WM_NEXTDLGITEM} 1 0 
Perfectly !
DomiOh#
Oh, I've just encountered another problem.

The thing is the following: I want to install an external application, let's say "DirectX".
I want to show a page that says that DirectX is being installed.
Without any user interaction I want to call "ExecWait".
After finishing DirectX-Setup I want to display another page, e.g. "All done".

Is that possible? And if it's possible, how?
zimsms#
It displays a banner with whatever text you tell it to. The banner is like a tiny progress window like the one you see when your installer is decompressing. Except its very simple. It's in the documentation and is distributed with NSIS.


Banner::show /NOUNLOAD /set 76 "Please wait while Setup is loading..." "Caption"

...

Banner::destroy