You are here

How to convert (.reg) to [RegistryValueWrite] ?

13 posts / 0 new
Last post
dhiTek
Offline
Last seen: 11 years 3 weeks ago
Joined: 2012-06-03 01:51
How to convert (.reg) to [RegistryValueWrite] ?

Hi everybody, I can't make Portableapp.com Launcher if registry not write before programs running, but, I have .reg with 1772 line, this will take a long time if write a manual to [RegistryValueWrite] ?

please tell me, how to convert (.reg) to [RegistryValueWrite] ?
or is there a simple way for this ?

thanks before.

Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 1 week ago
Developer
Joined: 2008-09-30 19:18
Use [RegistryKeys]

Inside your App\DefaultData folder create a folder called settings and copy the (.reg) file into there. Then in the launcher.ini use [RegistryKeys] to handle the data instead.

[RegistryKeys]
(.reg filename minus extension)=(key to import the data to)
dhiTek
Offline
Last seen: 11 years 3 weeks ago
Joined: 2012-06-03 01:51
yes, i will try this, but I

yes, i will try this, but I don't know this format.

[RegistryKeys]
(.reg filename minus extension)=(key to import the data to)

I try like this :
filename is Setting.reg
Setting.reg contains like this :

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{00000012-0F56-11D2-9887-00A0C969725B}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{026D0A21-9BB9-11D0-AEBC-00A0C9053912}]

but, this ?

[RegistryKeys]
Setting=HKLM\SOFTWARE\Classes\CLSID\?????

I am confused with key :

{00000012-0F56-11D2-9887-00A0C969725B}
{026D0A21-9BB9-11D0-AEBC-00A0C9053912}

thanks Pyromaniac.

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 20 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Seperate

You keep each key separate. As in:

[RegistryKeys]
ClassID1=HKLM\SOFTWARE\Classes\CLSID\{00000012-0F56-11D2-9887-00A0C969725B}
ClassID2=HKLM\SOFTWARE\Classes\CLSID\{026D0A21-9BB9-11D0-AEBC-00A0C9053912}

One key = one file.

Sometimes, the impossible can become possible, if you're awesome!

dhiTek
Offline
Last seen: 11 years 3 weeks ago
Joined: 2012-06-03 01:51
one key = one file

it's amazing...

one key = one file
Shock

I've key with 1700 lines, even more.
The End...I gave up Sad

Thanks John !

maybe use AutoIt ?
if anyone wants to solve this problem, I'm very grateful...

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 20 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
More Details

Perhaps if you include more details of what you're trying to do it would help.

Sometimes, the impossible can become possible, if you're awesome!

dhiTek
Offline
Last seen: 11 years 3 weeks ago
Joined: 2012-06-03 01:51
Thanks

Thanks John.
This impossible to put here, because very long.
1700 line Smile

Can I used WriteRegStr on Custom Code ?
Where location WriteRegStr, Init, Pre, PrePrimary, PreSecondary, PreExec, PreExecPrimary or PreExecSecondary ?

John T. Haller
John T. Haller's picture
Offline
Last seen: 5 hours 20 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
What

I mean what are you trying to accomplish? What app could possibly have 1700 class registry keys and why?

Sometimes, the impossible can become possible, if you're awesome!

dhiTek
Offline
Last seen: 11 years 3 weeks ago
Joined: 2012-06-03 01:51
I needed registers DLL on certain functions

My purpose is Chris Morgan has explain.
I needed registers DLL on certain functions.
Launcher work to open aplication, but certain functions not working.
Thanks your response John.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
DLL servers, type libraries, etc.: avoid

Sounds like you're dealing with an app that registers DLL servers or type libraries or other such things which go in HKCR\CLSID. I have two suggestions:

  • Check if you actually need them; typically these things are done by installers only and should not be done in a portable app. When creating a portable app, you typically don't care about what the installer does but rather care about what the app does. (You will of course need to make sure that it still works without the installer having run.)
  • Give up. If it creates all these things every time it probably depends upon them in a way that won't work for portable apps without a very significant amount of work.

Cases where you're dealing with HKLM rather than HKCU typically indicate things that are done by the installer only (they can also indicate a badly written app). Remember that in a typical usage scenario, the user will not be able to write to HKLM.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

dhiTek
Offline
Last seen: 11 years 3 weeks ago
Joined: 2012-06-03 01:51
Right, I need registers DLL

Right, I need registers DLL to working certain functions.

Yes, I am actually need them.
Aplication working without all registry, but needed registers DLL to working all functions, I can't solve it Sad

Thanks Chris.

Now, I give up. This a really sick.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Sure it needs them?

In the most common case where such things are installed, they're only needed for interaction from other apps; if you try running it on a machine without it ever having been installed, does it work? I believe you are saying that some functionality is missing. Is it important functionality?

What is the app?

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

dhiTek
Offline
Last seen: 11 years 3 weeks ago
Joined: 2012-06-03 01:51
Yes, application need them :)

I am not sure to say it, because it's commercial software.
but this software in category of video editing.
Because PortableApps.com not yet provide this category, so I try to make it.
Yes, I know VirtualDub is a video editing, but it's simple ?
sorry I didn't say it in my question.

I know moderator and all members are good people here, so I don't want to make a jokes about commercial software.
This is only for personal.

I am using virtual environment.
Ok, my problem is sound effects can't be loaded, sound edit not work !!!

now I've given up.
Thank you for your suggestion Chris Morgan.

Regards

Log in or register to post comments