![]() |
#1 |
Junior Member
Join Date: Sep 2018
Posts: 4
|
Cannot get a web page to launch
I have an installer that creates a self-hosted configuration page at http://localhost:5000.
I want the configuration page to launch after installing and starting the services, but for the life of me I cannot get this working. I tried: code: I have tried: code: I have tried putting code: before my code: ...and none of these work. I don't get any errors; it's just like I didn't put anything at all. The text components show up, but the link never launches a browser with the link. What am I doing wrong? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,484
|
Does
PHP Code:
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Sep 2018
Posts: 4
|
I will try it when I get back in the office and let you know.
|
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,484
|
ExecShell just calls ShellExecuteEx and this is the documented way to launch the default browser on Windows.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Sep 2018
Posts: 4
|
Well, I can't get that to work with any of the MUI hooks, but if I put it at the end of my install section, at least it loads the page, which is good enough for me. Thanks!
|
![]() |
![]() |
![]() |
#6 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,484
|
Maybe try to add a Sleep after ExecShell in the finish function.
I'll try to come up with some debugging code for you tomorrow. IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#7 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,484
|
You could try
PHP Code:
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|