bigbigmdm / IMSProg

IMSProg - software for CH341A-based programmers to work with I2C, SPI and MicroWire EEPROM/Flash chips
https://antenna-dvb-t2.ru/IMSProg.php
GNU General Public License v3.0
196 stars 34 forks source link

Uninstall script missing? #64

Closed ziltoid-linux closed 5 months ago

ziltoid-linux commented 5 months ago

Hello, newbie here.

How should I uninstall the program? I didn't find any script so I tried with sudo make uninstall but I received the error message make: *** No rule to make target 'uninstall'. Stop..

To install the program I unpacked the tar.gz and run build_all.sh.

bigbigmdm commented 5 months ago

I didn't write the deletion script. If you are using a .deb package, all files can be deleted automatically. build_sh is only installing script. Please see the project structure and remove all files: sudo rm -rf /usr/bin/IMSProg sudo rm -rf /usr/bin/IMSProg_editor sudo rm -rf /usr/bin/IMSProg_database_update sudo rm -rf /usr/share/imsprog sudo rm -rf /usr/share/applications/IMSProg.desktop sudo rm -rf /usr/share/applications/IMSProg_editor.desktop sudo rm -rf /usr/share/applications/IMSProg_database_update.desktop sudo rm -rf /usr/share/man/man1/IMSProg_editor.1.gz
sudo rm -rf /usr/share/man/man1/IMSProg.1.gz sudo rm -rf /usr/share/man/man1/IMSProg_database_update.1.gz sudo rm -rf /usr/share/pixmaps/IMSProg64.png sudo rm -rf /usr/share/pixmaps/IMSProg_database_update.png sudo rm -rf /usr/share/pixmaps/chipEdit64.png

Fantu commented 5 months ago

CMake don't provide uninstall but can be added, I did a basic one for example for another project (based on other): https://github.com/veeam/blksnap/commit/f4b6f0c7a33dcdba287448d979ce6caa4adebe82 (see CMakeLists.txt and cmake/cmake_uninstall.cmake.in) About install for users I recommend using packages if possible.

ziltoid-linux commented 5 months ago

I understand, thank you for the fast reply.