Registry setting question...

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
James Huk

Registry setting question...

Post by James Huk »

Is there a way to set registry key, other then editing system.reg/user.reg
file? For DIB engine we can export WINEDIB=ON or edit registry, is this the
case with other registry keys as well?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Registry setting question...

Post by vitamin »

James Huk wrote:Is there a way to set registry key?
Ever heard of regedit? Wine has one too.
James Huk wrote:For DIB engine we can export WINEDIB=ON or edit registry, is this the
case with other registry keys as well?
Environment variables and registry has nothing to do with each other. What "other registry keys" are you talking about? If it's registry, obviously it's not an environment variable.
James Huk

Registry setting question...

Post by James Huk »

2009/5/25 vitamin <[email protected]>
James Huk wrote:
Is there a way to set registry key?
Ever heard of regedit? Wine has one too.


James Huk wrote:
For DIB engine we can export WINEDIB=ON or edit registry, is this the
case with other registry keys as well?
Environment variables and registry has nothing to do with each other. What
"other registry keys" are you talking about? If it's registry, obviously
it's not an environment variable.





Heh yes I know what regedit is :) however... problem is how to call it from
within my application to change something. Yes I know I can simply create
appropriate .reg file for all Wine/Direct3D Wine/DirectImput and so on and
change those files “on the fly” and then “regedit regfilename.reg”, but this
would require to have those files as templates and.... well this doesn't
look very nice ;] that's why I'm asking this question

With DIB we can either export WINEDIB or regedit HKCU/Software/Wine/DIB
Engine/Enable = Y, I thought this is also the case for those:
http://wiki.winehq.org/UsefulRegistryKeys)...

As stated before, I'm writing wine management program, I want to implement
most of “UsefulRegistryKeys” as optional settings for each application, so
there is no other way then to manipulate either user.reg or use regedit?

BTW.

One more quick question... maybe someone know, can I put native Windows
dll's on my site for download? Is it legal?

Thanks again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Registry setting question...

Post by vitamin »

James Huk wrote:so there is no other way then to manipulate either user.reg or use regedit?
The only correct way is regedit. Directly modifying *reg files in WINEPREFIX will eventually corrupt them, or won't preserve any of your changes.

Also who said you have to create a .reg file to import it with regedit? You can feed something to it from stdin. Should be able to, except it's broken atm...
James Huk wrote:One more quick question... maybe someone know, can I put native Windows dll's on my site for download? Is it legal?
No, it's not legal. If you read EULA it says you do not have rights to redistribute any part of an O/S.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Registry setting question...

Post by austin987 »

On Sun, May 24, 2009 at 6:03 PM, James Huk <[email protected]> wrote:
Is there a way to set registry key, other then editing system.reg/user.reg
file? For DIB engine we can export WINEDIB=ON or edit registry, is this the
case with other registry keys as well?
You can import a registry key with 'wine regedit.exe foo.reg'. No,
most other options don't support environmental variables. I believe
WINEDEBUG may allow it though.

For scripting the registry key stuff, look at:
http://winezeug.googlecode.com/svn/trun ... t/daily.sh

There are several examples there, look at disabling gecko,
fbo/pbuffer, or disabling the graphical debugger.

--
-Austin
Locked