- 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:
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:
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!
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!