This is a long-standing problem that needs to be fixed.

WSJT-X should use a default path that includes the version#.  

That will provide two things

#1 Very easy for user to start whichever version they want
#2 Avoid duplicate program entries

This patch makes the default install directory match the WSJT-X version.

diff --git a/CMakeCPackOptions.cmake.in b/CMakeCPackOptions.cmake.in
index eceae4edf..ae1c70900 100644
--- a/CMakeCPackOptions.cmake.in
+++ b/CMakeCPackOptions.cmake.in
@@ -5,7 +5,8 @@
 set (CPACK_PACKAGE_VENDOR "@PROJECT_VENDOR@")
 set (CPACK_PACKAGE_CONTACT "@PROJECT_CONTACT@")
 set (CPACK_RESOURCE_FILE_LICENSE "@PROJECT_SOURCE_DIR@/COPYING")
-set (CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
+#set (CPACK_PACKAGE_INSTALL_DIRECTORY 
${CPACK_PACKAGE_NAME}$NAME{CPACK_PACKAGE_VERSION_PATCH})
+set (CPACK_PACKAGE_INSTALL_DIRECTORY 
"@CPACK_PACKAGE_NAME@-PACK_PACKAGE_VERSION_MAJOR@.@CPACK_PACKAGE_VERSION_MINOR@.@CPACK_PACKAGE_VERSION_PATCH@")
 set (CPACK_PACKAGE_EXECUTABLES wsjtx "@PROJECT_NAME@")
 set (CPACK_CREATE_DESKTOP_LINKS wsjtx)
 set (CPACK_STRIP_FILES TRUE)


Mike W9MDB






On Monday, January 10, 2022, 12:57:41 AM CST, Dave Fitches via wsjt-devel 
<[email protected]> wrote: 









Hi folks, 

Firstly - awesome work with the program to everyone involved (past and 
present!) 

Just one nit-picky thing... 
When we have a new version come out, and I install it, it creates a brand new 
Start Menu folder for the new version. 

So I now have in my Start Menu: 
    wsjtx 2.40 
    wsjtx 2.50 
    wsjtx 2.52 
    wsjtx 2.54 

Likewise in my installed programs listing in "Add/Remove Programs" I have all 4 
versions of the software listed. And given the program installs to the same 
location every time it installs, if I remove the old versions of the software, 
it causes no end of problems. 

To remove the old versions I have to remove the oldest. Then because all the 
files are gone, to remove the next oldest I have to re-install the new version. 
THEN remove the next oldest. ...rinse and repeat. 

To my mind - it should be working thus: 

* If you're installing over an existing version in the SAME INSTALL DIRECTORY 
(Default behaviour), then it should update the existing package and update the 
version number in the Installed Programs list to prevent duplicate listings of 
the same install location, and either use a Common Name for the Start Menu 
folder, or remove the OLD Start Menu folder for the previous version number and 
add the NEW version into Start Menu. 

* If you're installing to a brand new directory and there's an existing copy 
installed elsewhere, leave the existing stuff alone because some people might 
want to run an old version and a new version, so list them seperately. 

I admit - I have ZERO programming chops to do any of these things myself, but I 
can make constructive suggestions for future releases!  

Again - I wish to say I am in awe of the software as it stands! These points 
above are piddling things, especially when compared to the joy this program 
brings to a new Ham Operator working off a compromised antenna using QRP, and 
is still able to make DX contacts despite that! If there was a "Donate here to 
support this software" link - I'd be doing it! 

Thanks and 73 

de VK3DVF 


-- 


  = Dave 'Rusti' Fitches = 

________________________________________________________ 
 ,--__|\    Dave 'Rusti' Fitches 
/       \   VK3DVF 
\_,--\_x/   * Mobile : +61-419-466-744 
       v    * E-mail : [email protected] 
              Melbourne, Victoria, Australia 
_______________________________________________________ 
Please Note: Unless this e-mail has been sent as PRIVATE, PERSONAL or 
CONFIDENTIAL, the receiver may forward copies of it on the condition 
that they send an advisory message to the original sender. 
If however the message has been marked PRIVATE, PERSONAL or CONFIDENTIAL 
prior consent MUST be obtained before the message can be forwarded. 




_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel


_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to