Create a menu shortcut, create a desktop shortcut, create a url shortcut, and open a browser
Szfoldername = folder_startmenu;
Createprogramfolder (szfoldername );
Szcommandline = targetdir ^ "Apache-Tomcat-5.5.12 // bin // startup. Bat ";
Szcommandline = "/" "+ szcommandline + "/"";
Szfoldername = "XX // xx.exe ";
Addfoldericon (folder_programs, szfoldername, szcommandline, targetdir, "", 0, "", replace );
Szcommandline = targetdir ^ "Apache-Tomcat-5.5.12 // bin // startup. Bat ";
Szcommandline = "/" "+ szcommandline + "/"";
Szfoldername = "XX ";
If (addfoldericon (folder_desktop, szfoldername, szcommandline, targetdir,
"", 0, "", replace) <0) then
MessageBox ("the installer failed to add shortcuts on the desktop. Please add your own later !. ", Severe );
Endif;
Openfilemode (file_mode_append );
If (createfile (nvfilehandle, folder_desktop, "XX. url")> = 0) then;
Writeline (nvfilehandle, "[internetshortcut]");
Writeline (nvfilehandle, "url = http: // localhost: 8080/index. jsp ");
Writeline (nvfilehandle, "iconfile =" + targetdir ^ "Images // icon. ICO ");
Writeline (nvfilehandle, "iconindex = 0 ");
Closefile (nvfilehandle );
Else
MessageBox ("desktop shortcut creation failed! ", Severe );
Endif;
Szw.line = "http: // localhost: 8080/index. jsp ";
If (launchapp (ProgramFiles ^ "Internet Explorer" ^ "iexplore. EXE", szcmdline) <0) then
MessageBox ("cannot open the browser.", severe );
Endif;