Liberkey and Environment Variables

A problem using LiberKey ?
15 messages • Page 2 sur 21, 2

Re: Liberkey and Environment Variables

Messagede Dji » 09 Septembre 2011, 23:17

It would work if you specify the editor path as relative (e.g "../../Notepad++/") Let us know
"Si boire des coups, aller au concert ou au match, ça devient un combat
Alors tremblez, terroristes !
Parce qu'on est surentraînés !"
@glecalot
Avatar de l’utilisateur
Dji
Administrator
Administrator
 
Messages: 3724
Inscription: 28 Novembre 2007, 09:57
Localisation: Quelque part entre les ombres

Re: Liberkey and Environment Variables

Messagede feeks » 09 Septembre 2011, 23:57

Thank you that worked.

Next question ... is it better to link from and to the LKL.exe or directly from and to the published executable?
feeks
Fresh Boarder
Fresh Boarder
 
Messages: 16
Inscription: 21 Mai 2010, 08:18

Re: Liberkey and Environment Variables

Messagede Dji » 10 Septembre 2011, 00:03

always link to the LKL.exe in order to be handled by LiberkeyPortzabilizer
"Si boire des coups, aller au concert ou au match, ça devient un combat
Alors tremblez, terroristes !
Parce qu'on est surentraînés !"
@glecalot
Avatar de l’utilisateur
Dji
Administrator
Administrator
 
Messages: 3724
Inscription: 28 Novembre 2007, 09:57
Localisation: Quelque part entre les ombres

Re: Liberkey and Environment Variables

Messagede feeks » 10 Septembre 2011, 06:29

Thank you once again. I appreciate your time and effort.
feeks
Fresh Boarder
Fresh Boarder
 
Messages: 16
Inscription: 21 Mai 2010, 08:18

Re: Liberkey and Environment Variables

Messagede another1 » 08 Février 2019, 17:12

Thanks everyone for the help. I also wanted to be able to easily use Liberkey apps from other Liberkey apps and needed an environmental variable to point to the root of the store.

I therefore stored 2 batch files in a Liberkey\CommonFiles subdirectory and ran them via the autostart (end) settings of Liberkey. They are
1) lbk_variables_install.bat
Code: Tout sélectionner
@echo off
REM Remove if existing
reg delete HKCU\Environment /v LBKROOT /f
reg delete HKCU\Environment /v MYAPPS /f
reg delete HKCU\Environment /v APPS /f

REM  %cd:~0,-11% = current path - 11 chars from right
reg add HKCU\Environment /v LBKROOT /t REG_SZ  /d %cd:~0,-11%
reg add HKCU\Environment /v MYAPPS /t REG_SZ  /d %cd:~0,-11%MyApps\
reg add HKCU\Environment /v APPS /t REG_SZ  /d %cd:~0,-11%Apps\


and
2)lbk_variables_remove.bat
Code: Tout sélectionner
@echo off
reg delete HKCU\Environment /v LBKROOT /f
reg delete HKCU\Environment /v MYAPPS /f
reg delete HKCU\Environment /v APPS /f


I hope this helps anyone else who is trying to do the same
another1
Fresh Boarder
Fresh Boarder
 
Messages: 1
Inscription: 08 Février 2019, 17:04

Précédente

15 messages • Page 2 sur 21, 2

Retourner vers Support

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 353 invités

cron