日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

MySQL innosetup_使用Inno Setup 打包jdk、mysql、tomcat、webapp等为一个exe安装包

發(fā)布時間:2023/12/15 数据库 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 MySQL innosetup_使用Inno Setup 打包jdk、mysql、tomcat、webapp等为一个exe安装包 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1 ; 腳本由 Inno Setup 腳本向?qū)?生成!2 ; 有關(guān)創(chuàng)建 Inno Setup 腳本文件的詳細(xì)資料請查閱幫助文檔!3

4 #define MyAppName "abc"5 #define MyAppVersion "1.0"6 #define MyAppPublisher "aaa"7 #define MyAppURL "http://www.abc.com/"8

9 [Setup]10 ; 注: AppId的值為單獨(dú)標(biāo)識該應(yīng)用程序。11 ; 不要為其他安裝程序使用相同的AppId值。12 ; (生成新的GUID,點(diǎn)擊 工具|在IDE中生成GUID。)13 AppId={{9E044575-9CD9-4751-B0BE-F6758BA94548}

14 AppName={#MyAppName}

15 AppVersion={#MyAppVersion}

16 ;AppVerName={#MyAppName} {#MyAppVersion}

17 AppPublisher={#MyAppPublisher}

18 AppPublisherURL={#MyAppURL}

19 AppSupportURL={#MyAppURL}

20 AppUpdatesURL={#MyAppURL}

21 DefaultDirName={pf}\{#MyAppName}

22 DefaultGroupName=XX管理軟件(abc)23 AllowNoIcons=yes24 OutputBaseFilename=setup25 Compression=lzma26 SolidCompression=yes27 [Files]28 ;拷貝tomcat29 Source:"Source\apache-tomcat-6.0.41\*";DestDir:"{app}\tomcat6.0";Flags:igNoreversion recursesubdirs createallsubdirs30 ;拷貝jdk31 Source:"Source\jdk1.6.0_43\*";DestDir:"{app}\jdk1.6";Flags:igNoreversion recursesubdirs createallsubdirs32 ;拷貝mysql33 Source:"Source\MySql5.5\*";DestDir:"{app}\MySql5.5";Flags:igNoreversion recursesubdirs createallsubdirs34 ;拷貝源代碼35 Source:"Source\abc\*";DestDir:"{app}\tomcat6.0\webapps\ROOT";Flags:igNoreversion recursesubdirs createallsubdirs36 ;拷貝sdk37 Source:"Source\Sdk\*";DestDir:"{app}\Sdk";Flags:igNoreversion recursesubdirs createallsubdirs38 ;拷貝服務(wù)器39 Source:"Source\Server\*";DestDir:"{app}\Server";Flags:igNoreversion recursesubdirs createallsubdirs40 ;拷貝ftp41 Source:"Source\FtpServer\*";DestDir:"{app}\FtpServer";Flags:igNoreversion recursesubdirs createallsubdirs42 ;拷貝bat43 Source:"Source\*";DestDir:"{app}\";44 ;拷貝桌面快捷方式45 Source:"Source\xx系統(tǒng).url";DestDir:"{userdesktop}\xx系統(tǒng)";46 [Languages]47 Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"48 [Icons]49 Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"50 Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"51 [INI]52 ;修改數(shù)據(jù)庫配置文件53 Filename:"{app}\MySql5.5\my.ini";Section:"mysqld";Key:"basedir"; String:"{app}\MySql5.5"54 Filename:"{app}\MySql5.5\my.ini";Section:"mysqld";Key:"datadir"; String:"{app}\MySql5.5\data"55 Filename:"{app}\MySql5.5\my.ini";Section:"mysqld";Key:"port"; String:"3308"56 Filename:"{app}\MySql5.5\my.ini";Section:"client";Key:"port"; String:"3308"57 ;修改服務(wù)器配置文件58 Filename:"{app}\Server\init.ini";Section:"RegAddr";Key:"port"; String:"5556"59 Filename:"{userdesktop}\xx系統(tǒng).url";Section:"InternetShortcut";Key:"URL"; String:"http://127.0.0.1:7070/"60 [Run]61 ;修改tomcat配置文件62 Filename:"{app}\loading.bat";AfterInstall:ConfigXml(ExpandConstant('{app}\tomcat6.0\conf\server.xml'),'/Server/Service/Connector','port','7070')63 ;修改web數(shù)據(jù)庫連接配置文件64 Filename:"{app}\loading.bat";AfterInstall:ConfigXml(ExpandConstant('{app}\tomcat6.0\webapps\ROOT\META-INF\Context.xml'),'/Context/Resource','password','123456')65 Filename:"{app}\loading.bat";AfterInstall:ConfigXml(ExpandConstant('{app}\tomcat6.0\webapps\ROOT\META-INF\Context.xml'),'/Context/Resource','url','jdbc:mysql://127.0.0.1:3308/abc?characterEncoding=UTF-8')66 ;修改FTP配置文件67 Filename:"{app}\loading.bat";AfterInstall:ConfigXml(ExpandConstant('{app}\FtpServer\FileZilla Server.xml'),'/FileZillaServer/Users/User','Name','admin')68 Filename:"{app}\loading.bat";AfterInstall:ConfigXml2(ExpandConstant('{app}\FtpServer\FileZilla Server.xml'),'/FileZillaServer/Users/User/Option[0]','e10adc3949ba59abbe56e057f20f883e')69 Filename:"{app}\loading.bat";AfterInstall:ConfigXml(ExpandConstant('{app}\FtpServer\FileZilla Server.xml'),'/FileZillaServer/Users/User/Permissions/Permission','Dir',ExpandConstant('{app}\tomcat6.0\webapps\ROOT\SystemFile'))70 ;修改服務(wù)配置文件71 Filename:"{app}\loading.bat";AfterInstall:ConfigXml(ExpandConstant('{app}\Sdk\abc.config'),'/configuration/appSettings/add[1]','value','127.0.0.1')72 Filename:"{app}\loading.bat";AfterInstall:ConfigXml(ExpandConstant('{app}\Sdk\abc.config'),'/configuration/appSettings/add[2]','value','5556')73 Filename:"{app}\loading.bat";AfterInstall:ConfigXml(ExpandConstant('{app}\Sdk\abc.config'),'/configuration/appSettings/add[3]','value','127.0.0.1')74 Filename:"{app}\loading.bat";AfterInstall:ConfigXml(ExpandConstant('{app}\Sdk\abc.config'),'/configuration/appSettings/add[4]','value','7070')75 Filename:"{app}\install.bat";Description:"正在啟動或配置相關(guān)程序";76 [UninstallRun]77 Filename:"{app}\uninstall.bat";78 [UninstallDelete]79 Type:filesandordirs;Name:"{app}\Server"80 Type:filesandordirs;Name:"{app}\MySql5.5"81 Type:filesandordirs;Name:"{app}\Sdk"82 Type:filesandordirs;Name:"{app}\tomcat6.0"83 Type:files;Name:"{app}\InstallUtil.InstallLog"84 [Code]85 procedureConfigXml2(xmlPath:String;xPath:String;innerText:String);86 var

87 XMLDocument,XMLRoot,XMLNode:Variant;88 begin

89 try90 XMLDocument := CreateOleObject('MSXML2.DOMDocument');91 XMLDocument.async :=False;92 XMLDocument.resolveExternals :=False;93 XMLDocument.load(xmlPath);94 XMLRoot :=XMLDocument.documentElement;95

96 XMLNode:=XMLRoot.SelectSingleNode(xPath);97 XMLNode.Text:=innerText;98 XMLDocument.Save(xmlPath);99 except100 MsgBox('xml error', mbInformation, mb_Ok);101 end;102 end;103 procedureConfigXml(xmlPath:String;xPath:String;attrName:String;attrValue:String);104 var

105 XMLDocument,XMLRoot,XMLNode:Variant;106 begin

107 try108 XMLDocument := CreateOleObject('MSXML2.DOMDocument');109 XMLDocument.async :=False;110 XMLDocument.resolveExternals :=False;111 XMLDocument.load(xmlPath);112 XMLRoot :=XMLDocument.documentElement;113

114 XMLNode:=XMLRoot.SelectSingleNode(xPath);115 XMLNode.Attributes.GetNamedItem(attrName).Value:=attrValue;116 XMLDocument.Save(xmlPath);117 except118 MsgBox('xml error', mbInformation, mb_Ok);119 end;120 end;

總結(jié)

以上是生活随笔為你收集整理的MySQL innosetup_使用Inno Setup 打包jdk、mysql、tomcat、webapp等为一个exe安装包的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 亚洲天堂中文 | 18我禁在线观看 | 成人网在线视频 | 久久永久免费视频 | 大地资源影视在线播放观看高清视频 | 国产精品无码专区 | 成人一区二区在线观看 | 在线观看免费成人 | 国产欧美日韩精品在线观看 | 成人二三区 | 亚洲v国产v欧美v久久久久久 | 亚洲av无码片一区二区三区 | 精品国产污污免费网站入口 | 国产自偷自拍 | 狠狠爱综合网 | 影音先锋中文字幕一区 | 99国产精品免费 | 国产内射合集颜射 | 色欲狠狠躁天天躁无码中文字幕 | 精品国产亚洲AV | 国产91专区 | 色亚洲欧美 | 高清精品xnxxcom | 亚洲国产视频在线观看 | 日本a级c片免费看三区 | 五月综合激情日本mⅴ | 欧美激情专区 | 欧美中文字幕在线播放 | 久久成人久久 | 国产毛片91| 大学生一级一片全黄 | www激情com| 欧美极品在线观看 | 黄色国产在线视频 | 亚洲欧美精品在线 | 国产精品久久久久久久一区二区 | 午夜神马影院 | 日韩资源 | 用力抵着尿进去了h | 看全黄大色黄大片 | 日本不卡高字幕在线2019 | 69视频免费在线观看 | 刘亦菲国产毛片bd | 欧美精品乱码99久久蜜桃 | 中文字幕在线高清 | 欧美午夜网 | 欧美日韩一区二区三区不卡视频 | 91av国产视频| 琪琪色av| 国产女人18水真多毛片18精品 | 成人av动漫在线观看 | 久操视频在线 | 色老大网站 | a∨鲁丝一区鲁丝二区鲁丝三区 | 国产午夜精品免费一区二区三区视频 | 天天操人人干 | av中文字幕在线看 | 三上悠亚人妻中文字幕在线 | 三级欧美韩日大片在线看 | 91成品视频 | 中文字幕精品一区二区精品 | www.欧美色 | www.精品久久 | 99久久久久成人国产免费 | 亚洲国产免费看 | 日本免费不卡一区二区 | 久久久123 | av解说在线观看 | 国产精品久久久久久无人区 | 欧美久久精品一级黑人c片 1000部多毛熟女毛茸茸 | 手机看片一区 | 91官网在线| 国产三级精品三级 | 中文在线а√天堂官网 | 黄网站免费入口 | 亚洲精品h | 久久一视频 | 国产做受69 | 黄色日韩| 手机av中文字幕 | 久久久久久久中文字幕 | 亚洲国产欧美视频 | 美女尿尿网站 | 一区二区三区亚洲精品 | 日韩av看片| 亚洲三级免费 | 好吊一区二区三区 | 九九视屏 | 打美女白嫩屁屁网站 | 88av网站 | 亚洲美女啪啪 | 色婷婷av一区二区三区之e本道 | 成人国产免费视频 | 日本一区二区高清免费 | 亚州av在线播放 | 国产欧洲亚洲 | 久久国产成人精品 | 国产黄色免费 | 黄色录像二级片 |