can i ask why does tc portable create always this empty folder?
it does happen with registered and shareware not register
the folder is always created here
Code: Select all
C:\Users\Myname\AppData\Local\GHISLER
is it normal?
thanks
Moderators: Hacker, petermad, Stefan2, white
Code: Select all
C:\Users\Myname\AppData\Local\GHISLER
Code: Select all
[Configuration]
DirUsageLocation=0
Code: Select all
$ghislerAppData = @("$env:AppData\Ghisler","$env:LocalAppData\Ghisler")
$ghislerRegistry = [ordered]@{
"HKCU:\SOFTWARE\Ghisler" ="HKCU:\SOFTWARE\GhislerBackup"
"HKLM:\SOFTWARE\Ghisler" ="HKLM:\SOFTWARE\GhislerBackup"
"HKLM:\SOFTWARE\WOW6432Node\Ghisler"="HKLM:\SOFTWARE\WOW6432Node\GhislerBackup"}
$max = -($ghislerAppData+$ghislerRegistry|Measure -Maximum -Property Length).Maximum
# research AppData
Write-Host -f Cyan '$AppData : ' -no
Write-Host -f Yellow 'checking for resident data...'
$ghislerAppData|foreach {
if (-not ($PSitem|Test-Path)) {
"{0,$max}" -f $PSitem|Tee -var noData|Out-null
Write-Host -f DarkGray $noData -no;' : does not exist; no action required'
}
else {
# report AppData
"{0,$max}" -f $PSitem|Tee -var Data|Out-null
Write-Host -f DarkRed $Data -no
Write-Host -f Yellow ' : contains data!'
$entry = Get-ChildItem $PSitem -recurse
foreach ($item in $entry) {
"{0,$max}" -f $item.FullName|Tee -var dataItem|Out-null
Write-Host -f DarkMag $dataItem}
}}
# research Registry
Write-Host -f Cyan '$Registry : ' -no
Write-Host -f Yellow 'checking for resident data...'
foreach ($key in $ghislerRegistry.keys) {
"{0,$max}" -f $key|Tee -var keyOut|Out-null
if (-not ($key|Test-Path)) {
Write-Host $keyOut -f DarkGray -no;' : does not exist; no action required'}
else {
Write-Host $keyOut -f Red -no
Write-Host -f Yellow ' : contains data!'
Get-ChildItem $key -recurse |foreach {
$regItem = $PSitem.toString()
$regItem = $regItem -replace 'HKEY.*USER\\','HKCU:' -replace 'HKEY.*MACHINE\\','HKLM:'
$regValues = @()
(Get-ItemProperty $regItem).PSobject.Properties|Where Name -notin PSPath,PSProvider,PSDrive,PSParentPath|Select Name,Value|
foreach {
$keyName = $_.name
$keyValue = $_.value
if ( $keyName -eq 'PSChildName') {
$subKey = $key + '\' + $keyValue}
else {
$regValues += "{0,-11} = {1}" -f $keyName, $keyValue}
}
Write-Host -f Red $subKey
$regValues|Sort-Object|foreach {
Write-Host -f Magenta $_
}}}}
if (-not $MyInvocation.PSCommandPath) {pause}
Hibeb wrote: 2024-02-24, 21:27 UTC 2giulia
It cannot be normal for the portable setup.
It would be easier to identify your issue if the %LocalAppData%\GHISLER weren't empty.
Still, there are some parameters in the ini related to the %LocalAppData% usage, e.g.:This one defines the location of the most frequently used directories list (tcDirFrq.txt).Code: Select all
[Configuration] DirUsageLocation=0
Where 1 is default and stands for the %LocalAppData%\GHISLER
Set it to 0.
You can try my powershell tcmd_cli_setup_reporter_brief.ps1 script from there
https://ghisler.ch/board/viewtopic.php?t=81086
to quickly check if your setup is truly portable, or is leaving some traces in the system.
If your setup is portable the script report would be as follows.tcmd_cli_setup_reporter_brief.ps1
Code: Select all
$ghislerAppData = @("$env:AppData\Ghisler","$env:LocalAppData\Ghisler") $ghislerRegistry = [ordered]@{ "HKCU:\SOFTWARE\Ghisler" ="HKCU:\SOFTWARE\GhislerBackup" "HKLM:\SOFTWARE\Ghisler" ="HKLM:\SOFTWARE\GhislerBackup" "HKLM:\SOFTWARE\WOW6432Node\Ghisler"="HKLM:\SOFTWARE\WOW6432Node\GhislerBackup"} $max = -($ghislerAppData+$ghislerRegistry|Measure -Maximum -Property Length).Maximum # research AppData Write-Host -f Cyan '$AppData : ' -no Write-Host -f Yellow 'checking for resident data...' $ghislerAppData|foreach { if (-not ($PSitem|Test-Path)) { "{0,$max}" -f $PSitem|Tee -var noData|Out-null Write-Host -f DarkGray $noData -no;' : does not exist; no action required' } else { # report AppData "{0,$max}" -f $PSitem|Tee -var Data|Out-null Write-Host -f DarkRed $Data -no Write-Host -f Yellow ' : contains data!' $entry = Get-ChildItem $PSitem -recurse foreach ($item in $entry) { "{0,$max}" -f $item.FullName|Tee -var dataItem|Out-null Write-Host -f DarkMag $dataItem} }} # research Registry Write-Host -f Cyan '$Registry : ' -no Write-Host -f Yellow 'checking for resident data...' foreach ($key in $ghislerRegistry.keys) { "{0,$max}" -f $key|Tee -var keyOut|Out-null if (-not ($key|Test-Path)) { Write-Host $keyOut -f DarkGray -no;' : does not exist; no action required'} else { Write-Host $keyOut -f Red -no Write-Host -f Yellow ' : contains data!' Get-ChildItem $key -recurse |foreach { $regItem = $PSitem.toString() $regItem = $regItem -replace 'HKEY.*USER\\','HKCU:' -replace 'HKEY.*MACHINE\\','HKLM:' $regValues = @() (Get-ItemProperty $regItem).PSobject.Properties|Where Name -notin PSPath,PSProvider,PSDrive,PSParentPath|Select Name,Value| foreach { $keyName = $_.name $keyValue = $_.value if ( $keyName -eq 'PSChildName') { $subKey = $key + '\' + $keyValue} else { $regValues += "{0,-11} = {1}" -f $keyName, $keyValue} } Write-Host -f Red $subKey $regValues|Sort-Object|foreach { Write-Host -f Magenta $_ }}}} if (-not $MyInvocation.PSCommandPath) {pause}
Image: https://i.imgur.com/cLSrS0o.png
Otherwise, the painting would be more colorful.
the screenshot Image: https://i.imgur.com/lZwXc2o.jpegfailed to load tcmd_cli_setup_reporter_brief.ps1 file
Script execution is disabled on the current system. for more information, see "get-help about_signing".
hiFla$her wrote: 2024-02-24, 21:41 UTC 2giulia
cm_ThumbnailsConfig > Database Location (leave empty to disable caching):
cm_HistoryConfig > Storage location for list of most frequently used folders:
2giuliagiulia wrote: 2024-02-25, 06:52 UTC i haven't cm_ThumbnailsConfig and cm_HistoryConfig in the ini file,where are they?
The script in question has been tested on Windows PowerShell 5.1 and cross-platform PowerShell 7.4+ (with the corresponding info in the original topic) while Windows 7 has an integral PowerShell 2.0 (an update to 5.1 was possible but required special moves). Sorry.giulia wrote: 2024-02-25, 06:50 UTC but the script does not work...
i have run under w7 64bit sp1 with the updated
and the error is...
Image: https://i.imgur.com/lZwXc2o.jpeg
Hi Bebbeb wrote: 2024-02-25, 07:44 UTCThe script in question is tested on Windows PowerShell 5.1 and cross-platform PowerShell 7.4+ (with the corresponding info in the original topic) while Windows 7 has an integral PowerShell 2.0 (an update to 5.1 was possible but required special moves). Sorry.giulia wrote: 2024-02-25, 06:50 UTC but the script does not work...
i have run under w7 64bit sp1 with the updated
and the error is...
Image: https://i.imgur.com/lZwXc2o.jpeg
It's not straightforward like that.giulia wrote: 2024-02-25, 07:51 UTC ...to make a full portable version i should set these settings in the ini file, to be sure tc will be full portable...
Code: Select all
UseIniInProgramDir=7
DirUsageLocation=0
Code: Select all
UseRightButton=0
StartupScreen=0
Code: Select all
FirstTime=0
FirstTimeIconLib=0
Hibeb wrote: 2024-02-25, 08:45 UTCIt's not straightforward like that.giulia wrote: 2024-02-25, 07:51 UTC ...to make a full portable version i should set these settings in the ini file, to be sure tc will be full portable...
The parameter roles can be differentiated a bit:
- parameters for the portability:- parameters for the convenience:Code: Select all
UseIniInProgramDir=7 DirUsageLocation=0
- parameters to avoid lame questions upon the very first start (for the freshly installed program):Code: Select all
UseRightButton=0 StartupScreen=0
The parameters list is customizable and is not full.Code: Select all
FirstTime=0 FirstTimeIconLib=0
I very much welcome fellow users to share their ideas about what is a must to be there.
And why is there any magic needed here at all? GUI settings are the best choice for the user because they take effect as soon as they are applied.
2giuliagiulia wrote: 2024-02-25, 14:05 UTC ...do you think you scrit could work with cmd or only with PowerShell?...
Just for the record:MaxX wrote: 2024-02-28, 03:37 UTC C:\Users\%username%\AppData\Local\GHISLER\
C:\Users\%username%\AppData\Roaming\GHISLER\
To avoid this but use the functionallity of tcDirFrq.txt, set your own location by using something like this DirUsageLocation=%COMMANDER_INI%\..\Temp\DirFrq\ or whatever... *)