No need to write PIF files to windows directory

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
buzzlightyear
Junior Member
Junior Member
Posts: 42
Joined: 2004-10-01, 10:46 UTC

No need to write PIF files to windows directory

Post by *buzzlightyear »

During installation of TC, five PIF files are copied to the Windows directory. I often asked myself what this might be good for until I found this hint in KEYBOARD.TXT:

Code: Select all

SHIFT-ENTER	Like ENTER, but with preceding command /c. After the called DOS program is terminated, its window is not automatically closed. This will only work if the file noclose.pif is in your windows directory.
Christian, why do you not simply change cmd /c to cmd /k in your code? That will have the same effect and work for non-admin rights installations, too. No need to copy clumsy PIF files to %windir%.
User avatar
MaxX
Power Member
Power Member
Posts: 1189
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

Agree!
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7014
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

You are talking about old versions of TC.
Actual version does not contain or install noclose.pif

Time to update :D
User avatar
MaxX
Power Member
Power Member
Posts: 1189
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2Horst.Epp
tcm801x32_rc2.exe DOES contain files:

ARJ.PIF
LHA.PIF
PKUNZIP.PIF
PKZIP.PIF
RAR.PIF
UC.PIF
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7014
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

MaxX wrote:2Horst.Epp
tcm801x32_rc2.exe DOES contain files:

ARJ.PIF
LHA.PIF
PKUNZIP.PIF
PKZIP.PIF
RAR.PIF
UC.PIF
None of this files are installed for me !
I use the the combind 32bit/x64 TC 8.01 RC2 installer under Windows 7 x64
There are noclose.exe and noclosex64.exe in TC dir.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

These PIF files are for using external command line packers defined via Configuration - Options - Packer. They are only installed by the 32-bit only installer, because 16-bit programs do not run at all on 64-bit Windows.
Author of Total Commander
https://www.ghisler.com
User avatar
MaxX
Power Member
Power Member
Posts: 1189
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2ghisler(Author)
I have all the packers in 32-bit only (except UC2) and use TC 8.0.
So, can I just delete PIFs from my system?
(I don't use UC2, so there must be no problems with it).
User avatar
buzzlightyear
Junior Member
Junior Member
Posts: 42
Joined: 2004-10-01, 10:46 UTC

Post by *buzzlightyear »

ghisler(Author) wrote:These PIF files are for using external command line packers defined via Configuration - Options - Packer. They are only installed by the 32-bit only installer, because 16-bit programs do not run at all on 64-bit Windows.
Do I understand you right that the x86 version tcm80x32.exe installs 16-bit programs on the user's computer (as of 2012 - 16+ years after the first 32-bit Windows was released)?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, it does not install any 16-bit programs. It only installs the PIF files (Program Information File). These have the option set to close the command window when the program has ended. If TC didn't install them, the _default.pif would be used, which is set to keep the window open. This would be very inconvenient when using external packers like arj.exe.
Author of Total Commander
https://www.ghisler.com
Post Reply