Vista and Registry

Vista and Registry

Postby TimStone » Wed Jan 31, 2007 11:44 pm

Under Windows XP I stored values ( server path, etc ) in the registry using the following:

To read the value:

oReg := TReg32():Create( HKEY_LOCAL_MACHINE, "SOFTWARE\Masterlink\Setup" )
cPath := oReg:Get( "Path", cPath )

Or to set the value if none was found:

oReg:Set( "Path", cPath )

Trying to run the program in Vista, if it is not found, the call is to cGetDir32( ) to display the directory and select the path.

On my first try, 1) the path was not in the registry so it wasn't found, 2) there was no popup for cGetDir32( ), and no value was written to the registry.

Whats different in Vista ?

Thanks.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2942
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby Antonio Linares » Thu Feb 01, 2007 8:13 am

Tim,

Have you tried it logged in as administrator ? First you have to activate the administrator account
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42048
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby modicr » Fri Feb 02, 2007 2:16 pm

Hello!

Whats different in Vista ?

8) File and Registry Virtualization – the good, the bad, and the ugly
http://windowsconnected.com/blogs/jerry ... 19/86.aspx
The same type of magic is used with certain parts of the registry. For example, if an application writes to “HKLM\Software\PoorlyBehavedApp\2.0\Settings”, windows will send that write operation to “HKCR\VirtualStore\Machine\Software\PoorlyBehavedApp\2.0\Settings”.


To help combat this, Microsoft has built some API’s that will allow developers to specify certain folders and registry keys to never virtualize.


Regards, Roman
© I'm not patented!
User avatar
modicr
 
Posts: 207
Joined: Fri Oct 07, 2005 7:58 am
Location: ljubljana, barje, slovenia

Vista - Dream or Nightmare

Postby TimStone » Mon Feb 05, 2007 5:23 am

I guess we will get used to it.

First, I was logged in as administrator. Essentially the whole system began to degrade so I went back to ground zero. Instead of an update, I told it to give me a clean install ... which was supposed to erase all the files. Well, some of the files were erased, and some folders remained ... very strange ... so I'm not sure what is "good, bad, and ugly" but I find that some software works, other software packages dont .... but when I did a brand new install of my package it seemed to go ok and initially it works .... but for how long I don't know.

I think Vista will be a topic for much discussion as we see our clients buy new computers with this OS.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2942
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 24 guests