Welcome!

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

SignUp Now!

Done ability to install with winget?

Jul
280
7
I'm trying to automate my environments as much as possible — including the automation of rolling out common programs I use.

Is there a winget command to install TCC?
 
I'm still waiting for the PSHELL command to work from TCC in Windows Sandbox.

Does this have something to do with the auto-install?

Not sure.

Other than that, TCC works as it should in Windows Sandbox.

Ref: TCMD31 in Windows 10 Sandbox

Joe
 
I have two people above saying it's possible, but neither have provided an example invocation that works.

While I appreciate claims that an answer to my problem exists, I'm actually looking for the actual answer, and the above claims don't actually bring me any closer to it

i.e. what is the msiexec command? how is it installed in sandbox?

I'm looking for a command that downloads it and installs it, like winget. Maybe that part wasn't clear.
 
From a TCC prompt, copy the install file from the JPSoft web site;
Code:
copy https://jpsoft.com/downloads/v32/tcmd.exe

NOTE: This will change with each version of tcmd.exe

To install TCMD silently,
Code:
tcmd.exe /qn

Joe
 
Here's a winget btm script (beta) to download Take Command and install silently.
Code:
@SETLOCAL
@ECHO OFF
::    File: winget.btm
:: Created: 2024-09-09
::   _4ver: 32.10
:: _winver: 10.0
iff %_x64 eq 1 then
    iff %_admin eq 1 then
        iff %_elevated eq 1 then
        :: NEXT SENTENCE
    else
        echo Note that this .BTM was tested on a 64-bit version of Windows,
        echo as Administrator,
        echo from an elevated process.
        echo.
        echo You are running the following;
        echo      _x64: 1
        echo    _admin: 1
        echo _elevated: 1
        pause
        endiff
    endiff
endiff

:: Drive R:\ is a 2GB RAMDrive
if isdir r:\temp set temp=r:\temp

iff %1 eq edit then
    tcedit %_batchname
    quit
endiff

iff %1 eq view then
view %_batchname
    quit
endiff

set Show=N
set Source=https://jpsoft.com/downloads/v32/tcmd.exe

iff %1 eq show .and. %2 eq tcmd then
  if exist tcmd.exe del /q tcmd.exe
  echo Copying %Source
  copy /g %Source
  Gosub Show
  set Show=Y
endiff

iff %1 eq install .and. %2 eq tcmd then
  if exist tcmd.exe del /q tcmd.exe
  echo Copying %Source
  copy /g %Source
  Gosub Show
  set YorN=N
  input /k"YyNn" Install Take Command (Y/N): %%YorN
  iff %YorN eq Y then
    echo Silently installing Take Command
    ::tcmd.exe /qn
  endiff
  if exist tcmd.exe dir tcmd.exe
else
  iff %Show eq Y then
    :: NEXT SENTENCE
  else
    winget.exe %$
  endiff
ENDLOCAL
quit

:Show
  echo Company Name      : %@verinfo[tcmd.exe,CompanyName]
  echo File Description  : %@verinfo[tcmd.exe,FileDescription]
  echo File Version      : %@verinfo[tcmd.exe,FileVersion]
  echo Internal Name     : %@verinfo[tcmd.exe,InternalName]
  echo Legal Copyright   : %@verinfo[tcmd.exe,LegalCopyright]
  echo Legal Trademarks  : %@verinfo[tcmd.exe,LegalTrademarks]
  echo Original Filename : %@verinfo[tcmd.exe,OriginalFilename]
  echo Product Name      : %@verinfo[tcmd.exe,ProductName]
  echo Product Version   : %@verinfo[tcmd.exe,ProductVersion]
  echo Build             : %@verinfo[tcmd.exe,Build]
Return

Running winget.btm show tcmd will download tcmd.exe,
and display the properties of tcmd.exe

Code:
R:\>winget show tcmd
Copying https://jpsoft.com/downloads/v32/tcmd.exe
https://jpsoft.com/downloads/v32/tcmd.exe => R:\tcmd.exe

     1 file copied
Company Name      : JP Software
File Description  : Take Command 32 Installer
File Version      : 32.10.21.0
Internal Name     : tcmd
Legal Copyright   : Copyright (C) 2024 JP Software
Legal Trademarks  :
Original Filename : tcmd.exe
Product Name      : Take Command 32
Product Version   : 32.10.21.0
Build             :

Running winget.btm install tcmd will download tcmd.exe,
display the properties of tcmd.exe
then ask if you want to install Take Command

Code:
R:\>winget install tcmd
Copying https://jpsoft.com/downloads/v32/tcmd.exe
https://jpsoft.com/downloads/v32/tcmd.exe => R:\tcmd.exe

     1 file copied
Company Name      : JP Software
File Description  : Take Command 32 Installer
File Version      : 32.10.21.0
Internal Name     : tcmd
Legal Copyright   : Copyright (C) 2024 JP Software
Legal Trademarks  :
Original Filename : tcmd.exe
Product Name      : Take Command 32
Product Version   : 32.10.21.0
Build             :
Install Take Command (Y/N):y
Silently installing Take Command

 Volume in drive R is unlabeled    Serial number is 2874:bb5f
 Directory of  R:\tcmd.exe

2024-09-09  11:16      78,195,584  tcmd.exe

If you run winget.btm without tcmd as command line argument #2,
winget.exe will be executed,
so that you may use it as you normally would.

Note that with each new version of Take Command,
you will have to change the Source environment variable
to point to the URL of the version of tcmd.exe that you wish to install.

This code has not been thoroughly tested,
use at your own risk!

The line to install Take Command silently has been commented.
You will need to remove the comment for Take Command to be silently installed.
Code:
::tcmd.exe /qn

should be

Code:
tcmd.exe /qn

Modify this winget.btm script to accommodate your needs.

Joe

EDIT: Source Code updated
 
Last edited:
I have two people above saying it's possible, but neither have provided an example invocation that works.

While I appreciate claims that an answer to my problem exists, I'm actually looking for the actual answer, and the above claims don't actually bring me any closer to it

i.e. what is the msiexec command? how is it installed in sandbox?

I'm looking for a command that downloads it and installs it, like winget. Maybe that part wasn't clear.

MSIEXEC is a Windows command (part of Windows Installer).

It seems that Joe has provided a script to do what you want (download it and then use the MSIEXEC options to autoinstall).
 
Back
Top
[FOX] Ultimate Translator
Translate