• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

A small registry app

Custom Title Activated
Loyal Member
Joined
Nov 28, 2004
Messages
2,236
Reaction score
0
Hi there.

I need someone to make very simple application.

Here's the idea:

When I launch app.exe file it reads the directory where it is in the memory, i.e. dir="C:\games\WoW".

Then it converts all "\" into "\\".

Then that program reads external file called registry.reg and takes the data into memory. The data of registry.reg could be:
Code:
REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\World of Warcraft]
"DisplayIcon"="%dir%\\WoW.exe"
"DisplayName"="World of Warcraft"
"UninstallString"="%dir%\\Uninstall.exe"

Next step is that the program replaces all %dir% strings with the dir one, taken earlier (in this case C:\\games\\WoW) and then the registry.reg data in the memory (the file should be left intact) should be look like this:
Code:
REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\World of Warcraft]
"DisplayIcon"="C:\\games\\WoW\\WoW.exe"
"DisplayName"="World of Warcraft"
"UninstallString"="C:\\games\\WoW\\Uninstall.exe"

and finally the app.exe creates new file called registry.reg in the windows temporary folder and applies it (without any notices) and deletes the file.

This program could be used in really many cases!

I hope you understood what I want and I think this should be easy to do even for starting programmers.

I really thank you in advance!
 
Custom Title Activated
Loyal Member
Joined
Nov 28, 2004
Messages
2,236
Reaction score
0
Come on!
I really need it badly.
It shouln't be difficult...
 
Newbie Spellweaver
Joined
May 17, 2005
Messages
9
Reaction score
0
Okay, would you mind if it was coded in VB6?
I'll add it as soon as possible.

-edit-

done, read the readme.txt and beta test it :p
added app.zip as attachment.
 

Attachments

You must be registered for see attachments list
Last edited:
Experienced Elementalist
Joined
Apr 18, 2005
Messages
254
Reaction score
0
Yeah very nice... I can use these codes for my own apps :-D Thanks a lot!
 
Custom Title Activated
Loyal Member
Joined
Nov 28, 2004
Messages
2,236
Reaction score
0
Okay, would you mind if it was coded in VB6?
I'll add it as soon as possible.

-edit-

done, read the readme.txt and beta test it :p
added app.zip as attachment.
Oh, finally someone responded!!!
That's great. It works in the manner I wanted.

I really sincerely thank you!
 
Back
Top