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