Liberkey and Environment Variables

A problem using LiberKey ?
15 posts • Page 2 of 21, 2

Re: Liberkey and Environment Variables

Postby Dji » 09 September 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
User avatar
Dji
Administrator
Administrator
 
Posts: 3724
Joined: 28 November 2007, 09:57
Location: Quelque part entre les ombres

Re: Liberkey and Environment Variables

Postby feeks » 09 September 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
 
Posts: 16
Joined: 21 May 2010, 08:18

Re: Liberkey and Environment Variables

Postby Dji » 10 September 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
User avatar
Dji
Administrator
Administrator
 
Posts: 3724
Joined: 28 November 2007, 09:57
Location: Quelque part entre les ombres

Re: Liberkey and Environment Variables

Postby feeks » 10 September 2011, 06:29

Thank you once again. I appreciate your time and effort.
feeks
Fresh Boarder
Fresh Boarder
 
Posts: 16
Joined: 21 May 2010, 08:18

Re: Liberkey and Environment Variables

Postby another1 » 08 February 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: Select all
@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: Select all
@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
 
Posts: 1
Joined: 08 February 2019, 17:04

Previous

15 posts • Page 2 of 21, 2

Return to Support

Who is online

Users browsing this forum: Google [Bot] and 340 guests