Main menu

Search
Login
Signup
Links
<< Previous thread | Next thread >>   
X-FileZilla Launcher [only 3.0.0 version]

Go to page       >>  
Author Post
Danix
Mon 10 Sep 2007 - 00:15

online

Registered Member #1
Joined: Fri 29 Dec 2006 - 05:38
Location: Sassari
Posts: 12914

Attenzione: solo per FileZilla 3.0.0


; -------------------------------------------------------------------------
; winPenPack project - X-Software collection 
; Copyright © 2005-2007 winPenPack.com - All rights reserved  
; -------------------------------------------------------------------------
; X-Launcher developed by tittoproject (tittoproject@gmail.com)
; Ini file [rev9] - Author: Danix (winpenpack@gmail.com) - Date: 09.09.2007
; Only for FileZilla 3.0.0 version
; -------------------------------------------------------------------------
; This notice may not be removed or altered from any distribution.
; -------------------------------------------------------------------------
; This X-Software is released under GNU General Public License.
; -------------------------------------------------------------------------

[Setup]
AppName=FileZilla

[FileToRun]
PathToExe=$Bin$\$AppName$\$AppName$.exe

[Environment]
USERPROFILE=$ExeDir$

[Functions]
DirCreate=%USERPROFILE%
FileCopy=$Home$\$AppName$\*.xml|$ExeDir$\|o

;------------------------------------------------------------
; * locale it (rimozione lingue supplementari, da attivare) *
;------------------------------------------------------------
;DirCopy=$ExeDir$\locales\it_IT|$ExeDir$\locales_it\it_IT
;DirRemove=$ExeDir$\locales
;DirMove=$ExeDir$\locales_it|$ExeDir$\locales

[RunAfter]
FileCopy=$ExeDir$\*.xml|$Home$\$AppName$\|o

;------------
; * backup *
;------------
DirMove=$Backup$\$AppName$\backup_9|$Backup$\$AppName$\backup_10|o
DirMove=$Backup$\$AppName$\backup_8|$Backup$\$AppName$\backup_9|o
DirMove=$Backup$\$AppName$\backup_7|$Backup$\$AppName$\backup_8|o
DirMove=$Backup$\$AppName$\backup_6|$Backup$\$AppName$\backup_7|o
DirMove=$Backup$\$AppName$\backup_5|$Backup$\$AppName$\backup_6|o
DirMove=$Backup$\$AppName$\backup_4|$Backup$\$AppName$\backup_5|o
DirMove=$Backup$\$AppName$\backup_3|$Backup$\$AppName$\backup_4|o
DirMove=$Backup$\$AppName$\backup_2|$Backup$\$AppName$\backup_3|o
DirMove=$Backup$\$AppName$\backup_1|$Backup$\$AppName$\backup_2|o
FileCopy=$ExeDir$\*.xml|$Backup$\$AppName$\backup_1\|o

[Options]
DeleteTemp=true
MultipleIstances=true
ShowSplash=true
WriteLog=false

[SplashScreen]
Image=
Title=
TimeOut=1500


[ Edited Mon 10 Sep 2007 - 00:19 ]
Back to top
Website
Danix
Mon 10 Sep 2007 - 12:39

online

Registered Member #1
Joined: Fri 29 Dec 2006 - 05:38
Location: Sassari
Posts: 12914
Purtroppo il programma non riconosce perfettamente la variabile %USERPROFILE%
Quando si va a caricare un file dal desktop o ad importare un XML, appare un messaggio d'errore:





Credo che parta sempre da %APPDATA% per cercare i percorsi.

La soluzione (anche se indiretta, poichè il profilo non si crea direttamente in $ExeDir$) è questa:


; -------------------------------------------------------------------------
; winPenPack project - X-Software collection 
; Copyright © 2005-2007 winPenPack.com - All rights reserved  
; -------------------------------------------------------------------------
; X-Launcher developed by tittoproject (tittoproject@gmail.com)
; Ini file [rev10] - Author: Danix (winpenpack@gmail.com) - Date: 11.09.2007
; Only for FileZilla 3.0.0 version
; -------------------------------------------------------------------------
; This notice may not be removed or altered from any distribution.
; -------------------------------------------------------------------------
; This X-Software is released under GNU General Public License.
; -------------------------------------------------------------------------

[Setup]
AppName=FileZilla

[FileToRun]
PathToExe=$Bin$\$AppName$\$AppName$.exe

[Functions]
DirMove=@AppDataDir@\$AppName$|@AppDataDir@\$AppName$_backup
DirCopy=$Home$\$AppName$|@AppDataDir@\$AppName$|o

;---------------
; * locale it *
;---------------
;DirCopy=$ExeDir$\locales\it_IT|$ExeDir$\locales_it\it_IT
;DirRemove=$ExeDir$\locales
;DirMove=$ExeDir$\locales_it|$ExeDir$\locales

[RunAfter]
DirCopy=@AppDataDir@\$AppName$|$Home$\$AppName$|o
DirRemove=@AppDataDir@\$AppName$
DirMove=@AppDataDir@\$AppName$_backup|@AppDataDir@\$AppName$

;------------
; * backup *
;------------
DirMove=$Backup$\$AppName$\backup_9|$Backup$\$AppName$\backup_10|o
DirMove=$Backup$\$AppName$\backup_8|$Backup$\$AppName$\backup_9|o
DirMove=$Backup$\$AppName$\backup_7|$Backup$\$AppName$\backup_8|o
DirMove=$Backup$\$AppName$\backup_6|$Backup$\$AppName$\backup_7|o
DirMove=$Backup$\$AppName$\backup_5|$Backup$\$AppName$\backup_6|o
DirMove=$Backup$\$AppName$\backup_4|$Backup$\$AppName$\backup_5|o
DirMove=$Backup$\$AppName$\backup_3|$Backup$\$AppName$\backup_4|o
DirMove=$Backup$\$AppName$\backup_2|$Backup$\$AppName$\backup_3|o
DirMove=$Backup$\$AppName$\backup_1|$Backup$\$AppName$\backup_2|o
FileCopy=$Home$\$AppName$\*.xml|$Backup$\$AppName$\backup_1\|o

[Options]
DeleteTemp=true
MultipleIstances=true
ShowSplash=true
WriteLog=false

[SplashScreen]
Image=
Title=
TimeOut=1500


[ Edited Mon 10 Sep 2007 - 12:41 ]
Back to top
Website
Danix
Wed 12 Sep 2007 - 23:49

online

Registered Member #1
Joined: Fri 29 Dec 2006 - 05:38
Location: Sassari
Posts: 12914
In virtù delle seguenti indicazioni presenti in FileZilla\docs\fzdefaults.xml.example,
scoperte leggendo qui -Link- , aggiornato il launcher alla [rev11]

Location of settings directory:

By default, FileZilla stores it's settings in the user's home directory. If
you want to change this location, modify the "Config Location" setting (see
below).

"Config Location" either accepts absolute paths or paths relative to the
location of fzdefaults.xml
You can also use environment variables by preceeding them with the dollar
sign, e.g. "$HOME/foo".
Use $$ to denote a path containing dollar signs, e.g. "c:\$$foobar\" if
settings should be located in "c:\$foobar".
A single dot denotes the directory containing fzdefaults.xml



; -------------------------------------------------------------------------
; winPenPack project - X-Software collection 
; Copyright © 2005-2007 winPenPack.com - All rights reserved  
; -------------------------------------------------------------------------
; X-Launcher developed by tittoproject (tittoproject@gmail.com)
; Ini file [rev11] - Author: Danix (winpenpack@gmail.com) - Date: 13.09.2007
; Only for FileZilla 3.0.0 version
; -------------------------------------------------------------------------
; This notice may not be removed or altered from any distribution.
; -------------------------------------------------------------------------
; This X-Software is released under GNU General Public License.
; -------------------------------------------------------------------------

[Setup]
AppName=FileZilla

[FileToRun]
PathToExe=$Bin$\$AppName$\$AppName$.exe

[Environment]
SettingsDir=$Home$\$AppName$

[Functions]
DirCreate=%SettingsDir%
;---------------
; * locale it *
;---------------
DirCopy=$ExeDir$\locales\it_IT|$ExeDir$\locales_it\it_IT
DirRemove=$ExeDir$\locales
DirMove=$ExeDir$\locales_it|$ExeDir$\locales

[WriteToFile=$ExeDir$\fzdefaults.xml]
Line1=<FileZilla3><Settings><Setting name="Config Location">%SettingsDir%</Setting></Settings></FileZilla3>[RunAfter]
;------------
; * backup *
;------------
DirMove=$Backup$\$AppName$\backup_9|$Backup$\$AppName$\backup_10|o
DirMove=$Backup$\$AppName$\backup_8|$Backup$\$AppName$\backup_9|o
DirMove=$Backup$\$AppName$\backup_7|$Backup$\$AppName$\backup_8|o
DirMove=$Backup$\$AppName$\backup_6|$Backup$\$AppName$\backup_7|o
DirMove=$Backup$\$AppName$\backup_5|$Backup$\$AppName$\backup_6|o
DirMove=$Backup$\$AppName$\backup_4|$Backup$\$AppName$\backup_5|o
DirMove=$Backup$\$AppName$\backup_3|$Backup$\$AppName$\backup_4|o
DirMove=$Backup$\$AppName$\backup_2|$Backup$\$AppName$\backup_3|o
DirMove=$Backup$\$AppName$\backup_1|$Backup$\$AppName$\backup_2|o
FileCopy=$Home$\$AppName$\*.xml|$Backup$\$AppName$\backup_1\|o

[Options]
DeleteTemp=true
MultipleIstances=true
ShowSplash=true
WriteLog=false

[SplashScreen]
Image=
Title=
TimeOut=1500


[ Edited Thu 13 Sep 2007 - 00:55 ]
Back to top
Website
Danix
Wed 19 Sep 2007 - 23:45

online

Registered Member #1
Joined: Fri 29 Dec 2006 - 05:38
Location: Sassari
Posts: 12914
[rev12]
Bug fix: evitata la creazione di una sottocartella (innoqua ma inutile) in Backups\backup_10

Aggiungere alla linea 49:

DirRemove=$Backup$\$AppName$\backup_10\backup_9


Quindi la sezione [RunAfter] diventa:


[RunAfter]
;------------
; * backup *
;------------
DirMove=$Backup$\$AppName$\backup_9|$Backup$\$AppName$\backup_10|o
DirMove=$Backup$\$AppName$\backup_8|$Backup$\$AppName$\backup_9|o
DirMove=$Backup$\$AppName$\backup_7|$Backup$\$AppName$\backup_8|o
DirMove=$Backup$\$AppName$\backup_6|$Backup$\$AppName$\backup_7|o
DirMove=$Backup$\$AppName$\backup_5|$Backup$\$AppName$\backup_6|o
DirMove=$Backup$\$AppName$\backup_4|$Backup$\$AppName$\backup_5|o
DirMove=$Backup$\$AppName$\backup_3|$Backup$\$AppName$\backup_4|o
DirMove=$Backup$\$AppName$\backup_2|$Backup$\$AppName$\backup_3|o
DirMove=$Backup$\$AppName$\backup_1|$Backup$\$AppName$\backup_2|o
FileCopy=$Home$\$AppName$\*.xml|$Backup$\$AppName$\backup_1\|o
DirRemove=$Backup$\$AppName$\backup_10\backup_9


[ Edited Wed 19 Sep 2007 - 23:54 ]
Back to top
Website
tittoproject
Wed 31 Oct 2007 - 23:31

online
Registered Member #821
Joined: Wed 24 Jan 2007 - 17:22
Posts: 592
Nella cartella di FileZilla, c'è il file "fzdefaults.xml.example" con istruzioni dettagliate su come modificare la cartella dove salvare le impostazioni:
"FileZilla" wrote ...

Location of settings directory:

By default, FileZilla stores it's settings in the user's home directory. If you want to change this location, modify the "Config Location" setting (see below).

"Config Location" either accepts absolute paths or paths relative to the location of fzdefaults.xml
You can also use environment variables by preceeding them with the dollar sign, e.g. "$HOME/foo".
Use $$ to denote a path containing dollar signs, e.g. "c:\$$foobar\" if settings should be located in "c:\$foobar".
A single dot denotes the directory containing fzdefaults.xml

Ecco il codice base per l'X-Launcher:

[Setup]
AppName=FileZilla

[FileToRun]
PathToExe=$Bin$\$AppName$\$AppName$.exe

[Environment]
FILE_ZILLA_HOME=$Home$\$AppName$

[Functions]
DirCopy=$ExeDir$\docs\fzdefaults.xml.example|$ExeDir$\fzdefaults.xml
DirCreate=%FILE_ZILLA_HOME%

[StringReplace=$ExeDir$\fzdefaults.xml]
"Config Location">|</Setting>=$FILE_ZILLA_HOME/

Eh, eh, era da un pò che non usavo questo programma
Back to top
Danix
Wed 31 Oct 2007 - 23:37

online

Registered Member #1
Joined: Fri 29 Dec 2006 - 05:38
Location: Sassari
Posts: 12914
tittoproject, mi sa che ti sei perso un passaggio...
Back to top
Website
tittoproject
Thu 01 Nov 2007 - 00:05

online
Registered Member #821
Joined: Wed 24 Jan 2007 - 17:22
Posts: 592
Danix wrote ...

tittoproject, mi sa che ti sei perso un passaggio...

Ah, adesso l'ho visto!

Questo:

[WriteToFile=$ExeDir$\fzdefaults.xml]
Line1=<FileZilla3><Settings><Setting name="Config Location">%SettingsDir%</Setting></Settings></FileZilla3>


Beh, non ho fatto il lavoro per niente: infatti, se usi la notazione $SettingsDir come ho fatto io, eviti di riscrivere ogni volta il file e velocizzi (sensibilmente, si tratta di una linea) l'avvio.
E poi mi sembra più elegante modificare il file di default usando StringReplace.
Back to top
Danix
Thu 01 Nov 2007 - 01:03

online

Registered Member #1
Joined: Fri 29 Dec 2006 - 05:38
Location: Sassari
Posts: 12914
S,i in effetti è meglio che far scrivere su un nuovo file.
Lo cambio e integro il backup (sapessi quante volte mi ha salvato! )
Back to top
Website
Danix
Sun 04 Nov 2007 - 02:08

online

Registered Member #1
Joined: Fri 29 Dec 2006 - 05:38
Location: Sassari
Posts: 12914
[Functions]
DirCopy=$ExeDir$\docs\fzdefaults.xml.example|$ExeDir$\fzdefaults.xml


Volevi dire FileCopy, vero?
Back to top
Website
tittoproject
Sun 04 Nov 2007 - 11:42

online
Registered Member #821
Joined: Wed 24 Jan 2007 - 17:22
Posts: 592
Danix wrote ...

[Functions]
DirCopy=$ExeDir$\docs\fzdefaults.xml.example|$ExeDir$\fzdefaults.xml


Volevi dire FileCopy, vero?

Naturalmente
Back to top

Go to page       >>  
Moderators: Danix, Taf, Rcs, Energy, zandet2, ZioZione, Admin, LordJim60

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System