资源预览内容
第1页 / 共12页
第2页 / 共12页
第3页 / 共12页
第4页 / 共12页
第5页 / 共12页
第6页 / 共12页
第7页 / 共12页
第8页 / 共12页
第9页 / 共12页
第10页 / 共12页
亲,该文档总共12页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
1. 打开InstallShield 2009软件2. 点击顶部file标签,然后点击new,出现以下3.4. project name 是你这个打包项目的名称,location是你项目存放的位置。写好名字后位置后点击OK.5. 会进到标准打包页面6. 点击底部第一项 application information分别为:公司名称、打包后出的EXE文件名称、安装包版本、公司网址7. 点击底部第二项 installation requirements分别为:意思就是选择你打的安装包适用于哪些操作系统和哪些框架8. 点击底部第四项 application files建立你的打包目录。9. 点击底部第七项 installation localization选择安装包的语言10. 点击底部第八项 build installation选择第一项。11. 初步设置完毕,点击顶部installation designer标签12. 点击左侧 files and folders在右侧设置你安装包需要拷贝的文件及位置。13. 点击左侧 internet information servicesWeb sites 为IIS虚拟目录设置,右侧设置根据你IIS的正常设置进行设置。Application pools 是设置应用程序池14. 点击左侧 installscript需要编写脚本,例如安装前重启IIS等设置,一下为我们安装的设置,可是适当改改:/=/ File Name: Setup.rul/ Description: Blank setup main script file/ Comments: Blank setup is an empty setup project. If you want to/ create a new project via. step-by step instructions use the/ Project Assistant./=/ Included header files -#include ifx.h/ Note: In order to have your InstallScript function executed as a custom/ action by the Windows Installer, it must be prototyped as an / entry-point function./ The keyword export identifies MyFunction() as an entry-point function./ The argument it accepts must be a handle to the Installer database. /* export prototype MyFunction(HWND); */-/ OnFirstUIBefore/ The OnFirstUIBefore event is called by the framework when the setup is/ running in first install mode. By default this event displays UI allowing/ the end user to specify installation parameters./-function OnFirstUIBefore() NUMBER nResult, nSetupType, nvSize, nUser; STRING szTitle, szMsg, szQuestion, svName, svCompany, szFile; STRING szLicenseFile, svSetupType; LIST list, listStartCopy;BOOL bCustom;begin / TO DO: if you want to enable background, window title, and caption bar title / SetTitle( PRODUCT_NAME, 24, WHITE ); / SetTitle( PRODUCT_NAME, 0, BACKGROUNDCAPTION ); / Enable( FULLWINDOWMODE ); / Enable( BACKGROUND ); / SetColor(BACKGROUND,RGB (0, 128, 128); SHELL_OBJECT_FOLDER = PRODUCT_NAME; nSetupType = TYPICAL;Dlg_SdWelcome: szTitle = ; szMsg = ; nResult = SdWelcome(szTitle, szMsg); if (nResult = BACK) goto Dlg_SdWelcome;szTitle = ;svName = ; svCompany = ;bCustom = FALSE;/*Dlg_SdCustomerInformation:nResult = SdCustomerInformation(szTitle, svName, svCompany, nUser);if (nResult = BACK) goto Dlg_SdWelcome;*/Dlg_SetupType: szTitle = 选择安装类型; szMsg = ; svSetupType = Typical; nResult = SdSetupTypeEx(szTitle, szMsg, , svSetupType, 0); if (nResult = BACK) then goto Dlg_SdWelcome; else nSetupType = nResult; if (nSetupType != CUSTOM) then nvSize = 0; FeatureCompareSizeRequired(MEDIA, INSTALLDIR, nvSize); if (nvSize != 0) then MessageBox(szSdStr_NotEnoughSpace, WARNING); goto Dlg_SetupType; endif;bCustom = FALSE;goto Dlg_SdAskDestPath;elsebCustom = TRUE; endif; endif; Dlg_SdAskDestPath: nResult = SdAskDestPath(szTitle, szMsg, INSTALLDIR, 0); if (nResult = BACK) goto Dlg_SetupType;Dlg_SdFeatureTree: szTitle = ; szMsg = ; if (nSetupType = CUSTOM) thennResult = SdFeatureTree(szTitle, szMsg, INSTALLDIR, , 2);if (nResult = BACK) goto Dlg_SdAskDestPath; endif;Dlg_SQL: nResult = OnSQLLogin( nResult ); if( nResult = BACK ) then if (!bCustom) then goto Dlg_SdAskDestPath; else goto Dlg_SdFeatureTree; endif; endif;Dlg_SdStartCopy: szTitle = ; szMsg = ; listStartCopy = ListCreate( STRINGLIST ); /The following is an example of how to add a string(svName) to a list(listStartCopy). /eg. ListAddString(listStartCopy,svName,AFTER); ListAddString(listStartCopy,Complete installation.,AFTER); nResult = SdStartCopy( szTitle, szMsg, listStartCopy ); ListDestroy(listStartCopy);if (nResult = BACK) then goto Dlg_SQL; endif; / setup default status Enable(STATUSEX); return 0;end;/-/ OnMaintUIBefore/ The On
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号