inno静默+开始菜单

静默开始菜单创建文件夹

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
; 脚本由 Inno Setup 脚本向导 生成
; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档

#define MyAppName "NGO_Onekey"
#define MyAppVersion "1.0"
#define MyAppPublisher "neusoft"
#define MyAppURL "http://www.neusoft.com/"
#define MyAppExeName "wgetX86.exe"

[Setup]
; : AppId的值为单独标识该应用程序
; 不要为其他安装程序使用相同的AppId值
; (生成新的GUID点击 工具|在IDE中生成GUID)
AppId={{9FDCB748-E3F7-4EF1-9497-FF277D262C1E}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName=C:\{#MyAppName}
DisableDirPage=yes
DefaultGroupName=无纸化一键安装
DisableProgramGroupPage=yes
OutputDir=C:\Documents and Settings\Administrator\桌面
OutputBaseFilename=NGO_Onekey
Compression=lzma
SolidCompression=yes

[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"

[code]
procedure InitializeWizard();
begin
WizardForm.BorderStyle:=bsNone;
end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
    Result := True
end;
procedure CurPageChanged(CurPageID: Integer);
var
indexpageid3:Integer;
begin
    WizardForm.ClientWidth := ScaleX(0);
    WizardForm.ClientHeight := ScaleY(0);
    if CurPageID = wpWelcome then
    WizardForm.NextButton.OnClick(WizardForm);
    if CurPageID >= wpInstalling then
            WizardForm.Visible := False
        else
            WizardForm.Visible := True;    
end;



[Files]
Source: "C:\Documents and Settings\Administrator\桌面\NGO_Onekey\wgetX86.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Documents and Settings\Administrator\桌面\NGO_Onekey\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; 注意: 不要在任何共享系统文件上使用Flags: ignoreversion

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent