Voila... ébauche de la MoStick, lanceur de la Framakey:
Le code (j'ai laissé les bribes de mes lignes pour servir d'aide, je ferais des exemples generiques...)
- Code: Tout sélectionner
[Config]
ImageList=MoStick.bmp
TrayIcon=MoStick.ico
ServiceCheckInterval=3
ID=MoStick
AboutHeader=MoStick Framakey Launcher
AboutVersion=Version 0.1
[AboutText]
MoStick est un lanceur d'applications portables sur votre clé USB.
Il permet de lancer vos applications depuis la barre des tâches.
Ce projet est initié par des utilisateurs de la Framakey.
[Variables]
; la ligne suivante contient la déclaration de la variable %Donnees%
;Elle pointe vers le répertoire mes_donnees à la racine de la clé
Type: static; Name: Donnees; Value: "%AeTrayMenuPath%\..\mes_donnees"; Flags: ispath
; la ligne suivante contient la déclaration de la variable %FramaKey%
;Elle pointe vers le répertoire racine du site FramaKey à la racine de la clé
Type: static; Name: FramaKey; Value: "%AeTrayMenuPath%\..\FramaKey"; Flags: ispath
; la ligne suivante contient la déclaration de la variable %Programs%
;Elle pointe vers le répertoire Programs à la racine de la clé
Type: static; Name: Programs; Value: "%AeTrayMenuPath%\..\programs"; Flags: ispath
;les lignes suivantes reprennent les variables d'environnement de l'ordinateur
Type: environment; Name: HomeDrive; EnvName: "HOMEDRIVE"
Type: environment; Name: HomePath; EnvName: "HOMEPATH"
[DoubleClickAction]
Action: shellexecute; FileName: "%Donnees%";
;---- Début du menu gauche ----
[Menu.Left.Settings]
BarVisible=yes
BarPictureHorzAlignment=center
BarPictureOffsetX=0
BarPictureOffsetY=0
BarPicturePicture=MoStick_left.bmp
BarPictureTransparent=no
BarPictureVertAlignment=bottom
BarBorder=clNone
BarSide=left
BarSpace=0
BarWidth=32
SeparatorsAlignment=center
SeparatorsSeparatorStyle=normal
[Menu.Left]
Type: item; Caption: "Firefox"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Glyph: 14
Type: item; Caption: "Thunderbird"; Action: shellexecute; FileName: "%Programs%\PortableThunderbird\PortableThunderbird.exe"; Glyph: 13
Type: separator
Type: item; Caption: "OpenOffice"; Action: shellexecute; FileName: "%Programs%\portableopenoffice\portableopenoffice.exe"; ShowCmd: maximized; Glyph: 15
Type: separator
Type: item; Caption: "Gaim"; Action: shellexecute; FileName: "%Programs%\PortableGaim\PortableGaim.exe"; Glyph: 4
Type: separator
Type: item; Caption: "Mes Données"; Action: shellexecute; FileName: "%Donnees%"; Glyph: 12
Type: item; Caption: "Mes Documents"; Action: shellexecute; FileName: "%HomeDrive%%HomePath%"; Glyph: 12
Type: separator
Type: submenu; Caption: "Tous les programmes"; SubMenu: programmes; Glyph: 12
Type: separator
Type: item; Caption: "E&xit"; Action: exit; Glyph: 7
[programmes]
Type: item; Caption: "Audacity"; Action: shellexecute; FileName: "%Programs%\PortableAudacity\PortableAudacity.exe"; Glyph: 21
Type: item; Caption: "CoolPlayer"; Action: shellexecute; FileName: "%Programs%\PortableCoolPlayer\PortableCoolPlayer.exe"; Glyph: 23
Type: item; Caption: "VLC"; Action: shellexecute; FileName: "%Programs%\PortableVLC\PortableVLC.exe"; Glyph: 24
Type: separator
;Type: item; Caption: "Abakt"; Action: shellexecute; FileName: "%Programs%\PortableAbakt\PortableAbakt.exe"; Glyph: 25
Type: separator
Type: item; Caption: "Abiword"; Action: shellexecute; FileName: "%Programs%\portableAbiword\portableAbiword.exe"; ShowCmd: maximized; Glyph: 0
Type: item; Caption: "OpenOffice"; Action: shellexecute; FileName: "%Programs%\portableopenoffice\portableopenoffice.exe"; ShowCmd: maximized; Glyph: 15
Type: separator
Type: item; Caption: "Firefox"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Glyph: 14
Type: item; Caption: "Sunbird"; Action: shellexecute; FileName: "%Programs%\PortableSunbird\PortableSunbird.exe"; Glyph: 1
Type: item; Caption: "Thunderbird"; Action: shellexecute; FileName: "%Programs%\PortableThunderbird\PortableThunderbird.exe"; Glyph: 13
Type: separator
Type: item; Caption: "Gaim"; Action: shellexecute; FileName: "%Programs%\PortableGaim\PortableGaim.exe"; Glyph: 4
Type: separator
Type: item; Caption: "Cornice"; Action: shellexecute; FileName: "%Programs%\PortableCornice\PortableCornice.exe"; ShowCmd: maximized; Glyph: 27
Type: item; Caption: "Gimp"; Action: shellexecute; FileName: "%Programs%\PortableGimp\PortableGimp.exe"; Glyph: 28
Type: separator
Type: item; Caption: "NSIS"; Action: shellexecute; FileName: "%Programs%\PortableNSIS\PortableNSIS.exe"; Glyph: 2
Type: item; Caption: "NVU"; Action: shellexecute; FileName: "%Programs%\PortableNVU\PortableNVU.exe"; Glyph: 30
Type: item; Caption: "SCITe"; Action: shellexecute; FileName: "%Programs%\PortableSCITe\PortableSCITe.exe"; Glyph: 6
Type: separator
Type: item; Caption: "Filezilla"; Action: shellexecute; FileName: "%Programs%\FileZilla\FileZilla.exe"; Glyph: 20
Type: submenu; Caption: "Cryptage"; SubMenu: cryptage; Glyph: 19
Type: submenu; Caption: "Sauvegarde"; SubMenu: sauvegarde; Glyph: 25
[cryptage]
Type: item; Caption: "RealCrypt"; Action: shellexecute; FileName: "%Programs%\realcrypt\RealCrypt.exe"; Glyph: 19
Type: item; Caption: "RealCrypt Format"; Action: shellexecute; FileName: "%Programs%\realcrypt\RealCrypt Format.exe"; Glyph: 19
Type: item; Caption: "Montage Volume Crypté"; Action: shellexecute; FileName: "%Programs%\realcrypt\RealCrypt.exe";Parameters: " ""/q"" ""/a"" ""/lV"" ""/m"" ""rm"" ""/v"" ""%donnees%\secure"" "; Glyph: 19
Type: item; Caption: "Démontage de tous les Volumes"; Action: shellexecute; FileName: "%Programs%\realcrypt\RealCrypt.exe";Parameters: " ""/q"" ""/d"" "; Glyph: 19
[sauvegarde]
Type: item; Caption: "Abakt"; Action: shellexecute; FileName: "%Programs%\PortableAbakt\PortableAbakt.exe"; Glyph: 25
Type: item; Caption: "Sauvegarde Rapide"; Action: shellexecute; FileName: "%Programs%\PortableAbakt\PortableAbakt.exe";Parameters: " ""-b"" ""-x"" ""-m"" ""DoIncrementalBackup"" ""rapidbackup.abp"" "; Glyph: 25
Type: item; Caption: "Sauvegarde Complete"; Action: shellexecute; FileName: "%Programs%\PortableAbakt\PortableAbakt.exe";Parameters: " ""-b"" ""-x"" ""-m"" ""DoIncrementalBackup"" ""completebackup.abp"" "; Glyph: 25
;---- Fin du menu gauche ----
;---- Début du menu droit ----
[Menu.Right.Settings]
AutoLineReduction=no
AutoHotKeys=yes
BarVisible=yes
BarPictureHorzAlignment=center
BarPictureOffsetX=0
BarPictureOffsetY=0
BarPicturePicture=MoStick_right.bmp
BarPictureTransparent=no
BarPictureVertAlignment=bottom
BarBorder=clNone
BarSide=right
BarSpace=0
BarWidth=32
SeparatorsAlignment=center
[Menu.Right]
Type: separator; Caption: "Liens"
Type: item; Caption: "Framasoft"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "http://www.framasoft.net"; Glyph: 14
Type: item; Caption: "Framakey"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "http://www.framakey.org"; Glyph: 14
Type: item; Caption: "Framagora (Forum Framasoft)"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "http://www.forum.framasoft.org"; Glyph: 14
Type: separator; Caption: "Framakey"
Type: item; Caption: "Framakey"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "%FramaKey%\index.html"; Glyph: 14
Type: item; Caption: "Les Applications libres"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "%FramaKey%\index.html"; Glyph: 14
Type: item; Caption: "Le Libre"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "%FramaKey%\index.html"; Glyph: 14
Type: item; Caption: "Les Applis Framakey"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "%FramaKey%\index.html"; Glyph: 14
Type: item; Caption: "La Culture Libre"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "%FramaKey%\index.html"; Glyph: 14
Type: separator; Caption: "Mostick"
Type: item; Caption: "A propos de MoStick"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "%FramaKey%\index.html"; Glyph: 14
Type: item; Caption: "Ho Tow"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "%FramaKey%\index.html"; Glyph: 14
Type: item; Caption: "FAQ"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "%FramaKey%\index.html"; Glyph: 14
Type: separator; Caption: "Configuration"
Type: item; Caption: "Ouvrir fichier conf avec Scite"; Action: shellexecute; FileName: "%Programs%\PortableSCITe\PortableSCITe.exe"; Parameters: "%AeTrayMenuPath%\MoStick.ini"; Glyph: 6;
Type: item; Caption: "&Reload Menu"; Action: readconfig; Glyph: 11
Type: separator
Type: item; Caption: "Aide"; Action: shellexecute; FileName: "%Programs%\PortableFirefox\PortableFirefox.exe"; Parameters: "%AeTrayMenuPath%\JoStick.htm" ; Glyph: 9
Type: separator
Type: item; Caption: "Command"; Action: shellexecute; FileName: "%System%\cmd.exe"; WorkingDir: "%HomeDrive%"; Glyph: 8
;---- Fin du menu droit ----
capture du menu bouton gauche:
capture du menu bouton droit:
ensuite, l'install de MoStick sur la clé peut se configurer avec NSIS... install assisté, case a cocher des applis installés, et generation du fichier ini.
ensuite, j'ai pensé a un truc concernant, les paquets "en petits bout" de la framakey... telecharger les paquet zip que l'ont veut a un emplacement.. style Framakey "base" + chaque applis que l'ont choisis en zip. Ont lance alors l'install du package "base" construit avec NSIS. l'install detecte les paquets des differents noms dans le meme repertoire, et installe tout en une seule passe et genere les INI...
ça, c'est surtout pour pig... ça risque de l'interresser cette idée...
en gros, ça donnerais ça:
framakey_base.exe
openoffice.org.zip
VLC.zip
etc...
on a qu'a lancer framakey_base.exe, et hop, tout s'installe en auto...
framakey_base integrerais par exemple MoStick, FramaSite + Firefox ou alors FramaSite + K-meleon, + eventuellement solution de sauvegarde et de cryptage en standard.