![]() |
#161 | |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Quote:
|
|
![]() |
![]() |
![]() |
#162 | |
Junior Member
Join Date: Jul 2008
Location: Ivanovo, Russia
Posts: 16
|
Quote:
|
|
![]() |
![]() |
![]() |
#163 |
Senior Member
Join Date: Oct 2009
Location: Germany
Posts: 120
|
No ideas about my problem?
--- EDIT --- I've found accidently found the problem. I'm executing RestoreKey, logging a related status message and deleting the file used by the plug-in. If I don't delete the file or Sleep some ms, everything works fine. Last edited by ChocJunkie; 27th October 2009 at 13:51. |
![]() |
![]() |
![]() |
#164 |
Senior Member
Join Date: Oct 2009
Location: Germany
Posts: 120
|
I came to notice no flag/constant indicates if the header file has already been included.
What's about include the !ifndef...!define comands in the plugin? Or does no one else need it? CJ |
![]() |
![]() |
![]() |
#165 |
Member
Join Date: Nov 2009
Posts: 52
|
Unicode NSIS update
Would there be any chance to get an update of Registry.dll what works with Unicode NSIS ?
Thanx ! |
![]() |
![]() |
![]() |
#166 |
Junior Member
Join Date: Dec 2009
Posts: 1
|
Multivalues in a REG_MULTI_SZ key
I'm trying to create a REG_MULTI_SZ key with several values, but i have no way to give it more than one value. How should I give the values? I've tried separating with "\n" and "\0" but it didn't work.
I use this instruction: ${registry::Write} "HKCU\${COMPANY_REGKEY}\Settings" "Name" "Generic Value" "REG_MULTI_SZ" $R0 Thaks in advance! carillan |
![]() |
![]() |
![]() |
#167 |
Member
Join Date: Nov 2009
Posts: 52
|
REG_MULTI_SZ read/write
I've included some scripts which should do the job !
The reader I've used myself and works fine, but you'll have to make some modifications to store the value into a string ! The writer I haven't tried jet ! |
![]() |
![]() |
![]() |
#168 |
Senior Member
Join Date: Oct 2009
Location: Germany
Posts: 120
|
Has the 64bit problem been solved? Or are there any ideas for a workaround?
CJ |
![]() |
![]() |
![]() |
#169 |
Member
Join Date: Nov 2009
Posts: 52
|
Recompiled for Unicode NSIS
I recompiled it my self in the end !
Although I tested it thoroughly, there could still be some minor issues. Let me know if there is any behavior difference compared with the ansi version. portableapps.com/node/21879 By the way: MULTI_SZ needs '$\n' |
![]() |
![]() |
![]() |
#170 |
Junior Member
Join Date: Sep 2007
Posts: 13
|
open finding blank entry when further files exist
Hi,
I am trying to clean up the registry from some previous bad installations and have about 30 entries registry keys called: HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins\@antixlabs.com/npagp,version={VERSION} where version varies. I wanted to loop through and delete all these but currently when I do this it seems to find 9 entries and then find returns blank entry. If I run it again it find more entries until another blank entry is returned. My code is below, am I doing something wrong? PHP Code:
Mark |
![]() |
![]() |
![]() |
#171 |
Junior Member
Join Date: Feb 2011
Posts: 4
|
Instructor,
Please add support of "SetRegView 64" or something similar to it. I used v3.6. I am running 32-bit installer on 64-bit Windows system. My issue is that value is wirtten to "Software\Wow6432Node\" instead of "Software\" Thanks, Valery. |
![]() |
![]() |
![]() |
#172 | |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
This plug-in needs updating.
Quote:
|
|
![]() |
![]() |
![]() |
#173 |
Junior Member
Join Date: Jan 2010
Posts: 39
|
using NSIS Unicode version
Did any of you used this plugin with the Unicode version of NSIS?
I don't know why but it doesn't work. Could someone give me a clue in this? Thanks, Isawen ![]() |
![]() |
![]() |
![]() |
#174 |
Member
Join Date: Nov 2009
Posts: 52
|
You will need a unicode version of the plug-in
... to use in Unicode Nsis
On the following web page their are a few converted plug-ins, including the Registry one: http://portableapps.com/node/21879 |
![]() |
![]() |
![]() |
#175 | |
Junior Member
Join Date: Jan 2010
Posts: 39
|
Quote:
At a first try the plugin methods are working. Is there any drawback in this unicode plugin? ![]() |
|
![]() |
![]() |
![]() |
#176 |
Member
Join Date: Nov 2009
Posts: 52
|
No drawbacks that I know of.
I done a basic test on every function after I converted it.
That said, we only used it in the portableapps.com launchers. The launchers basically only use the following functions:
So using any other function you'd wanna be a little bit more carefull, but it should be fine. regards |
![]() |
![]() |
![]() |
#177 |
Major Dude
Join Date: Jul 2004
Posts: 671
|
Added: full unicode support on NSIS Unicode.
Added: support for SetRegView 64. Added: export key contents to the file in unicode "Windows Registry Editor Version 5.00" format. Registry plugin v4.0 |
![]() |
![]() |
![]() |
#178 |
Junior Member
Join Date: Jun 2011
Posts: 15
|
The version 4 convert string to hex different to version 3.5, this is a bug?
|
![]() |
![]() |
![]() |
#179 |
Major Dude
Join Date: Jul 2004
Posts: 671
|
Added: separate functions:
Registry plugin v4.1 |
![]() |
![]() |
![]() |
#180 |
Junior Member
Join Date: Jun 2011
Posts: 15
|
Thanks!
|
![]() |
![]() |
![]() |
#181 |
Junior Member
Join Date: Jun 2011
Posts: 15
|
The Version 4 always need elevation?, The gringoloco modified version allow make changes in hkcu root key without elevation, the new version 4.x not allow make changes in any key without elevation.
|
![]() |
![]() |
![]() |
#182 | |
Major Dude
Join Date: Jul 2004
Posts: 671
|
vicokoby
Quote:
|
|
![]() |
![]() |
![]() |
#183 | |
Member
Join Date: Nov 2009
Posts: 52
|
${registry::RestoreKey}
Quote:
In the ANSI days we never used ${registry::RestoreKey} cause it doesn't wait for regedit to finish it's job and somehow (I can't remember now) it was preferable to use Reg.exe. Like this: PHP Code:
Still, I'm not really certain that vicokoby was refering to the ${registry::RestoreKey} function. Ps. : Do not be to impressed by the code, it was basically my first C project ![]() Edit: another bug we found was, when trying to MoveKey from HKLM to HKCU without the needed privileges, MoveKey returned an error, but copied the whole key to HKCU anyway while not being able to delete the HKLM key. We made a quick fix for it in our launcher code. see: http://portableapps.hg.sourceforge.n...f2d5a0f#l1.130 regards Last edited by gringoloco023; 14th August 2011 at 12:18. |
|
![]() |
![]() |
![]() |
#184 |
Junior Member
Join Date: Mar 2008
Posts: 13
|
Hello !
This script is amazing for registry manipulation. But on the research I can not process the results. I would find keys "Desktop Integration" in many places (in the hive Key Users), and then modify a String value that can be found here "\Desktop Integration \ 1 \ URL" How can I get the result of "Desktop Integration" and then add the key "1" to finally fulfill my pre-field "URL"? Is it possible? Thank you ... I'm lost! |
![]() |
![]() |
![]() |
#185 |
Junior Member
Join Date: Sep 2011
Posts: 12
|
@gringoloco023
So your modified version of the registry plugin automatically waits until a command (savekey, restorekey, etc.) is fully executed (and I don't have to use sleep commands after such a command)? Apart from that, thanks for providing it, I just stumbled upon the issue (with the original plugin) that I can't use restorekey with RequestExecutionLevel user. It won't import a .reg file even if it contains only hkcu entries and because I use NSIS to make portable setups this is a big showstopper... |
![]() |
![]() |
![]() |
#186 |
Major Dude
Join Date: Jul 2004
Posts: 671
|
Delete
|
![]() |
![]() |
![]() |
#187 |
Junior Member
Join Date: Oct 2011
Posts: 1
|
Can't read MachineGuid
I'm attempting the following but just getting blank strings for the value and type:
${registry::Read} "HKLM\SOFTWARE\Microsoft\Cryptography" "MachineGuid" $MACHGUID $1 However the following returns 0, indicating the key exists: ${registry::KeyExists} "HKLM\SOFTWARE\Microsoft\Cryptography" $2 Is this key not readable for some reason? TIA. |
![]() |
![]() |
![]() |
#188 |
Junior Member
Join Date: Sep 2011
Posts: 5
|
Hi Instructor! I love your plugin! Would you add support of 64-bit keys? 'SetRegView 64' don't work. I need to use ${registry::movekey} on some 64-bit keys.
Thanks! Regards, David Pi Add: I've just download the version 4.1. And found it works perfect with 'SetRegView 64'. I've been using an old version before. Sorry for this post! |
![]() |
![]() |
![]() |
#189 |
Major Dude
Join Date: May 2003
Posts: 681
|
solved
|
![]() |
![]() |
![]() |
#190 | |
Junior Member
Join Date: Jul 2011
Posts: 49
|
Quote:
thank you.. i hadn't noticed there was a newer version... works great under 64-bit.. however.. now it's incompatible with XP? i have to make two separate launchers for my portableapps ![]() |
|
![]() |
![]() |
![]() |
#191 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
What have you found that suggests that it isn't compatible with XP? The flag that is set by SetRegView 64 is ignored on non 64-bit OS's.
Stu |
![]() |
![]() |
![]() |
#192 | |
Junior Member
Join Date: Jul 2011
Posts: 49
|
![]() Quote:
it's not the registry plugin.. it was my fault.. the portableapp was already installed on the host machine i was testing and didn't realize. Sorry about that.. Setregview 64 works great with 4.1.. ![]() no complaints here. |
|
![]() |
![]() |
![]() |
#193 |
Junior Member
Join Date: Jul 2011
Posts: 49
|
Something wrong with Hex?
anyone know why i can't save hex from the registry?
PHP Code:
but there is more in the registry.. no matter what i try. .. it refuses to save the rest..? is this a glitch or am i missing something? What's werid.. is if i import first.. it saves correctly.. By the way.. here's my code: PHP Code:
Last edited by PoRtAbLe_StEaLtH; 8th January 2013 at 06:19. Reason: Added Code |
![]() |
![]() |
![]() |
#194 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Maybe related to NSIS_MAX_STRLEN?
|
![]() |
![]() |
![]() |
#195 |
Junior Member
Join Date: Jul 2011
Posts: 49
|
thank you.. im starting to believe this is the case.
i believe it's due to "null terminating strings". As you can see in the example above.. Each Value has multiple "null terminating strings". NSIS stops at the first "null". is it possible to bypass this restriction ? |
![]() |
![]() |
![]() |
#196 |
Junior Member
Join Date: Jul 2011
Posts: 49
|
RegOpen Error
just tried RegOpen:
PHP Code:
![]() the first value is read correctly.. but the rest are shown as [] for value, string, and type. from my research.. MULTI_SZ seems to be very hard for NSIS to handle. I've found reading & writing MULTI_SZ routines.. but those are for specific keys. Last edited by PoRtAbLe_StEaLtH; 8th January 2013 at 14:39. Reason: added screen |
![]() |
![]() |
![]() |
#197 |
Junior Member
Join Date: Jul 2011
Posts: 49
|
Found Solution
unbelievably.. using MS-DOS is the solution for MULTI_SZ that exceed MaxLengthStr
To export/save: PHP Code:
PHP Code:
PHP Code:
|
![]() |
![]() |
![]() |
#198 |
Junior Member
Join Date: Sep 2011
Posts: 12
|
Is there any chance that the bug (at least I call it a bug...) that it's unable to import .reg files to HKEY_CURRENT_USER without elevation will get fixed?
Apart from that it's a perfect addon! |
![]() |
![]() |
![]() |
#199 |
Junior Member
Join Date: Jul 2014
Posts: 3
|
Hi Instructor,
Does this plugin support unicode or it is for ANSI only? |
![]() |
![]() |
![]() |
#200 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
If there is only one .dll in the .zip file then it is most likely ANSI only...
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Tags |
plug-in, registry |
Thread Tools | Search this Thread |
Display Modes | |
|
|