This shows you the differences between two versions of the page.
userspace:total_commander [2014/06/03 20:31] SisterOfMercy created |
userspace:total_commander [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Total Commander ====== | ||
- | Adaptation of the opsi-template scripts for Total Commander. \\ | ||
- | Get it here: http:// | ||
- | The last year or so I never had the need to use the 32-bit version on a 64-bit OS, so there is nothing implemented in the scripts for this option. Of course you can easily make a product property.\\ | ||
- | I downloaded the x86 and x64 versions seperately. Unpack these with Total Commander, and change the install.inf\\ | ||
- | You might also want to download a few plugins. I use an ISO plugin, a 7-zip plugin, the Imagine (lister) plugin, FTP over SSH plugins and several command-line winrar files. | ||
- | |||
- | |||
- | < | ||
- | Tree: | ||
- | |-- files | ||
- | | |-- x64 | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | |-- x86 | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | | ||
- | | |-- DEFAULT.BAR | ||
- | | |-- wcx_ftp.ini | ||
- | | `-- wincmd.ini | ||
- | |-- delsub3264.ins | ||
- | |-- total-commander.png | ||
- | |-- setup3264.ins | ||
- | `-- uninstall3264.ins | ||
- | </ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ==== DEFAULT.BAR ==== | ||
- | |||
- | <code winst> | ||
- | [Buttonbar] | ||
- | Buttoncount=0 | ||
- | </ | ||
- | |||
- | |||
- | ==== wcx_ftp.ini ==== | ||
- | |||
- | <code winst> | ||
- | [General] | ||
- | ConnectRetries=10 | ||
- | WaitDelay=5 | ||
- | transfermode=I | ||
- | LogFile= | ||
- | FtpInBackground=0 | ||
- | ModeZ=1 | ||
- | AutoResume=30 | ||
- | [default] | ||
- | pasvmode=1 | ||
- | </ | ||
- | |||
- | |||
- | ==== wincmd.ini ==== | ||
- | |||
- | <code winst> | ||
- | [Configuration] | ||
- | FirstTime=0 | ||
- | Keypath=$ | ||
- | ButtonBar=0 | ||
- | ShowHiddenSystem=1 | ||
- | Showicons=1 | ||
- | ShowEXEandLNKicons=0 | ||
- | TrayIcon=1 | ||
- | Savepath=0 | ||
- | Savepanels=0 | ||
- | CountSpace=1 | ||
- | CountMarked=0 | ||
- | AltSearch=1 | ||
- | FirstTimeUnpack=0 | ||
- | FirstTimeZIP=0 | ||
- | pluginbasedir=C: | ||
- | [Packer] | ||
- | InternalZipRate=9 | ||
- | RAR=%COMMANDER_PATH%\plugins\wcx\rar\rar.exe | ||
- | [Colors] | ||
- | InverseCursor=1 | ||
- | [Layout] | ||
- | maximized=1 | ||
- | [PackerPlugins] | ||
- | iso=192, | ||
- | nrg=192, | ||
- | img=192, | ||
- | mdf=192, | ||
- | 7z=223, | ||
- | [ListerPlugins] | ||
- | 0=%COMMANDER_PATH%\plugins\wlx\Imagine\Imagine.wlx | ||
- | 0_detect=" | ||
- | [FileSystemPlugins] | ||
- | Secure FTP=%COMMANDER_PATH%\plugins\wfx\sftpplug\sftpplug.wfx | ||
- | [Lister] | ||
- | ShrinkBitmap=2 | ||
- | Maximized=1 | ||
- | CenterBitmap=1 | ||
- | [Tabstops] | ||
- | 0=177 | ||
- | 1=179 | ||
- | 3=238 | ||
- | 4=115 | ||
- | 6=528 | ||
- | 5=93 | ||
- | AdjustWidth=1 | ||
- | </ | ||
- | |||
- | |||
- | ==== control file ==== | ||
- | |||
- | <code winst> | ||
- | [Package] | ||
- | version: 3 | ||
- | depends: | ||
- | incremental: | ||
- | |||
- | [Product] | ||
- | type: localboot | ||
- | id: total-commander | ||
- | name: Total Commander | ||
- | description: | ||
- | advice: | ||
- | version: 8.51a | ||
- | priority: 70 | ||
- | licenseRequired: | ||
- | productClasses: | ||
- | setupScript: | ||
- | uninstallScript: | ||
- | updateScript: | ||
- | alwaysScript: | ||
- | onceScript: | ||
- | customScript: | ||
- | userLoginScript: | ||
- | |||
- | [Changelog] | ||
- | total-commander (8.50-1) testing; urgency=low | ||
- | |||
- | * Initial package | ||
- | |||
- | -- ICT < | ||
- | </ | ||
- | |||
- | |||
- | ==== setup3264.ins ==== | ||
- | |||
- | <code winst> | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | ; | ||
- | ; License Management removed | ||
- | |||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | ;DefVar $MsiId32$ | ||
- | ;DefVar $UninstallProgram32$ | ||
- | ;DefVar $MsiId64$ | ||
- | ;DefVar $UninstallProgram64$ | ||
- | DefVar $LogDir$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $InstallDir32$ | ||
- | DefVar $InstallDir64$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $INST_SystemType$ | ||
- | ;DefVar $INST_architecture$ | ||
- | DefVar $INST_MsVersion$ | ||
- | |||
- | set $INST_MsVersion$ = GetMsVersionInfo | ||
- | Set $INST_SystemType$ = GetSystemType | ||
- | ;set $INST_architecture$ = GetProductProperty(" | ||
- | Set $LogDir$ = " | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | ; | ||
- | ; therefore please: only lower letters, no umlauts, | ||
- | ; no white space use ' | ||
- | Set $ProductId$ | ||
- | Set $MinimumSpace$ | ||
- | ; the path were we find the product after the installation | ||
- | Set $InstallDir32$ | ||
- | Set $InstallDir64$ | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | isFatalError | ||
- | ; Stop process and set installation status to failed | ||
- | endif | ||
- | if $INST_MsVersion$ < " | ||
- | LogError " | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | if FileExists(" | ||
- | comment "Start uninstall sub section" | ||
- | Sub " | ||
- | endif | ||
- | |||
- | comment " | ||
- | |||
- | if ($INST_SystemType$ = "x86 System" | ||
- | ;and ($INST_architecture$ = " | ||
- | Message " | ||
- | comment "Start setup program" | ||
- | Winbatch_install_32 | ||
- | Sub_check_exitcode | ||
- | comment "Copy files" | ||
- | Files_install_32 /32Bit | ||
- | Files_install_AllProfiles / | ||
- | comment "Patch Registry" | ||
- | Registry_install /32Bit | ||
- | Registry_install_AllProfiles / | ||
- | comment " | ||
- | LinkFolder_install_32 | ||
- | endif | ||
- | |||
- | if ($INST_SystemType$ = "64 Bit System" | ||
- | ;and (($INST_architecture$ = " | ||
- | Message " | ||
- | comment "Start setup program" | ||
- | Winbatch_install_64 | ||
- | Sub_check_exitcode | ||
- | comment "Copy files" | ||
- | Files_install_64 /64Bit | ||
- | Files_install_AllProfiles / | ||
- | comment "Patch Registry" | ||
- | Registry_install /64Bit | ||
- | Registry_install_AllProfiles / | ||
- | comment " | ||
- | LinkFolder_install_64 | ||
- | endif | ||
- | |||
- | |||
- | [Winbatch_install_32] | ||
- | " | ||
- | |||
- | [Files_install_32] | ||
- | copy -s " | ||
- | copy " | ||
- | copy -s " | ||
- | |||
- | [Winbatch_install_64] | ||
- | " | ||
- | |||
- | [Files_install_64] | ||
- | copy -s " | ||
- | copy " | ||
- | copy -s " | ||
- | |||
- | [Files_install_AllProfiles] | ||
- | copy " | ||
- | copy -n " | ||
- | ; Dit nog aanpassen-> | ||
- | |||
- | [Registry_install] | ||
- | openkey [HKEY_LOCAL_MACHINE\Software\Ghisler\Total Commander] | ||
- | set " | ||
- | |||
- | [Registry_install_AllProfiles] | ||
- | ; Remove stored start menu order | ||
- | deletekey [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu] | ||
- | |||
- | |||
- | [LinkFolder_install_32] | ||
- | set_basefolder common_programs | ||
- | set_subfolder Total Commander | ||
- | set_link | ||
- | name: Total Commander | ||
- | target: " | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: " | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | set_link | ||
- | name: Total Commander Help | ||
- | target: " | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: " | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | set_link | ||
- | name: Uninstall or Repair Total Commander | ||
- | target: " | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: " | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | set_basefolder common_desktopdirectory | ||
- | set_subfolder "" | ||
- | set_link | ||
- | name: Total Commander | ||
- | target: " | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: " | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | [LinkFolder_install_64] | ||
- | set_basefolder common_programs | ||
- | set_subfolder Total Commander | ||
- | set_link | ||
- | name: Total Commander 64 Bit | ||
- | target: " | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: " | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | set_link | ||
- | name: Total Commander Help | ||
- | target: " | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: " | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | set_link | ||
- | name: Uninstall or Repair Total Commander | ||
- | target: " | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: " | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | set_basefolder common_desktopdirectory | ||
- | set_subfolder "" | ||
- | set_link | ||
- | name: Total Commander 64 Bit | ||
- | target: " | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: " | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | [Sub_check_exitcode] | ||
- | comment "Test for installation success via exit code" | ||
- | set $ExitCode$ = getLastExitCode | ||
- | ; informations to exit codes see | ||
- | ; http:// | ||
- | ; http:// | ||
- | if ($ExitCode$ = " | ||
- | comment "Looks good: setup program gives exitcode zero" | ||
- | else | ||
- | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
- | if ($ExitCode$ = " | ||
- | comment " | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 1641" | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 3010" | ||
- | comment " | ||
- | else | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | </ | ||
- | |||
- | ==== uninstall3264.ins ==== | ||
- | |||
- | <code winst> | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib gmbh | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | ; | ||
- | ; License Management removed | ||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | ;DefVar $MsiId32$ | ||
- | ;DefVar $UninstallProgram32$ | ||
- | ;DefVar $MsiId64$ | ||
- | ;DefVar $UninstallProgram64$ | ||
- | DefVar $LogDir$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $InstallDir32$ | ||
- | DefVar $InstallDir64$ | ||
- | DefVar $INST_SystemType$ | ||
- | ;DefVar $INST_architecture$ | ||
- | |||
- | Set $INST_SystemType$ = GetSystemType | ||
- | ;set $INST_architecture$ = GetProductProperty(" | ||
- | |||
- | |||
- | Set $LogDir$ = " | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | Set $ProductId$ | ||
- | Set $InstallDir32$ | ||
- | Set $InstallDir64$ | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | |||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | Message " | ||
- | |||
- | if FileExists(" | ||
- | comment "Start uninstall sub section" | ||
- | Sub " | ||
- | endif | ||
- | </ | ||
- | |||
- | ==== delsub3264.ins ==== | ||
- | |||
- | <code winst> | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib gmbh | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | ; | ||
- | ; License Management removed | ||
- | DefVar $UninstallProgram32$ | ||
- | DefVar $UninstallProgram64$ | ||
- | |||
- | Set $UninstallProgram32$ = $InstallDir32$ + " | ||
- | Set $UninstallProgram64$ = $InstallDir64$ + " | ||
- | |||
- | if ($INST_SystemType$ = "x86 System" | ||
- | ;and ($INST_architecture$ = " | ||
- | Message " | ||
- | |||
- | if FileExists($UninstallProgram32$) | ||
- | comment " | ||
- | Winbatch_uninstall_32 | ||
- | sub_check_exitcode | ||
- | endif | ||
- | |||
- | ; if not (GetRegistryStringValue32(" | ||
- | ; comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall" | ||
- | ; | ||
- | ; | ||
- | ; endif | ||
- | |||
- | comment " | ||
- | Files_uninstall_32 /32Bit | ||
- | comment " | ||
- | Registry_uninstall /32Bit | ||
- | comment " | ||
- | LinkFolder_uninstall_32 | ||
- | endif | ||
- | |||
- | if ($INST_SystemType$ = "64 Bit System" | ||
- | ;and (($INST_architecture$ = " | ||
- | Message " | ||
- | |||
- | if FileExists($UninstallProgram64$) | ||
- | comment " | ||
- | Winbatch_uninstall_64 | ||
- | sub_check_exitcode | ||
- | endif | ||
- | |||
- | ; if not (GetRegistryStringValue64(" | ||
- | ; comment "MSI id " + $MsiId64$ + " found in registry, starting msiexec to uninstall" | ||
- | ; | ||
- | ; | ||
- | ; endif | ||
- | |||
- | comment " | ||
- | Files_uninstall_64 /64Bit | ||
- | comment " | ||
- | Registry_uninstall /64Bit | ||
- | comment " | ||
- | LinkFolder_uninstall_64 | ||
- | endif | ||
- | |||
- | |||
- | [Winbatch_uninstall_32] | ||
- | " | ||
- | |||
- | [Files_uninstall_32] | ||
- | delete -sf " | ||
- | |||
- | [Winbatch_uninstall_64] | ||
- | " | ||
- | |||
- | [Files_uninstall_64] | ||
- | delete -sf " | ||
- | |||
- | [Registry_uninstall] | ||
- | deletekey [HKEY_LOCAL_MACHINE\Software\Ghisler\Total Commander] | ||
- | |||
- | [LinkFolder_uninstall_32] | ||
- | set_basefolder common_programs | ||
- | delete_subfolder Total Commander | ||
- | |||
- | set_basefolder common_desktopdirectory | ||
- | set_subfolder "" | ||
- | delete_element Total Commander | ||
- | |||
- | [LinkFolder_uninstall_64] | ||
- | set_basefolder common_programs | ||
- | delete_subfolder Total Commander | ||
- | |||
- | set_basefolder common_desktopdirectory | ||
- | set_subfolder "" | ||
- | delete_element Total Commander 64 Bit | ||
- | |||
- | [Sub_check_exitcode] | ||
- | comment "Test for installation success via exit code" | ||
- | set $ExitCode$ = getLastExitCode | ||
- | ; informations to exit codes see | ||
- | ; http:// | ||
- | ; http:// | ||
- | if ($ExitCode$ = " | ||
- | comment "Looks good: setup program gives exitcode zero" | ||
- | else | ||
- | comment "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
- | if ($ExitCode$ = " | ||
- | comment " | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 1641" | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 3010" | ||
- | comment " | ||
- | else | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | </ |