# HG changeset patch # User John D # Date 1480617849 18000 # Node ID ee1ae5d1fd88711984001f8f4e41252c005e0434 # Parent 7f2d5c8c44919c69aa0b48b18a503bf0931eb50e installer: dont remove file association if is not for installed octave * tools/makeinst-script.sh.in: check .m file association and remove only if is same as installer set. diff -r 7f2d5c8c4491 -r ee1ae5d1fd88 tools/makeinst-script.sh.in --- a/tools/makeinst-script.sh.in Thu Dec 01 13:44:05 2016 -0500 +++ b/tools/makeinst-script.sh.in Thu Dec 01 13:44:09 2016 -0500 @@ -359,6 +359,10 @@ ReadRegDWORD \$0 HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Octave-$VERSION" "RegisteredFileType" IfErrors not_registered_file + ; only try remove if is set to our version of octave + ReadRegStr \$0 HKCR ".m" "" + StrCmp \$0 "Octave.Document.$VERSION" 0 not_registered_file + ReadRegStr \$0 HKCR ".m" "backup_val" IfErrors not_backup_file