1
Section userSoftware

MessageBox MB_YESNO|MB_ICONQUESTION  "Insert user software DVD in to drive and click  Yes to install User Software or click No to Proceed" /SD IDNO IDYES yes IDNO no
    yes:
        AutoCloseWindow true 
        SetRebootFlag false 
        Call installUserSoftware
    no: 
        ;do nothing
SectionEnd

Section: "userSoftware" Error: command AutoCloseWindow not valid in Section

This is the error I am getting with AutoCloseWindow. All I am trying to do is after installing the server software if user selects to install Client software, installation of server software should disappear without asking user to hit finish button.

Code I gave I am just testing how AutoCloseWindow or SetAutoClose works, nut all I have is an error!!

4

1 に答える 1

2

AutoCloseWindow is a property like Name and Installdir and must be placed outside functions and sections. If you want to set the autoclose flag at runtime you must use the SetAutoClose command...

于 2012-09-14T22:03:18.377 に答える