Close page window automaticly and safely?
Var AlreadySetup
Var Modify
!macro MAINTENANCE
page custom ModifyShow ModifyLeave
!macroend
!insertmacro MAINTENANCE //my own macro
!insertmacro MUI_PAGE_WELCOME
Function .onInit
...
IfFileExists "$INSTDIR\myApplication.exe" 0 +3
StrCpy $AlreadySetup 1
goto End
...
End:
FunctionEnd
Function ModifyShow
${If} $AlreadySetup == 1
InstallOptions::initDialog /NOUNLOAD "$R0\modify.ini"
InstallOptions::show
${EndIf}
FunctionEnd
Function ModifyLeave
ReadINIStr $Modify "$R0\modify.ini" "Field 2" "State"
${If} $Modify == 0
ExecShell "open" "$INSTDIR\uninst.exe"
************************************************
my problem is at here?????????
************************************************
${Else}
Call RunOrNot //call my own function
${EndIf}
FunctionEnd
----------------------------------------------------------
How to realize the following purpose?
-After it executed [ExecShell...] ,I want that the custom page window can close automaticly and safely.Then the setup is finished at here.
----------------------------------------------------------
Thanks very much for help!!!:up: :up: :up: :up: