为啥打包鹿鼎记2 在WIN764安装没有创建桌面快捷方式选项,在XP系统有创建桌面快捷方式选项这是为啥原因?谢谢。
截图
; 脚本由 Inno Setup 脚本向导 生成!
; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档!
#define MyAppName "鹿鼎记2窗口化MP3音乐简体中文硬盘版"
#define MyAppVersion "V5"
#define MyAppPublisher "我的公司"
#define MyAppExeName "鹿鼎记2音乐播放.exe"
[Setup]
; 注: AppId的值为单独标识该应用程序。
; 不要为其他安装程序使用相同的AppId值。
; (生成新的GUID,点击 工具|在IDE中生成GUID。)
AppId={{FD7B576C-897B-40FD-8DFC-310D79B8C4A2}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName=C:\SW_LD2
DefaultGroupName=鹿鼎记2窗口化MP3音乐简体中文硬盘版V5
InfoBeforeFile=E:\SW_LD2\鹿鼎记2窗口化MP3音乐简体中文硬盘版V5说明.txt
OutputDir=E:\115Download
OutputBaseFilename=鹿鼎记2窗口化MP3音乐简体中文硬盘版V5
SetupIconFile=E:\SW_LD2\ICO_1.ico
Compression=lzma2/ultra64
SolidCompression=yes
VersionInfoDescription=鹿鼎记2窗口化MP3音乐简体中文硬盘版V5
VersionInfoVersion=1.0
VersionInfoTextVersion=1.0.0.0
[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
[Files]
; Add the ISSkin DLL used for skinning Inno Setup installations.
Source:C:\Program Files\Inno Setup 5\Addin\IsSkin.dll; DestDir: {app}; Flags: dontcopy
; Add the Visual Style resource contains resources used for skinning,
; you can also use Microsoft Visual Styles (*.msstyles) resources.
Source:C:\Program Files\Inno Setup 5\IsSkins\Tech45.cjstyles; DestDir: {tmp}; Flags: dontcopy
Source: "E:\SW_LD2\鹿鼎记2音乐播放.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\SW_LD2\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion”
[Icons]
Name: "{group}\鹿鼎记2简体版音乐播放"; Filename: "{app}\鹿鼎记2音乐播放.exe";WorkingDir: "{app}"
Name: "{group}\鹿鼎记2简体窗口化工具"; Filename: "{app}\v2_03_70_build\dxwnd_CHS.exe";WorkingDir: "{app}\v2_03_70_build"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\鹿鼎记2简体版音乐播放"; Filename: "{app}\鹿鼎记2音乐播放.exe"; Tasks: desktopicon; WorkingDir: "{app}"
Name: "{commondesktop}\鹿鼎记2简体窗口化工具"; Filename: "{app}\v2_03_70_build\dxwnd_CHS.exe"; Tasks: desktopicon; WorkingDir: "{app}\v2_03_70_build"
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[Code]
procedure InitializeWizard();
begin
//改变欢迎页面文字的颜色
WizardForm.WelcomeLabel1.Font.Color:= clred;
WizardForm.WelcomeLabel2.Font.Color:= clGreen;
//改变其他页面文字的颜色
WizardForm.PageNameLabel.Font.Color:= clred;
WizardForm.PageDescriptionLabel.Font.Color:= clBlue;
end;
// Importing LoadSkin API from ISSkin.DLL
procedure LoadSkin(lpszPath: String; lpszIniFileName: String);
external 'LoadSkin@files:isskin.dll stdcall';
// Importing UnloadSkin API from ISSkin.DLL
procedure UnloadSkin();
external 'UnloadSkin@files:isskin.dll stdcall';
// Importing ShowWindow Windows API from User32.DLL
function ShowWindow(hWnd: Integer; uType: Integer): Integer;
external 'ShowWindow@user32.dll stdcall';
function InitializeSetup(): Boolean;
begin
ExtractTemporaryFile('Tech45.cjstyles');
LoadSkin(ExpandConstant('{tmp}\Tech45.cjstyles'), '');
Result := True;
end;
procedure DeinitializeSetup();
begin
// Hide Window before unloading skin so user does not get
// a glimse of an unskinned window before it is closed.
ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0);
UnloadSkin();
end;
截图
; 脚本由 Inno Setup 脚本向导 生成!
; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档!
#define MyAppName "鹿鼎记2窗口化MP3音乐简体中文硬盘版"
#define MyAppVersion "V5"
#define MyAppPublisher "我的公司"
#define MyAppExeName "鹿鼎记2音乐播放.exe"
[Setup]
; 注: AppId的值为单独标识该应用程序。
; 不要为其他安装程序使用相同的AppId值。
; (生成新的GUID,点击 工具|在IDE中生成GUID。)
AppId={{FD7B576C-897B-40FD-8DFC-310D79B8C4A2}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName=C:\SW_LD2
DefaultGroupName=鹿鼎记2窗口化MP3音乐简体中文硬盘版V5
InfoBeforeFile=E:\SW_LD2\鹿鼎记2窗口化MP3音乐简体中文硬盘版V5说明.txt
OutputDir=E:\115Download
OutputBaseFilename=鹿鼎记2窗口化MP3音乐简体中文硬盘版V5
SetupIconFile=E:\SW_LD2\ICO_1.ico
Compression=lzma2/ultra64
SolidCompression=yes
VersionInfoDescription=鹿鼎记2窗口化MP3音乐简体中文硬盘版V5
VersionInfoVersion=1.0
VersionInfoTextVersion=1.0.0.0
[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
[Files]
; Add the ISSkin DLL used for skinning Inno Setup installations.
Source:C:\Program Files\Inno Setup 5\Addin\IsSkin.dll; DestDir: {app}; Flags: dontcopy
; Add the Visual Style resource contains resources used for skinning,
; you can also use Microsoft Visual Styles (*.msstyles) resources.
Source:C:\Program Files\Inno Setup 5\IsSkins\Tech45.cjstyles; DestDir: {tmp}; Flags: dontcopy
Source: "E:\SW_LD2\鹿鼎记2音乐播放.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\SW_LD2\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion”
[Icons]
Name: "{group}\鹿鼎记2简体版音乐播放"; Filename: "{app}\鹿鼎记2音乐播放.exe";WorkingDir: "{app}"
Name: "{group}\鹿鼎记2简体窗口化工具"; Filename: "{app}\v2_03_70_build\dxwnd_CHS.exe";WorkingDir: "{app}\v2_03_70_build"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\鹿鼎记2简体版音乐播放"; Filename: "{app}\鹿鼎记2音乐播放.exe"; Tasks: desktopicon; WorkingDir: "{app}"
Name: "{commondesktop}\鹿鼎记2简体窗口化工具"; Filename: "{app}\v2_03_70_build\dxwnd_CHS.exe"; Tasks: desktopicon; WorkingDir: "{app}\v2_03_70_build"
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[Code]
procedure InitializeWizard();
begin
//改变欢迎页面文字的颜色
WizardForm.WelcomeLabel1.Font.Color:= clred;
WizardForm.WelcomeLabel2.Font.Color:= clGreen;
//改变其他页面文字的颜色
WizardForm.PageNameLabel.Font.Color:= clred;
WizardForm.PageDescriptionLabel.Font.Color:= clBlue;
end;
// Importing LoadSkin API from ISSkin.DLL
procedure LoadSkin(lpszPath: String; lpszIniFileName: String);
external 'LoadSkin@files:isskin.dll stdcall';
// Importing UnloadSkin API from ISSkin.DLL
procedure UnloadSkin();
external 'UnloadSkin@files:isskin.dll stdcall';
// Importing ShowWindow Windows API from User32.DLL
function ShowWindow(hWnd: Integer; uType: Integer): Integer;
external 'ShowWindow@user32.dll stdcall';
function InitializeSetup(): Boolean;
begin
ExtractTemporaryFile('Tech45.cjstyles');
LoadSkin(ExpandConstant('{tmp}\Tech45.cjstyles'), '');
Result := True;
end;
procedure DeinitializeSetup();
begin
// Hide Window before unloading skin so user does not get
// a glimse of an unskinned window before it is closed.
ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0);
UnloadSkin();
end;