Jump to content
Ketarin forum
Total Commander (+ silent install, x64)
Guest
By Guest, 12/04/2016
  • 137 downloads
  • Updated:

File Details

  • Website URL http://www.ghisler.com/
  • User Agent
  • Category Utilities
  • User Notes This is x64 version only, there is a combined 64/32 version from me too, There is nothing to setup, just put any accessible directory under Download Location if it's empty. good choice is: Save In Folder: %temp%\ If you want to tinker, Under the Setup tab, in Custom Script is a silent install script, on the top of it, there are few lines you can edit to suit your needs: - to show setup screen or to install silently in the background, - to make new shortcuts in Start Menu and Desktop on every update also if you will use Ketarin to install Total Commander on a new PC first time, you can define default Path for exe and ini files and few other options there too.

(Show)XML Contents

            <?xml version="1.0" encoding="utf-8"?>
<Jobs>
  <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="04ebc1c2-fccc-488a-b4f9-7deef025e3c7">
    <WebsiteUrl>http://www.ghisler.com/</WebsiteUrl>
    <UserAgent/>
    <UserNotes>This is x64 version only, there is a combined 64/32 version from me too,


There is nothing to setup,
just put any accessible directory under Download Location if it's empty.
good choice is: Save In Folder:
%temp%\


If you want to tinker,
Under the Setup tab, in Custom Script is a silent install script,

on the top of it, there are few lines you can edit to suit your needs:
- to show setup screen or to install silently in the background,
- to make new shortcuts in Start Menu and Desktop on every update

also if you will use Ketarin to install Total Commander on a new PC first time,
you can define default Path for exe and ini files and few other options there too.
</UserNotes>
    <LastFileSize>4626896</LastFileSize>
    <LastFileDate>2014-07-07T20:47:14.77359</LastFileDate>
    <IgnoreFileInformation>false</IgnoreFileInformation>
    <DownloadBeta>Default</DownloadBeta>
    <DownloadDate xsi:nil="true"/>
    <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
    <VariableChangeIndicator>Version</VariableChangeIndicator>
    <HashVariable/>
    <HashType>None</HashType>
    <CanBeShared>true</CanBeShared>
    <ShareApplication>true</ShareApplication>
    <ExclusiveDownload>false</ExclusiveDownload>
    <HttpReferer/>
    <SetupInstructions>
      <SetupInstruction xsi:type="CloseProcessInstruction">
        <ProcessName>TOTALCMD64</ProcessName>
      </SetupInstruction>
      <SetupInstruction xsi:type="CloseProcessInstruction">
        <ProcessName>TOTALCMD</ProcessName>
      </SetupInstruction>
      <SetupInstruction xsi:type="CustomSetupInstruction">
        <Code>@echo off



REM -- the point is to have unattended installation - without clicking, so keep totcom_auto=1 as 1
REM -- totcom_hidden=1 means install is done completely in the background, not visible
set totcom_auto=1
set totcom_hidden=1

REM -- to create shortcuts in Start Menu / on Desktop
REM    if not defined, totcom_mkgroup=1 and totcom_mkdesktop=1 is used as default
REM -- totcom_UserName= for shortcut creation: Blank for current user, * for all users, or give user name
set totcom_mkdesktop=0
set totcom_mkgroup=0
set totcom_UserName=


REM ==========================================
REM === These parameters are ignored for upgrade, only valid for initial install
REM == edit values here as you like
REM ===================

REM -- installation directory
REM    if not defined, Dir=c:\totalcmd is used as default
set totcom_Dir=c:\Program Files\Total Commander

REM -- find number of language in INSTALL.INF file, 
REM    if not defined, totcom_lang=1 is used as default, means english
set totcom_lang=

REM -- install all language files?
REM    if not defined, totcom_alllang=1 is used as default, means yes
set totcom_alllang=

REM -- location for ini files, not known values,
REM    if not defined, totcom_iniall=0 is used as default and might be user's AppData folder,
REM    other possible locations are, %windir%, path of total commander executables, ProgramData - all users app data
REM -- totcom_iniloc= would probably define custom path for ini files
set totcom_iniall=
set totcom_iniloc=

REM -- put any other properties from INSTALL.INF file here,
REM    if you think they can be edited and you want to override setup values
REM  - format is: 'set totcom_<name of parameter>=<new value>'
REM    be careful as groups are not taken in account and many parameters have the same name under different groups
REM  - an empty value definition, as seen above have the same effect as if it wasn't present.
REM    e.g. set totcom_iniall= is same as if you deleted the line with it, and also same as set totcom_iniall=0, because 0 is the default value
REM ==============================
REM ====================================================================


REM ==================================================================
REM === To use this script in a bat file, outside of Ketarin, 
REM =   use Replace All in a text editor as follows
REM ===============================
REM in Ketarin		in BAT
REM %a				%%a
REM %l				%%l
REM %m				%%m
REM %~dpa			%%~dpa

REM - also, in a batch file, a variable 'file' needs to be defined,
REM   this will use last file matching tcm*.exe in folder where this script is saved,
REM   or will use Ketarin value if used inside Ketarin
if exist "{file}" ( set file={file}
) else for %a in (tcm*.exe) do set file=%~dp0%a
REM ==============================
REM ====================================================================

REM ====================================================================
REM Uses slower approach and not as efficient code, as could be done if DELAYED EXPANSION could be used,
REM but in Ketarin, commands are executed line by line not as batch
REM ====================================================================




rem -- get path for this download
for %a in ("%file%") do (
 	set UpdateDir=%~dpa
)
rem -- without last slash
set UpdateDir=%UpdateDir:~,-1%

set newfile=%UpdateDir%\UZ\INSTALL.INF.new
del "%newfile%"

7z x -y "%file%" -o"%UpdateDir%\UZ"

echo.
echo Changing Values...
for /f "tokens=1,2 delims== usebackq" %l in ("%UpdateDir%\UZ\INSTALL.INF") do (
	set totcom_ | find "totcom_%l="
	if not errorlevel 1 (
		REM -- another nuisance of missing DELAYED EXPANSION
		for /f "tokens=2 delims==" %a in ('set totcom_%l') do (echo %l=%a)>>"%newfile%"
	) else (
		REM ========= limitations - not keeping comments and empty lines  as they were ============
		REM can't just check if %m empty because for not defined 'param='
		REM and will not check separately for '//' comments, because anyway some comments have '=' in them too,
		REM and there is no reason to keep comments as they were, so will add '=' to the end of all comments
		REM whitch don't have '=' alereade, whatever..
		REM also, if comment has more then one '=' there is such comment, then it will be truncated after second
		REM and comments market by semicolon are ignored, as eol is set to semicolon, but whatever.
		REM lastly, empty lines are ignored
		REM of course can't use string functions here, because can't use DELAYED EXPANSION
		echo %l | find "[" >nul
		if errorlevel 1 (
			(echo %l=%m)>>"%newfile%"
		) else (
			(echo %l)>>"%newfile%"
		)
	)
)

del "%UpdateDir%\UZ\INSTALL.INF"
ren "%newfile%" "INSTALL.INF"

start "" /wait "%UpdateDir%\UZ\INSTALL.EXE"
del "%file%"
del /f /s /q "%UpdateDir%\UZ\*.*"
rmdir /s /q "%UpdateDir%\UZ"
</Code>
        <Type>Batch</Type>
      </SetupInstruction>
      <SetupInstruction xsi:type="CustomSetupInstruction">
        <Code>rem -- add VERSION value to Katerin DB (updated) v1.1
sqlite3 "%AppData%\Ketarin\jobs.db" "select * from variables where JobGuid='{appguid}' AND VariableName='Current Ver';" | find "Current Ver"
rem - IF Current Ver exist for JobGuid? - INSERT else UPDATE
rem pridal som pod UPDATE CachedContent, lebo Ketarin v1.8.5.551 zacala ukazovat tento udaj pod Column
if errorlevel 1 ( sqlite3 "%AppData%\Ketarin\jobs.db" "INSERT INTO variables (VariableName,VariableType,TextualContent,CachedContent,RegexRightToLeft,JobGuid) VALUES ('Current Ver',2,'{Version}','{Version}',0,'{appguid}');"
) else sqlite3 "%AppData%\Ketarin\jobs.db" "UPDATE variables SET TextualContent='{Version}', CachedContent='{Version}' WHERE JobGuid='{appguid}' AND VariableName='Current Ver';"
</Code>
        <Type>Batch</Type>
      </SetupInstruction>
    </SetupInstructions>
    <Variables>
      <item>
        <key>
          <string>Version</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>Download Total Commander (\d+\.\d+(?:\w)) final</Regex>
            <Url>http://www.ghisler.com/amazons3.php</Url>
            <Name>Version</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>dlString_x64</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex><a\s+href="?(http://cloudfront.ghisler.com/tcm[\d\w]{1,10}x64.exe\?Expires=\d+&Signature=[^>&]+&Key-Pair-Id=[^>&"]+)"?></Regex>
            <Url>http://www.ghisler.com/amazons3.php</Url>
            <Name>dlString_x64</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>Current Ver</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex/>
            <TextualContent>8.51a</TextualContent>
            <Name>Current Ver</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>dlString2_x64</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>href="?(http://tcmd[\d\w]{1,10}.s3.amazonaws.com/tcmd[\d\w]{1,10}x64.exe)"?></Regex>
            <Url>http://www.ghisler.com/amazons3.php</Url>
            <Name>dlString2_x64</Name>
          </UrlVariable>
        </value>
      </item>
    </Variables>
    <ExecuteCommand/>
    <ExecutePreCommand/>
    <ExecuteCommandType>Batch</ExecuteCommandType>
    <ExecutePreCommandType>Batch</ExecutePreCommandType>
    <Category>Utilities</Category>
    <SourceType>FixedUrl</SourceType>
    <PreviousLocation/>
    <DeletePreviousFile>true</DeletePreviousFile>
    <Enabled>true</Enabled>
    <FileHippoId/>
    <LastUpdated>2014-07-07T20:47:14.77359</LastUpdated>
    <TargetPath>{portProgPath}\_Utilities_\Total Commander\~update~\</TargetPath>
    <FixedDownloadUrl>{dlString2_x64}</FixedDownloadUrl>
    <Name>Total Commander (+ silent install, x64)</Name>
  </ApplicationJob>
</Jobs>

        

Comments

There are no comments to display.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Add your comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.