Old 20th October 2008, 16:23   #1
discipulus81
Junior Member
 
Join Date: Jun 2007
Location: Indianapolis, IN
Posts: 3
Running JS on a webpage

Part of my installer needs to include installing other software from the web. I have a command to open IE and go to my desired webpage. After the webpage initializes it has an install button that needs to be pushed before the installation will proceed. Is there a way in NSIS to command this button push? If I hold my mouse over the button it says javascript:startInstall(), don't know if that helps.

Thanks,
discipulus81 is offline   Reply With Quote
Old 20th October 2008, 16:50   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Simplest option would be to include a GET query which when visited simply runs your JS function when loading has completed.

Stu
Afrow UK is offline   Reply With Quote
Old 20th October 2008, 17:22   #3
discipulus81
Junior Member
 
Join Date: Jun 2007
Location: Indianapolis, IN
Posts: 3
thanks for the help. I am a little confused about the "GET query". Is this a built-in command?
discipulus81 is offline   Reply With Quote
Old 20th October 2008, 17:27   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
No, you need a web executable (PHP/ASP/JSP) that when given a specific GET query (such as page.php?install=1) shows a different page (or performs a specific task such as run your JS function). This is not an NSIS specific task at all.

Stu
Afrow UK 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