活力5146
在线时间3253 小时
阅读权限100
版主
- 积分
- 8657
- 主题
- 1043
- 回帖
- 1934
- 注册时间
- 2010-9-4
- 最后登录
- 2024-11-23
|
楼主 |
发表于 2018-3-2 20:01:48
|
显示全部楼层
用如下代码打包半成功所有游戏都可以选择安装,但是都要等上好几分钟才开始安装,也就是说越大的游戏需要等待时间越长,望知道网友指点我一下,谢谢。
; 脚本用 Inno Setup 脚本向导 生成。
; 查阅文档获取创建 INNO SETUP 脚本文件的详细资料!
#define MyAppName "仙剑1+3+外传+新仙窗口化版"
#define MyAppVersion "V1"
#define MyAppPublisher "我的公司"
#define MyAppExeName "PAL3.exe"
[Setup]
; 注意: AppId 的值是唯一识别这个程序的标志。
; 不要在其他程序中使用相同的 AppId 值。
; (在编译器中点击菜单“工具 -> 产生 GUID”可以产生一个新的 GUID)
AppId={{E3DCFDDD-A075-476C-8D9B-ECBCF8185889}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName=C:\Games
DefaultGroupName=仙剑1+3+外传+新仙窗口化版V1
AllowNoIcons=yes
OutputDir=F:\360Downloads
OutputBaseFilename=setup
SetupIconFile=F:\Games\PAL3.ico
DiskSliceSize=2050000000
DiskSpanning=yes
WindowResizable=true
Compression=lzma2/ultra64
SolidCompression=yes
VersionInfoDescription=仙剑1+3+外传+新仙窗口化版V1
VersionInfoVersion=5.5.9.0
VersionInfoTextVersion=5.5.9.0
ShowUndisplayableLanguages=yes
DisableWelcomePage=false
UserInfoPage=true
[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Languages\ChineseSimp.isl"
Name: "chinesetrad"; MessagesFile: "compiler:Languages\ChineseTrad.isl"
Name: "english"; MessagesFile: "compiler:Languages\English.isl"
[Messages]
english.BeveledLabel=English
chinesesimp.BeveledLabel=ChineseSimp
chinesetrad.BeveledLabel=ChineseTrad
[CustomMessages]
english.MyDescription=程序描述英文
english.MyAppName=程序名称英文
english.MyAppVerName=程序版本英文t %1
chinesesimp.MyDescription=程序描述
chinesesimp.MyAppName=程序名称
chinesesimp.MyAppVerName=程序版本 %1
chinesetrad.MyDescription=程序描述
chinesetrad.MyAppName=程序名称
chinesetrad.MyAppVerName=程序版本 %1
[Types]
Name: full ;Description:"完整安装";
Name: compact ;Description:"推荐安装";
Name: custom; Description:"自定义安装"; Flags: iscustom
[Components]
Name: c1; Description: "自定义任务7" ; Types: Full
Name: a1; Description: "安装仙剑奇侠传DOS繁体SLPAL和宽屏完美版_1"; Types: Full Compact Custom ;
Name: a2; Description: "安装仙剑奇侠传98简体SLPAL和宽屏完美版_2"; Types: Full Compact Custom ;
Name: a3; Description: "安装仙剑奇侠传3简体窗口和全屏完美版_3"; Types: Full Compact Custom ;
Name: a4; Description: "安装仙剑奇侠传3繁体窗口和全屏完美版_4"; Types: Full Compact Custom ;
Name: a5; Description: "安装仙剑奇侠传3外传问情篇简体窗口和全屏完美版_5"; Types: Full Compact Custom ;
Name: a6; Description: "安装仙剑奇侠传3外传问情篇繁体窗口和全屏完美版_6"; Types: Full Compact Custom ;
Name: a7; Description: "安装新仙剑奇侠传简体STEAM版_7"; Types: Full Compact Custom ;
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
;用户定义组件安装
Source: "F:\Games\PALDOSCHT\*"; DestDir: "{app}\PALDOSCHT"; Flags: ignoreversion recursesubdirs createallsubdirs ; Components: a1;
Source: "F:\Games\PAL98CHS\*"; DestDir: "{app}\PAL98CHS"; Flags: ignoreversion recursesubdirs createallsubdirs ; Components: a2;
Source: "F:\Games\PAL3CHS\*"; DestDir: "{app}\PAL3CHS"; Flags: ignoreversion recursesubdirs createallsubdirs ; Components: a3;
Source: "F:\Games\PAL3CHT\*"; DestDir: "{app}\PAL3CHT"; Flags: ignoreversion recursesubdirs createallsubdirs ; Components: a4;
Source: "F:\Games\PAL3ACHS\*"; DestDir: "{app}\PAL3ACHS"; Flags: ignoreversion recursesubdirs createallsubdirs ; Components: a5;
Source: "F:\Games\PAL3ACHT\*"; DestDir: "{app}\PAL3ACHT"; Flags: ignoreversion recursesubdirs createallsubdirs ; Components: a6;
Source: "F:\Games\NewPALCHS\*"; DestDir: "{app}\NewPALCHS"; Flags: ignoreversion recursesubdirs createallsubdirs ; Components: a7;
; 注意: 不要在任何共享的系统文件使用 "Flags: ignoreversion"
[Icons]
Name: "{group}\仙剑繁体DOS回合制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS回合制.exe"; Languages: english; Parameters:"-e" ;WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{group}\仙剑繁体DOS即时制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS即时制.exe"; Languages: english; Parameters:"-e" ;WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{group}\仙剑繁体DOS宽屏版"; Filename: "{app}\PALDOSCHT\Palx.exe"; Languages: english; Parameters:"-e" ;WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{group}\仙剑繁体DOS回合制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS回合制.exe"; Languages: chinesesimp;WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{group}\仙剑繁体DOS即时制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS即时制.exe"; Languages: chinesesimp;WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{group}\仙剑繁体DOS宽屏版"; Filename: "{app}\PALDOSCHT\Palx.exe"; Languages: chinesesimp;WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{group}\仙剑繁体DOS回合制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS回合制.exe"; Languages: chinesetrad;WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{group}\仙剑繁体DOS即时制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS即时制.exe"; Languages: chinesetrad;WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{group}\仙剑繁体DOS宽屏版"; Filename: "{app}\PALDOSCHT\Palx.exe"; Languages: chinesetrad;WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{group}\仙剑98简体SLPAL版"; Filename: "{app}\PAL98CHS\SLPAL-98柔情版.exe"; Languages: english; Parameters:"-e" ;WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{group}\仙剑98简体宽屏版"; Filename: "{app}\PAL98CHS\Palx.exe"; Languages: english; Parameters:"-e" ;WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{group}\仙剑98简体SLPAL版"; Filename: "{app}\PAL98CHS\SLPAL-98柔情版.exe"; Languages: chinesesimp;WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{group}\仙剑98简体宽屏版"; Filename: "{app}\PAL98CHS\Palx.exe"; Languages: chinesesimp;WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{group}\仙剑98简体SLPAL版"; Filename: "{app}\PAL98CHS\SLPAL-98柔情版.exe"; Languages: chinesetrad;WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{group}\仙剑98简体宽屏版"; Filename: "{app}\PAL98CHS\Palx.exe"; Languages: chinesetrad;WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{group}\仙剑3简体窗口和全屏版"; Filename: "{app}\PAL3CHS\PAL3.exe"; Languages: english; Parameters:"-e" ;WorkingDir: "{app}\PAL3CHS";Components:a3;
Name: "{group}\仙剑3简体窗口和全屏版"; Filename: "{app}\PAL3CHS\PAL3.exe"; Languages: chinesesimp;WorkingDir: "{app}\PAL3CHS";Components:a3;
Name: "{group}\仙剑3简体窗口和全屏版"; Filename: "{app}\PAL3CHS\PAL3.exe"; Languages: chinesetrad;WorkingDir: "{app}\PAL3CHS";Components:a3;
Name: "{group}\仙剑3繁体窗口和全屏版"; Filename: "{app}\PAL3CHT\PAL3.exe"; Languages: english; Parameters:"-e" ;WorkingDir: "{app}\PAL3CHT";Components:a4;
Name: "{group}\仙剑3繁体窗口和全屏版"; Filename: "{app}\PAL3CHT\PAL3.exe"; Languages: chinesesimp;WorkingDir: "{app}\PAL3CHT";Components:a4;
Name: "{group}\仙剑3繁体窗口和全屏版"; Filename: "{app}\PAL3CHT\PAL3.exe"; Languages: chinesetrad;WorkingDir: "{app}\PAL3CHT";Components:a4;
Name: "{group}\仙剑3外传简体窗口和全屏版"; Filename: "{app}\PAL3ACHS\PAL3A.exe"; Languages: english; Parameters:"-e" ;WorkingDir: "{app}\PAL3ACHS";Components:a5;
Name: "{group}\仙剑3外传简体窗口和全屏版"; Filename: "{app}\PAL3ACHS\PAL3A.exe"; Languages: chinesesimp;WorkingDir: "{app}\PAL3ACHS";Components:a5;
Name: "{group}\仙剑3外传简体窗口和全屏版"; Filename: "{app}\PAL3ACHS\PAL3A.exe"; Languages: chinesetrad;WorkingDir: "{app}\PAL3ACHS";Components:a5;
Name: "{group}\仙剑3外传繁体窗口和全屏版"; Filename: "{app}\PAL3ACHT\PAL3A.exe"; Languages: english; Parameters:"-e" ;WorkingDir: "{app}\PAL3ACHT";Components:a6;
Name: "{group}\仙剑3外传繁体窗口和全屏版"; Filename: "{app}\PAL3ACHT\PAL3A.exe"; Languages: chinesesimp;WorkingDir: "{app}\PAL3ACHT";Components:a6;
Name: "{group}\仙剑3外传繁体窗口和全屏版"; Filename: "{app}\PAL3ACHT\PAL3A.exe"; Languages: chinesetrad;WorkingDir: "{app}\PAL3ACHT";Components:a6;
Name: "{group}\新仙剑简体STEAM版"; Filename: "{app}\NewPALCHS\新仙剑简体STEAM版.exe"; Languages: english; Parameters:"-e" ;WorkingDir: "{app}";IconFilename: "{app}\NewPALCHS\NewPAL.ico";Components:a7;
Name: "{group}\新仙剑简体STEAM版"; Filename: "{app}\NewPALCHS\新仙剑简体STEAM版.exe"; Languages: chinesesimp;WorkingDir: "{app}";IconFilename: "{app}\NewPALCHS\NewPAL.ico";Components:a7;
Name: "{group}\新仙剑简体STEAM版"; Filename: "{app}\NewPALCHS\新仙剑简体STEAM版.exe"; Languages: chinesetrad;WorkingDir: "{app}";IconFilename: "{app}\NewPALCHS\NewPAL.ico";Components:a7;
Name: "{group}\{cm:UninstallProgram,仙剑1+3+外传+新仙窗口化版V1}"; Filename: "{uninstallexe}";WorkingDir: "{app}"
Name: "{commondesktop}\仙剑繁体DOS回合制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS回合制.exe"; Languages: english; Parameters:"-e" ; Tasks: desktopicon; WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{commondesktop}\仙剑繁体DOS即时制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS即时制.exe"; Languages: english; Parameters:"-e" ; Tasks: desktopicon; WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{commondesktop}\仙剑繁体DOS宽屏版"; Filename: "{app}\PALDOSCHT\Palx.exe"; Languages: english; Parameters:"-e" ; Tasks: desktopicon; WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{commondesktop}\仙剑繁体DOS回合制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS回合制.exe"; Languages: chinesesimp; Tasks: desktopicon; WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{commondesktop}\仙剑繁体DOS即时制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS即时制.exe"; Languages: chinesesimp; Tasks: desktopicon; WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{commondesktop}\仙剑繁体DOS宽屏版"; Filename: "{app}\PALDOSCHT\Palx.exe"; Languages: chinesesimp; Tasks: desktopicon; WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{commondesktop}\仙剑繁体DOS回合制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS回合制.exe"; Languages: chinesetrad; Tasks: desktopicon; WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{commondesktop}\仙剑繁体DOS即时制版"; Filename: "{app}\PALDOSCHT\SLPAL-DOS即时制.exe"; Languages: chinesetrad; Tasks: desktopicon; WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{commondesktop}\仙剑繁体DOS宽屏版"; Filename: "{app}\PALDOSCHT\Palx.exe"; Languages: chinesetrad; Tasks: desktopicon; WorkingDir: "{app}\PALDOSCHT";Components:a1;
Name: "{commondesktop}\仙剑98简体SLPAL版"; Filename: "{app}\PAL98CHS\SLPAL-98柔情版.exe"; Languages: english; Parameters:"-e" ; Tasks: desktopicon; WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{commondesktop}\仙剑98简体宽屏版"; Filename: "{app}\PAL98CHS\Palx.exe"; Languages: english; Parameters:"-e" ; Tasks: desktopicon; WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{commondesktop}\仙剑98简体SLPAL版"; Filename: "{app}\PAL98CHS\SLPAL-98柔情版.exe"; Languages: chinesesimp; Tasks: desktopicon; WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{commondesktop}\仙剑98简体宽屏版"; Filename: "{app}\PAL98CHS\Palx.exe"; Languages: chinesesimp; Tasks: desktopicon; WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{commondesktop}\仙剑98简体SLPAL版"; Filename: "{app}\PAL98CHS\SLPAL-98柔情版.exe"; Languages: chinesetrad; Tasks: desktopicon; WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{commondesktop}\仙剑98简体宽屏版"; Filename: "{app}\PAL98CHS\Palx.exe"; Languages: chinesetrad; Tasks: desktopicon; WorkingDir: "{app}\PAL98CHS";Components:a2;
Name: "{commondesktop}\仙剑3简体窗口和全屏版"; Filename: "{app}\PAL3CHS\PAL3.exe"; Languages: english; Parameters:"-e" ; Tasks: desktopicon; WorkingDir: "{app}\PAL3CHS";Components:a3;
Name: "{commondesktop}\仙剑3简体窗口和全屏版"; Filename: "{app}\PAL3CHS\PAL3.exe"; Languages: chinesesimp; Tasks: desktopicon; WorkingDir: "{app}\PAL3CHS";Components:a3;
Name: "{commondesktop}\仙剑3简体窗口和全屏版"; Filename: "{app}\PAL3CHS\PAL3.exe"; Languages: chinesetrad; Tasks: desktopicon; WorkingDir: "{app}\PAL3CHS";Components:a3;
Name: "{commondesktop}\仙剑3繁体窗口和全屏版"; Filename: "{app}\PAL3CHT\PAL3.exe"; Languages: english; Parameters:"-e" ; Tasks: desktopicon; WorkingDir: "{app}\PAL3CHT";Components:a4;
Name: "{commondesktop}\仙剑3繁体窗口和全屏版"; Filename: "{app}\PAL3CHT\PAL3.exe"; Languages: chinesesimp; Tasks: desktopicon; WorkingDir: "{app}\PAL3CHT";Components:a4;
Name: "{commondesktop}\仙剑3繁体窗口和全屏版"; Filename: "{app}\PAL3CHT\PAL3.exe"; Languages: chinesetrad; Tasks: desktopicon; WorkingDir: "{app}\PAL3CHT";Components:a4;
Name: "{commondesktop}\仙剑3外传简体窗口和全屏版"; Filename: "{app}\PAL3ACHS\PAL3A.exe"; Languages: english; Parameters:"-e" ; Tasks: desktopicon; WorkingDir: "{app}\PAL3ACHS";Components:a5;
Name: "{commondesktop}\仙剑3外传简体窗口和全屏版"; Filename: "{app}\PAL3ACHS\PAL3A.exe"; Languages: chinesesimp; Tasks: desktopicon; WorkingDir: "{app}\PAL3ACHS";Components:a5;
Name: "{commondesktop}\仙剑3外传简体窗口和全屏版"; Filename: "{app}\PAL3ACHS\PAL3A.exe"; Languages: chinesetrad; Tasks: desktopicon; WorkingDir: "{app}\PAL3ACHS";Components:a5;
Name: "{commondesktop}\仙剑3外传繁体窗口和全屏版"; Filename: "{app}\PAL3ACHT\PAL3A.exe"; Languages: english; Parameters:"-e" ; Tasks: desktopicon; WorkingDir: "{app}\PAL3ACHT";Components:a6;
Name: "{commondesktop}\仙剑3外传繁体窗口和全屏版"; Filename: "{app}\PAL3ACHT\PAL3A.exe"; Languages: chinesesimp; Tasks: desktopicon; WorkingDir: "{app}\PAL3ACHT";Components:a6;
Name: "{commondesktop}\仙剑3外传繁体窗口和全屏版"; Filename: "{app}\PAL3ACHT\PAL3A.exe"; Languages: chinesetrad; Tasks: desktopicon; WorkingDir: "{app}\PAL3ACHT";Components:a6;
Name: "{commondesktop}\新仙剑简体STEAM版"; Filename: "{app}\NewPALCHS\新仙剑简体STEAM版.exe"; Languages: english; Parameters:"-e" ; Tasks: desktopicon; WorkingDir: "{app}";IconFilename: "{app}\NewPALCHS\NewPAL.ico";Components:a7;
Name: "{commondesktop}\新仙剑简体STEAM版"; Filename: "{app}\NewPALCHS\新仙剑简体STEAM版.exe"; Languages: chinesesimp; Tasks: desktopicon; WorkingDir: "{app}";IconFilename: "{app}\NewPALCHS\NewPAL.ico";Components:a7;
Name: "{commondesktop}\新仙剑简体STEAM版"; Filename: "{app}\NewPALCHS\新仙剑简体STEAM版.exe"; Languages: chinesetrad; Tasks: desktopicon; WorkingDir: "{app}";IconFilename: "{app}\NewPALCHS\NewPAL.ico";Components:a7;
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent |
|