DomiOh
20th July 2004 01:37 UTC
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
20th July 2004 04:21 UTC
it should b:
GetDlgItem $0 $HWNDPARENT 1
SendMessage $HWNDPARENT ${WM_COMMAND} 1 $0
(NOTE: i didnt test this code)
DomiOh
20th July 2004 07:23 UTC
Doesn't seem to work :hang:
DomiOh
20th July 2004 08:47 UTC
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
20th July 2004 09:43 UTC
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
20th July 2004 13:19 UTC
Why not use the banner plugin?
DomiOh
20th July 2004 13:23 UTC
What does that plugin do?
zimsms
20th July 2004 13:37 UTC
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