ModernUI and .onVerifyInstDir
I recently updated to the newer NSIS2 and converted one of my old scripts for the same task. Thought I'd put a bit of n00b control back in aswell by verifying that they at least have the game installed for the patch. It tells me it's the wrong dir good, when I click browse, it decides to tell me another 6 times before letting me select a different directory.
I'm using ModernUI (As the topic says)
Here's the function as it is now:
Function .onVerifyInstDir
IfFileExists $INSTDIR\data.grf finenorm oops
oops:
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST "You don't have Ragnarok Online Installed in the Directory selected."
Abort
finenorm:
IfFileExists $INSTDIR\sdata.grf carryon nosak
nosak:
MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST "You don't have Sakray Installed. Make sure It's installed into your Ragnarok Online Directory before patching."
Abort
carryon:
FunctionEnd
Is there anoy sort of workaround? Or another function to use?