after the user has entered the install path I want to check if a specific file exists within that path and if not terminate the installation. My problem is that it seems like the MSICode within the dialog loop doesn't execute. Here is the snippet:
Display Dialog: destination, wait for dialog to return (modal)
Does File Exist $TARGETDIR$\bin\Gops20.exe (get result into variable GOPS20EXEEXISTS)
MessageBox: , $GOPS20EXEEXISTS$
if Variable GOPS20EXEEXISTS not Equals TRUE
MessageBox: Fehler, Um das Setup auszuführen, muss zuerst GOPS2 installiert werden.
Terminate Installation
end
Comment: Display Dialog: startmenu, wait for dialog to return (modal)
[compiler end]
Display Dialog: startinstallation, wait for dialog to return (modal)
Not even the message box that should output the value of the variable shows up. How can I achieve my goal?
All dialogs appear as they should but the code in between the 'Display Dialog' commands doesn't seem to execute.
EDIT: I think I've found the cause of the problem. From the help: The wizard loop may only contain Display Dialog commands inside it and must be closed with an End command.
So how can I execute something after the user has specified a target directory?