Execute MSICode between dialogs
Posted: Thu Aug 05, 2010 3:02 am
Hello,
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:
Not even the message box that should output the value of the variable shows up. How can I achieve my goal?
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:
Code: Select all
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)