You are here

Registry Rapper Support and Information Forum

43 posts / 0 new
Last post
Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
Registry Rapper Support and Information Forum

I created a registry rapper for those programs that do not use settings files within the program directory. It uses the registry settings exported to a .reg file to keep your settings and clean the system. It will also back your local settings if there is an locally installed version of the application and then re-add them on shutdown of the portable version. The complete instructions are included in the readme.txt file. It also includes a proof of concept example using Angry IP Scanner, allowing you to see how it works.

UPDATE:
NEW VERSION OUT 1.8.0.0 - Here are the Changes:
------------------------------------------
1.8:
New Additions:
- Added current local machine settings save support - Thanks to nm35

Changes:
- Optimized code further for faster search functions for current and personal settings.
- Removed UserProfile Enviromental variable due to possible problems with some programs and the Operating system itself (Per forum coversation with John Here)

------------------------------------------

Check out the poject page here:

Registry Rapper

This program is a non-beta stable release, so please let me know what you all think. Constructive critiscm and all ideas are welcome.

------------------------------------------

For support, comments, suggestions:

Leave a note here in this forum.

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 12 years 10 months ago
Joined: 2006-01-06 21:27
Now a NSIS Dev Team

Now a NSIS Dev Team Member
Check my forums, you have the title
----
R McCue

"If you're not part of the solution, you're part of the precipitate."

Thox
Offline
Last seen: 16 years 4 days ago
Joined: 2006-02-09 06:46
Nice

This makes it simple - but could it be simpler? To get to the point: can the installer/executable load the relevant information from another settings file? That way, you would only need one executable that could handle any application.

I'm not sure if that's possible with the NSIS scripting stuff, but would be well worth it IMO.

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
That's one of my goals, I am

That's one of my goals, I am working on getting to work that way. I will keep ya'll posted on it.

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

Thox
Offline
Last seen: 16 years 4 days ago
Joined: 2006-02-09 06:46
Works

Turns out that NSIS scripting was a bit easier than I thought. I skipped error checking to make this code clean and obvious:

===============

!include "Registry.nsh"

SilentInstall silent
AutoCloseWindow True
WindowIcon Off

!define APPNAME "Starter"
Name "${APPNAME}"
Icon "${APPNAME}.ico"
Caption "${APPNAME}"
OutFile "${APPNAME}.exe"

Var REGFILE
Var REGKEY
Var EXECUTABLE

Section "Main"
	; Read Starter settings (default Starter.ini)
	ReadINIStr $EXECUTABLE "$EXEDIR\${APPNAME}.ini" "${APPNAME}" "Executable"
	ReadINIStr $REGFILE "$EXEDIR\${APPNAME}.ini" "${APPNAME}" "RegFile"
	ReadINIStr $REGKEY "$EXEDIR\${APPNAME}.ini" "${APPNAME}" "RegKey"
  
	; Load registry (default settings.reg)
	${Registry::RestoreKey} "$REGFILE" $0

	; Execute application
	ExecWait $EXEDIR\$EXECUTABLE

	; Export registry
	Delete $EXEDIR\$REGFILE
	${Registry::SaveKey} "$REGKEY" "$REGFILE" "/G=1" $0
	${Registry::DeleteKey} "$REGKEY" $0
SectionEnd
Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
Updated Version 0.5.0.0

Check it out.

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

Thox
Offline
Last seen: 16 years 4 days ago
Joined: 2006-02-09 06:46
Code style

Is there a nicer way of coding these NSIS scripts? I've always considered "Goto" a bit hackish, and usually to be avoided. I've not seen enough scripts to know what's right and wrong. I'll obviously have to look in to these things a bit more.

What are your planned features for the future? Perhaps handling folders that get created in Application Data?

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 12 years 10 months ago
Joined: 2006-01-06 21:27
What?

Goto is not hackish
What would you recommend?
----
R McCue

"If you're not part of the solution, you're part of the precipitate."

Thox
Offline
Last seen: 16 years 4 days ago
Joined: 2006-02-09 06:46
Manual examples

The NSIS manual examples all seem to use a lot of Goto's aswell, so obviously it's one of the main ways for handling control flow in the scripts.

I call is hackish because I've not used any language where I've needed to "goto" anywhere. Give me good old if, else, while, for and switch.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 12 years 10 months ago
Joined: 2006-01-06 21:27
NSIS is based on assembly I

NSIS is based on assembly
I actually prefer Goto
----
R McCue

"If you're not part of the solution, you're part of the precipitate."

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 12 years 10 months ago
Joined: 2006-01-06 21:27
NSIS is based on assembly I

NSIS is based on assembly
I actually prefer Goto
----
R McCue

"If you're not part of the solution, you're part of the precipitate."

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
Goto Works for me

I actually like goto as it gives me a better overview of the flow of the script throughout the program. So, I will continue to use it in my code on this and future programs.

Thanks,

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
Plans

As of now, I am concentrating on the registry, Application Data and other folders will come later after the registry is ironed out.

My next goal is to make the prog find the entries in the registry itself and export them, so the user does not have to. I will be working on this in the next few days, I have a way in the works and will let it out as soon as it is tested.

Thanks,

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

melendz
Offline
Last seen: 4 years 7 months ago
Joined: 2006-02-07 19:05
*.reg file deleted at shut down

Deuce, nice little program. I followed the instructions in the README.txt file and tested CleanDisk Security. It loaded the registry keys during startup and removed the keys when the program shut down. However, it also deleted the *.reg file from when the program shut down. Is that by design? What if I want to run the program again?

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
By Design

The program deletes the .reg file before it saves the key from the registry back to the same file. Basically removing the old and replacing it with the new. The reason for this is that the .reg file that you used when the program starts up is the settings that were last known use. So when you are finished it copies those new settings to the .reg file again. Effectively allowing you to change the settings of the program as much as you want and they will still be there the next time you start.

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

melendz
Offline
Last seen: 4 years 7 months ago
Joined: 2006-02-07 19:05
New *.reg file not created

Thanks for your response. I now follow what the program is supposed to do. However, in my case, only the old file is deleted. The new *.reg file with the new settings is not created. Also, the registry key is not removed the the application is closed.

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
Must be a problem with the reg key.

Check the reg key again and make sure it is entered into the ini file as:

[RegRap]
EXECUTABLE=ipscan.exe
REGFILE=settings.reg
REGKEY=HKEY_CURRENT_USER\Software\programname

If it is correct and it still is not working, use my contact information, to send me a copy of your INI file and the .reg file, I will check it out and see what the problem is.

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

melendz
Offline
Last seen: 4 years 7 months ago
Joined: 2006-02-07 19:05
Thanks

Thanks. The problem was that I left the brackets around the regkey when I copied it from the settings.reg file.

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
Great...

Glad I could help.

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 8 years 10 months ago
Developer
Joined: 2005-12-10 15:22
I am writing a GUI for Reg

I am writing a GUI for Reg Rapper if anyone is interested Smile

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

Thox
Offline
Last seen: 16 years 4 days ago
Joined: 2006-02-09 06:46
Interesting

What did you have in mind? Selection of the executable and a registry entry? I think the biggest part from holding back the usability of something like Reg Rapper is the registry export - which I believe is being worked on.

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
@ Steve and Thox

I have been really busy these last few days with my new daughter and trying to get everything back into a rythm. I have not had a chance to work on the rapper during this. I am hoping that I can start working with the registry search portion sometime next week, but cannot be certain.

So, please work on the code and let me know by email what features you would like to add to the rapper, and if you have it completed let me know that code and I will add it in for the next release.

Thanks,

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

Thox
Offline
Last seen: 16 years 4 days ago
Joined: 2006-02-09 06:46
Registry

You mentioned you had an idea about the registry search - care to share? My only thoughts so far are to use an external program to dump out the changes between two registry snapshots.

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
Registry Plugin...

has a search, I used it for the setup of the search function. Check out he new version 1.0 for more info.

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
NEW VERSION 1.0 OUT...

Everyone check it out and let me know any problems found.

Thanks.

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
New links.....

Added new forum and changed download link. check it out!

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

NMC
Offline
Last seen: 11 years 7 months ago
Joined: 2006-01-13 19:33
Using app

I have been trying out the Registry Rapper and am impressed. I have been trying to get some basic security on my various USB drives which does not require admin priveliges. So I have tried ABC Lock V1.6 (www.acezip.net) which hides folders and am running it with Registry Rapper. All seems to be working OK. If anyone out there with more computer knowledge than me has similar interest in this and would like to try it out and comment on the security level I would be grateful.
Great app, thanks!!

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
Quick update on my work.

I have updated Registry Rapper to version 1.5.

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
Version 1.8 is out!

Check it out and let me know what you all think. And thanks to nm35 for the code on the current local settings backup.

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
Updated...

With the new project page. Check out the page, for download links and information.

***********************************
Deuce {The Core}{Dev Blog}
Portable Software: Just the beginning.

Deuce
Portable Software: Just the beginning.

Tiger
Offline
Last seen: 16 years 2 months ago
Joined: 2006-05-25 00:25
Deuce, thanks for this

Deuce, thanks for this program ,4 programs worked fine with it:
SnagIt , SprintDB Pro Desktop Companion , Flashget , PhatPad
That made my life much easier , especialy with (portable) Flashget!!
Sorry it did't work with ACDSee!!
I am trying it with more programs now

Deuce
Offline
Last seen: 11 years 10 months ago
Developer
Joined: 2005-12-24 16:32
No problem...

I am glad it works for you.

***********************************
Deuce {The Core}{Dev Blog}
Portable Software: Just the beginning.

Deuce
Portable Software: Just the beginning.

Kilroy2004
Offline
Last seen: 16 years 3 days ago
Joined: 2006-06-07 14:22
Avoid Registry Entirely?

This looks like a really neat program.

However, here is an issue I have come across:
A computer where I do not have access to modify the HKLM registry branch, so I need to be able to avoid registry calls entirely. Any ideas?

Smile

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 12 years 10 months ago
Joined: 2006-01-06 21:27
Hmm

SandboxIE or Thinstall
Or the Libertà core coming soon.
----
R McCue
PortaBlog Home and My Website

"If you're not part of the solution, you're part of the precipitate."

Kilroy2004
Offline
Last seen: 16 years 3 days ago
Joined: 2006-06-07 14:22
No Go

SandboxIE and Thinstall both require installs on the computer you plan to use them on - so that won't work.

Libertà (as far as I can tell) only uses Reg Rapper at the moment - so its functionality isn't doing what I need (I think). I can't have ANY registry writes to HKLM.

Libertà Core... is that something new? (Sorry, I don't think that question belongs on this forum - feel free to direct me to the proper place or email me: kilroy2004 @ gmail.com

azjerry
Offline
Last seen: 4 years 10 months ago
Joined: 2005-12-09 12:42
SandBoxie is portable

There's a link some where here with the technique. I have it on my USB and is works fine.

Lurking_Biohazard
Lurking_Biohazard's picture
Offline
Last seen: 3 years 11 months ago
Joined: 2006-02-18 18:06
Not hard to find.

A very quick search for "Portable" & "Sandboxie" came up with 1 result.

https://portableapps.com/node/1124

~Lurk~ Email

~Lurk~

Kilroy2004
Offline
Last seen: 16 years 3 days ago
Joined: 2006-06-07 14:22
Portable is a relative term...

A cursory glance over that thread shows me that "Portable Sandboxie" is not portable either. It makes changes to the registry, then once you close it, it cleans up the registry writes.

I need a way to avoid ever writing to the registry.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 8 years 10 months ago
Developer
Joined: 2005-12-10 15:22
Libertà Core...

... Dosen't actually exists (I should know I was writing it) as it was replaced with the Launchpad & AutoStart (coming soon). However here is a module that I am working on that hopes to completely wrap all file and registry calls. I'd say it'll take a month or two for an initial beta.

Yours

Steve Lamerton

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 12 years 10 months ago
Joined: 2006-01-06 21:27
Yep.

Actually, I meant Lapwing.
----
R McCue
PortaBlog Home and My Website

"If you're not part of the solution, you're part of the precipitate."

Kilroy2004
Offline
Last seen: 16 years 3 days ago
Joined: 2006-06-07 14:22
LapWing?

Ok, I've searched wikipedia, this forum, google... and I have no idea what LapWing is (besides a bird). Care to enlighten? Biggrin

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 12 years 10 months ago
Joined: 2006-01-06 21:27
He He He

"If you're not part of the solution, you're part of the precipitate."

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 8 years 10 months ago
Developer
Joined: 2005-12-10 15:22
More info coming on that

More info coming on that later today as well as some other announcements.

Yours

Steve Lamerton

Topic locked