InstallShieldx Installation Make Not Notes (Installation of Examples)

xiaoxiao2021-03-06  37

Author: fbysssBlog: blog.9cbs.net/fbysss Disclaimer: This article from the original fbysss, reproduced or quoted, please indicate the reference address. We can see that many software can have some options, such as "View Readme", "Run Procedure", etc., how did this do it? Keywords: onmoved, SDFINISH 1.IstallShieldX script has an onmoved event. This event triggers after the copy is required to be installed; 2.SDFINISH is a standard dialog function, the function original is SDFINISH (sztitle, szmsg1, szmsg2, szopt1, szopt2, bvopt1, bvopt2); from the parameters can be found, here only Provide up to two options. Example code is as follows: function OnMoved () STRING szTitle; STRING szMsg1, szMsg2, szOpt1, szOpt2; BOOL bvOpt1, bvOpt2; STRING szApplicationPath, szApplicationCmdLine, szCmdLine; begin if (MAINTENANCE) then return 0; endif; // if not the mounted state, For example, when modifying / uninstalling status, it will not be executed. Sztitle = "Installation Complete"; // The title SZMSG1 = "% P installed in the dialog is completed ./N" "Please select the following options as needed."; //% P For software product name // If you want to separate Set the product name here, using the following two sentences // szProductName = "a certain software"; // sdproductname (szmsg2 = "Click the 'Finish' button to complete% P installation."; Szopt1 = "Read the readme file "If you are here, it means that only one option SZOPT2 =" Run Program "; SDFINISH (Sztitle, Szmsg1, Szmsg2, Szopt1, Szopt2, Bvopt1, Bvopt2); if (bvopt1) THEN

Launchapp ('NOTEPAD.EXE', TARGETDIR ^ "//Readme.txt ");//launchapp Used to run an external program ENDIF; if (bvopt2) Then Launchapp (Targetdir ^" //app.exe "," ") ; ENDIF;

END;

转载请注明原文地址:https://www.9cbs.com/read-66336.html

New Post(0)