Inno Setup Setup on the Install finished page, click Finish to open the Web page

Source: Internet
Author: User

In the last page of the installation Finishpage click finished and then open a webpage

This function seems to be very simple, not just click the Finish button to bind the event, the problem is resolved immediately.

This is true in normal desktop application development, but this is Innosetup

This event is not for you to control,

So we should change the thinking, click Finish, the equivalent of the program is all installed, and in the Innosetup script, we can get to this state

First on the code:

1//This method is automatically called by Innosetup, which is triggered when the installation step changes.2 procedurecurstepchanged (curstep:tsetupstep);3 var4 Errorcode:integer;5 Isverysilent:boolean;6 j:cardinal;7 8 begin9//Ssdone, just click on the status after finish, there will be a detailed explanationTen   if(Curstep=ssdone) Then One   begin A         forJ: =1  toParamCount Do -        begin -//Here is the judge whether the program is silent installation, is not to open the Web page the            if(Comparetext (Paramstr (j),'/verysilent')=0) Then -Isverysilent: =true -        End; -  +        if( notIsverysilent) Then -        begin  +Shellexec ('Open','http://www.baidu.com',"',"', Sw_shownormal,ewnowait,errorcode); A        End; at   End;
View Code

Inno Setup Setup on the Install finished page, click Finish to open the Web page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.