FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Vista and Registry
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Vista and Registry
Posted: 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Vista and Registry
Posted: Thu Feb 01, 2007 08: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
Posts: 207
Joined: Fri Oct 07, 2005 07:58 AM
Vista and Registry
Posted: Fri Feb 02, 2007 02:16 PM
Hello!

Whats different in Vista ?

:-) 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!
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Vista - Dream or Nightmare
Posted: Mon Feb 05, 2007 05: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

Continue the discussion