Menu

#1589 Register 7z.exe path during installation

open
nobody
None
5
2022-10-27
2022-10-27
No

The installer registers the path to 7zfm so that I can just type 7zfm in the Run box or use START /B "" 7zfm in a command prompt to launch the GUI. This is useful.

However, I would like to be able to launch 7z (the CLI) from the command line without needing to know its full path or asking the user to edit PATH. I tried START /WAIT /B "" 7z, but that gives me “The system cannot find the file 7z.”. If I manually add the key with something like REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\7z.exe" /ve /d "C:\Program Files\7-Zip\7z.exe" /f, that gets me what I want.

While I can do this myself, I would prefer to tell people “go install the latest 7-zip” instead of “install the latest 7-zip and run this weird command”.

Thanks much for your consideration!

Please let me know if it would be appropriate for me to contribute a patch for this!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.