I wrote NSIS script for installing some MSI (MicroSoft Installer) files. I can't decompile it, because files have signature.
All files required serial numbers for installing.
script:
I can return, using that method http://nsis.sourceforge.net/Go_to_a_NSIS_page
!include "nsDialogs.nsh"
....
!include "MUI2.nsh"
....
Page Custom GetSN
!insertmacro MUI_PAGE_INSTFILES
...
Var HWNDGetSN
Function GetSN
nsDialogs::Create 1018
Pop $HWNDGetSN
... ; fields for SerialNumbers
nsDialogs::Show
FunctionEnd
...
Section ... ; install section
ExecWait 'MsiExec /i "1.msi" PIDKEY=$SN1' $0
StrCmp $0 "1603" is1603 ; check return code.
is1603: ... ; How i can return to GetSN page? And after correct SN retry Install files.
ExecWait 'MsiExec /i "2.msi" PIDKEY=$SN2' $0
... ; check return code. How i can return to GetSN page?
ExecWait 'MsiExec /i "3.msi" PIDKEY=$SN3' $0
... ; check return code. How i can return to GetSN page?
SectionEnd
but if I push Install button again... NSIS script don't clear status for installfiles page.