Commit ff11488c6a9d60f757b27018b0d7050bb943fa2b
1 parent
165416ff
Exists in
master
and in
2 other branches
Testing if the app is already installed on windows package.
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
win/pw3270.nsi.in
... | ... | @@ -387,6 +387,13 @@ SectionEnd |
387 | 387 | |
388 | 388 | Function .onInit |
389 | 389 | |
390 | + #---[ Check if already installed ]-------------------------------------------------------------------- | |
391 | + | |
392 | + ${If} ${FileExists} "$INSTDIR\@PRODUCT_NAME@.exe" | |
393 | + MessageBox MB_OK|MB_ICONEXCLAMATION "@PRODUCT_NAME@ is already installed. Please uninstall it first" /SD IDOK | |
394 | + Abort | |
395 | + ${EndIf} | |
396 | + | |
390 | 397 | #---[ Check SDK Command line option ]----------------------------------------------------------------- |
391 | 398 | |
392 | 399 | !ifdef WITHSDK | ... | ... |