sam
sam

Reputation: 197

command AutoCloseWindow not valid in Section

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!!

Upvotes: 1

Views: 1186

Answers (1)

Anders
Anders

Reputation: 101736

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...

Upvotes: 2

Related Questions