CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VB >  VB资源

Install shield 打包问题!

楼主hgw520(飞天鲲鹏)2006-03-29 17:23:41 在 VB / VB资源 提问

我用Install   shield   制作安装程序,我想让别人打开setup.exe就开始安装直到完成,不选择什么路径等等的,请问怎么做,我怎么搞都省略不了其中:欢迎...   下一步...等等! 问题点数:20、回复次数:10Top

1 楼baofeng(自古以来)回复于 2006-03-29 17:32:17 得分 5

修改腳本.這個問題太簡單了Top

2 楼baofeng(自古以来)回复于 2006-03-29 17:41:31 得分 10

//===========================================================================  
  //  
  //     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"  
   
   
  //---------------------------------------------------------------------------                                                                                                                                                  
  //   OnFirstUIBefore  
  //  
  //   First   Install   UI   Sequence   -   Before   Move   Data  
  //  
  //   The   OnFirstUIBefore   event   is   called   by   OnShowUI   when   the   setup   is  
  //   running   in   first   install   mode.   By   default   this   event   displays   UI   allowing  
  //   the   end   user   to   specify   installation   parameters.  
  //  
  //   Note:   This   event   will   not   be   called   automatically   in   a  
  //   program...endprogram   style   setup.  
  //---------------------------------------------------------------------------  
  function   OnFirstUIBefore()  
          number     nResult,   nLevel,   nSize,   nSetupType;  
          string     szTitle,   szMsg,   szOpt1,   szOpt2,   szLicenseFile;  
          string     szName,   szCompany,   szTargetPath,   szDir,   szFeatures;  
          BOOL         bLicenseAccepted;  
  begin  
         
          nSetupType   =   COMPLETE;  
          szDir   =   TARGETDIR;  
          szName   =   "";  
          szCompany   =   "";  
          bLicenseAccepted   =   FALSE;  
   
  //   Beginning   of   UI   Sequence  
  Dlg_Start:  
          nResult   =   0;  
   
  Dlg_SdWelcome:  
          szTitle   =   "";  
          szMsg   =   "";  
          //{{IS_SCRIPT_TAG(Dlg_SdWelcome)  
          nResult   =   SdWelcome(   szTitle,   szMsg   );  
          //}}IS_SCRIPT_TAG(Dlg_SdWelcome)  
          if   (nResult   =   BACK)   goto   Dlg_Start;  
   
  Dlg_SdLicense2:  
          szTitle   =   "";  
          szOpt1   =   "";  
          szOpt2   =   "";  
          //{{IS_SCRIPT_TAG(License_File_Path)  
          szLicenseFile   =   SUPPORTDIR   ^   "License.rtf";  
          //}}IS_SCRIPT_TAG(License_File_Path)  
          //{{IS_SCRIPT_TAG(Dlg_SdLicense2)  
        //   nResult   =   SdLicense2Rtf(   szTitle,   szOpt1,   szOpt2,   szLicenseFile,   bLicenseAccepted   );  
          //}}IS_SCRIPT_TAG(Dlg_SdLicense2)  
          if   (nResult   =   BACK)   then  
                  goto   Dlg_SdWelcome;  
          else  
                  bLicenseAccepted   =   TRUE;  
          endif;  
   
  Dlg_SdRegisterUser:  
          szMsg   =   "";  
          szTitle   =   "";  
          //{{IS_SCRIPT_TAG(Dlg_SdRegisterUser)  
        //   nResult   =   SdRegisterUser(   szTitle,   szMsg,   szName,   szCompany   );  
          //}}IS_SCRIPT_TAG(Dlg_SdRegisterUser)  
          if   (nResult   =   BACK)   goto   Dlg_SdLicense2;  
   
  Dlg_SetupType2:        
          szTitle   =   "";  
          szMsg   =   "";  
          nResult   =   CUSTOM;  
          //{{IS_SCRIPT_TAG(Dlg_SetupType2)  
        //   nResult   =   SetupType2(   szTitle,   szMsg,   "",   nSetupType,   0   );  
          //}}IS_SCRIPT_TAG(Dlg_SetupType2)  
          if   (nResult   =   BACK)   then  
                  goto   Dlg_SdRegisterUser;  
          else  
                  nSetupType   =   nResult;  
                  if   (nSetupType   !=   CUSTOM)   then  
                          szTargetPath   =   TARGETDIR;  
                          nSize   =   0;  
                          FeatureCompareSizeRequired(   MEDIA,   szTargetPath,   nSize   );  
                          if   (nSize   !=   0)   then              
                                  MessageBox(   szSdStr_NotEnoughSpace,   WARNING   );  
                                  goto   Dlg_SetupType2;  
                          endif;  
                  endif;        
          endif;  
   
  Dlg_SdAskDestPath2:  
          if   ((nResult   =   BACK)   &&   (nSetupType   !=   CUSTOM))   goto   Dlg_SetupType2;  
  szTitle   =   "";  
          szMsg   =   "";  
          if   (nSetupType   =   CUSTOM)   then  
                                  //{{IS_SCRIPT_TAG(Dlg_SdAskDestPath2)  
  // nResult   =   SdAskDestPath2(   szTitle,   szMsg,   szDir   );  
                                  //}}IS_SCRIPT_TAG(Dlg_SdAskDestPath2)  
                  TARGETDIR   =   szDir;  
          endif;  
          if   (nResult   =   BACK)   goto   Dlg_SetupType2;  
   
  Dlg_SdFeatureTree:    
          if   ((nResult   =   BACK)   &&   (nSetupType   !=   CUSTOM))   goto   Dlg_SdAskDestPath2;  
          szTitle   =   "";  
          szMsg   =   "";  
          szFeatures   =   "";  
          nLevel   =   2;  
          if   (nSetupType   =   CUSTOM)   then  
                  //{{IS_SCRIPT_TAG(Dlg_SdFeatureTree)  
                //   nResult   =   SdFeatureTree(   szTitle,   szMsg,   TARGETDIR,   szFeatures,   nLevel   );  
                  //}}IS_SCRIPT_TAG(Dlg_SdFeatureTree)  
                  if   (nResult   =   BACK)   goto   Dlg_SdAskDestPath2;      
          endif;  
   
  Dlg_SQLServer:  
          nResult   =   OnSQLServerInitialize(   nResult   );  
          if(   nResult   =   BACK   )   goto   Dlg_SdFeatureTree;  
   
  Dlg_ObjDialogs:  
          nResult   =   ShowObjWizardPages(   nResult   );  
          if   (nResult   =   BACK)   goto   Dlg_SQLServer;  
           
  Dlg_SdStartCopy2:  
          szTitle   =   "";  
          szMsg   =   "";  
          //{{IS_SCRIPT_TAG(Dlg_SdStartCopy2)  
          nResult   =   SdStartCopy2(   szTitle,   szMsg   );  
          //}}IS_SCRIPT_TAG(Dlg_SdStartCopy2)  
          if   (nResult   =   BACK)   goto   Dlg_ObjDialogs;  
   
          //   Added   in   11.0   -   Set   appropriate   StatusEx   static   text.  
          SetStatusExStaticText(   SdLoadString(   IDS_IFX_STATUSEX_STATICTEXT_FIRSTUI   )   );  
     
          return   0;  
  end;Top

3 楼baofeng(自古以来)回复于 2006-03-29 17:43:03 得分 0

對了,我用的是11.5版本,或是你就用Project   Assitant共幾個步驟而已,幾步就搞定了,不用寫腳本Top

4 楼hgw520(飞天鲲鹏)回复于 2006-03-29 17:58:31 得分 0

我用的是10.0版的,用Project   Assitant完成也是还会出现欢迎对话框让单击下一步,我的意思是一打开就安装直到结束,怎么设置?Top

5 楼hgw520(飞天鲲鹏)回复于 2006-03-29 18:00:28 得分 0

这个脚本往哪放阿,我是刚学着用Install   shield   的,实在不太懂,请详细指点,谢谢!Top

6 楼hgw520(飞天鲲鹏)回复于 2006-03-29 18:03:00 得分 0

现在就是这个“欢迎”对话框弄不掉,其步骤都能省略?Top

7 楼baofeng(自古以来)回复于 2006-03-29 18:04:12 得分 5

看到:  
   
  Dlg_SdWelcome:  
          szTitle   =   "";  
          szMsg   =   "";  
          //{{IS_SCRIPT_TAG(Dlg_SdWelcome)  
          nResult   =   SdWelcome(   szTitle,   szMsg   );  
          //}}IS_SCRIPT_TAG(Dlg_SdWelcome)  
          if   (nResult   =   BACK)   goto   Dlg_Start;  
   
  沒有?  
   
  注釋這一行:nResult   =   SdWelcome(   szTitle,   szMsg   );就OK!  
   
   
  至于腳本放哪兒?  
   
  在Installation   Designer->Behavior   and   Logic->InstallScript里Top

8 楼hgw520(飞天鲲鹏)回复于 2006-03-29 18:10:15 得分 0

能告诉我你的QQ吗,我想请教你几个问题!Top

9 楼baofeng(自古以来)回复于 2006-03-29 18:12:43 得分 0

我很少上QQ,   6625625Top

10 楼hgw520(飞天鲲鹏)回复于 2006-03-29 18:14:15 得分 0

谢谢,我的MSN:tophuang@kouton.com加我,   thank   you!Top

相关问题

  • install shield打包问题
  • 哪里有中文的install shield 打包程序下载?
  • 如何Install Shield打包時加入序列號?
  • 請教使用 Install shield打包MSDE 問題,
  • 编了个数据库的东西,可是没法用install shield打包
  • install shield x10.0打包的程序安装完毕后老自动安装
  • 调查一下:各位都用什么打包自己的程序?Install Shield,Wise,Inno?或者自己做?
  • 调查一下:各位都用什么打包自己的程序?Install Shield,Wise,Inno?或者自己做?
  • 100分求助。用install shield做成的安装文件,怎么打包成一个exe文件???
  • install shield 7.1的安装包,可以用打包程序打开吗?或者有其它打开方法吗?

关键词

  • script
  • sdwelcome
  • shield
  • installation
  • sztitle
  • szmsg
  • dlg
  • setup
  • nresult
  • project

得分解答快速导航

  • 帖主:hgw520
  • baofeng
  • baofeng
  • baofeng

相关链接

  • Visual Basic类图书
  • Visual Basic类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo