Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recommended way to download JP Software installers from a TCC script

Apr
325
7
I am writing a BTM script that downloads the JP Software installers for a selected major version, for example:


<span>https://jpsoft.com/downloads/v36/tcmd.exe<br>https://jpsoft.com/downloads/v36/tcc.exe<br>https://jpsoft.com/downloads/v36/tcc-rt.exe</span>

The intention is to download the files unattended to explicitly chosen filenames and directories, without depending on an already configured web browser.

Using the browser works, but that is not a satisfactory scripting solution. The browser manages the download asynchronously, may rename files to tcc(1).exe, tcc-rt(2).exe, and so on, and the BTM script cannot reliably determine which file belongs to which request.

I tried using Windows curl.exe, but on this machine the HTTPS connection fails with:
<span>curl: (35) schannel: next InitializeSecurityContext failed:<br>CRYPT_E_REVOCATION_OFFLINE (0x80092013)<br>The revocation function was unable to check revocation because<br>the revocation server was offline.</span>

The options --ssl-revoke-best-effort and --ssl-no-revoke did not produce a working download.
I also considered FTP or FTPS, but I do not know whether JP Software still provides a public FTP server. I vaguely remember that FTP access may have been disabled following a security incident several years ago.


My questions are:


  1. What is the officially recommended way to download the JP Software installers from a TCC/BTM script?
  2. Should TCC’s internal COPY command be able to download these HTTPS URLs directly?

    For example:



    <span>copy "https://jpsoft.com/downloads/v36/tcc-rt.exe" "D:\Install\tcc-rt.exe"</span>

  3. If this should work, are there any required options or relevant INI settings for HTTPS, TLS, certificate validation, proxies, or certificate revocation checking?
  4. Does TCC use Windows Schannel for HTTPS connections, and can it handle the case where a certificate revocation server is temporarily unreachable without disabling normal certificate validation?
  5. Does JP Software currently provide FTP or FTPS access to the installer files? If so, what server, protocol, port, and path should be used?
  6. Is there a machine-readable download page, manifest, API, or other supported method for determining:



    <span>current major version<br>available products<br>exact download URLs<br>file sizes<br>checksums</span>

  7. Are the download URLs and filenames considered stable enough to use in an automated script?

My goal is not to work around browser or certificate security. I am looking for a clean, supported and deterministic method that allows a BTM script to download the installers, detect success or failure, and know the exact resulting filename.

At present the only method that actually downloads the files is opening the HTTPS links in the default browser, but that leaves the BTM script trying to observe an asynchronous process that it does not control.

I am using TCC version 36 on Windows 11.


Thanks for any guidance or a small working example.
 
Here is the batch file I use to update to the latest TCMD from JPSoft;

Code:
@SETLOCAL
@ECHO OFF
cdd r:\
:: https://charlesdye.net/plugins/acquire.html
acquire /g https://jpsoft.com/downloads/v36/tcmd.exe r:\tcmd.exe 
iff exist tcmd.exe then
  echo TCMD.EXE: %@verinfo[tcmd.exe]
  echo TCC.EXE : %@verinfo["%_cmdspec"]
  iff %@verinfo[tcmd.exe] eq %@verinfo["%_cmdspec"] then
    echo No need to update to latest version.
    quit
  endiff
endiff
pause About to update TCC...
taskend /f everything*
shralias /u
taskend /f tcedit*
if exist r:\tcmd.exe defer r:\tcmd.exe
exit
ENDLOCAL

This is a library function to determine if I need to update TCMD;

Code:
utils.library$aiu {

@SETLOCAL
@ECHO OFF

echo Getting File info for https://jpsoft.com/downloads/v%_vermajor/TCMD.EXE
::copy /q https://jpsoft.com/downloads/v33/tcmdupdate.aiu %temp
::As of 2024/10/09 returns TCC: HTTP protocol error. 403 Forbidden. "https://jpsoft.com/downloads/v%_vermajor/tcmdupdate.aiu"
::Switched to curl.exe instead of copy.
curl.exe -s -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0" -O https://jpsoft.com/downloads/v%_vermajor/tcmdupdate.aiu
if exist tcmdupdate.aiu move /q tcmdupdate.aiu %temp
iff exist %temp\tcmdupdate.aiu then
  echo Name           : %@iniread[%temp\tcmdupdate.aiu,Update,Name]
  iff %@iniread[%temp\tcmdupdate.aiu,Update,ProductVersion] eq %_4ver.%_build then
    echo Product Version: %@iniread[%temp\tcmdupdate.aiu,Update,ProductVersion]
  else
    set _Inverse=`^e[7m`
    set _Reset=`^e[0m`
    echo Product Version: %_Inverse``%@iniread[%temp\tcmdupdate.aiu,Update,ProductVersion]``%_Reset
    color bright green on black
  endiff
  echo Release Date   : %@iniread[%temp\tcmdupdate.aiu,Update,ReleaseDate]
  echo Installed Vers : %_4ver.%_build
else
  echo %temp\tcmdupdate.aiu does not exist.
endiff
ENDLOCAL
:: aiu
}

This should answer some of your questions.

Joe
 
COPY works fine. I have no internet settings.

Code:
v:\> copy https://jpsoft.com/downloads/v36/tcmd.exe
https://jpsoft.com/downloads/v36/tcmd.exe => V:\tcmd.exe
     1 file copied

v:\> d tcmd.exe
2026-07-14  08:02      60,434,840  tcmd.exe
 
  1. What is the officially recommended way to download the JP Software installers from a TCC/BTM script?
  2. Should TCC’s internal COPY command be able to download these HTTPS URLs directly?

1. The only officially recommended / supported way to download the installers is with the updater. There are other ways of downloading the installers, but you're on your own.

2. Yes.
 
Back
Top