2016-06-12 13 views
6

Inno Setupを使用してインストーラを作成しようとしています。ようこそページが表示されず、SelectDirページが最初に表示されます

そして、最初に[ようこそ]ページを表示してから、[SelectDir]を表示します。

これはCurPageChangedサンプルコードです:

procedure CurPageChanged(CurPageID: integer); 
begin 
    if CurPageID = wpWelcome then 
    begin 
    HideComponents; 
    WLabel.show; 
    WizardForm.NextButton.Show; 
    WizardForm.NextButton.Caption := 'Configure'; 
    end; 

    if CurPageID = wpSelectDir then 
    begin 
    HideComponents; 

    BmpFile.Bitmap.LoadFromFile(ExpandConstant('{tmp}\2.bmp')); 
    WizardForm.DirEdit.Show; 
    WizardForm.NextButton.Show; 
    WizardForm.NextButton.Caption := 'Install'; 
    WizardForm.DirBrowseButton.Show; 
    TasksSeparateBevel.Show; 
    TasksSeparateBevel2.Show; 
    InstallpathLabel.Show; 
    DiskSpaceLablel.Show; 
    ShortcutLabel.Show; 
    ShortcutCB.Show; 
    CreateDLabel.Show; 
    end; 

    if CurPageID = wpInstalling then 
    begin 
    HideComponents; 

    MakeSlideShow; 
    TimerID := SetTimer(0, 0, 10000, WrapTimerProc(@OnTimer, 4)); 

    WizardForm.CancelButton.show; 
    WizardForm.ProgressGauge.show; 
    end; 
end; 

しかしSelectDirは、まずインストールを示しています。ウェルカムページは表示されません!

答えて

12

WelcomeページがデフォルトではInno Setup 5.5.7ので、スキップ:

、Microsoftのデスクトップアプリケーションのガイドラインで推奨されているように、yesからDisableWelcomePage今デフォルトは。 ...以前のすべてのバージョンのデフォルト値はnoでした。

それを表示するには、設定する必要があります。ヘルプについては

[Setup] 
DisableWelcomePage=no 
+0

ありがとう:Dを –

関連する問題