Urgent Problem regedit

Urgent Problem regedit

Postby Silvio.Falconi » Fri Jan 23, 2015 9:15 am

I must erase on 200 computers a value on Registry
because when on lan a user open Microsoft Office it reinstall the application or search any files into a folder
I allready tried and run ok
I thinked to create a exe to make fast the operation from each terminal

I must change a value into HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Delivery\CdCache
from 2 to 0

I make this ...

local hKey
RegOpenKey( HKEY_LOCAL_MACHINE,;
"Software\Microsoft\Office\11.0\Delivery\CdCache", @hKey )
RegDeleteKey( hKey, "CdCache" )
RegCloseKey( hKey )

but it delete the value and I wish insert a "0" (zero) into this value
How I can do ?

thanks
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6832
Joined: Thu Oct 18, 2012 7:17 pm

Re: Urgent Problem regedit

Postby hmpaquito » Fri Jan 23, 2015 9:30 am

hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Urgent Problem regedit

Postby Silvio.Falconi » Fri Jan 23, 2015 11:10 am

Function Esegui()
local hKey
RegOpenKey( HKEY_LOCAL_MACHINE,;
"Software\Microsoft\Office\11.0\Delivery", @hKey )

// RegDeleteKey( hKey, "CdCache" )

RegSetValue(hKey,"CdCache","0")

MsgInfo( RegQueryValue( hKey,"CdCache" ) )

RegCloseKey( hKey )


return nil


the function RegSetValue(hKey,"CdCache","0") NOT RUN good

the value is allways 2
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6832
Joined: Thu Oct 18, 2012 7:17 pm

Re: Urgent Problem regedit

Postby hmpaquito » Fri Jan 23, 2015 11:19 am

BTW: viewtopic.php?f=6&t=29937&p=170341&hilit=windows+vista#p170341
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Urgent Problem regedit

Postby Silvio.Falconi » Sat Jan 24, 2015 8:09 am

oReg:= TReg32():New(HKEY_LOCAL_MACHINE, Key1,lShowError)
cInfo:= oReg:Get(Name,valore)
MsgInfo(cInfo,"Delivery 1" )
oReg:Set(Name,valore)
oReg:Close()

It seem to run ok

Now the problem is on some computer the variable DWORD "CdCache"

not exist I don't Know why

How I can to create this variable

the variable must be value DWORD
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6832
Joined: Thu Oct 18, 2012 7:17 pm

Re: Urgent Problem regedit

Postby TOTOVIOTTI » Mon Jan 26, 2015 12:08 pm

Paquito,
I could never operate the solution showed me in the post you indicate.
Regards,
Roberto
Univ@c I.S.I.
Desarrolladores de Software
http://www.elcolegioencasa.edu.ar
User avatar
TOTOVIOTTI
 
Posts: 387
Joined: Fri Feb 05, 2010 11:30 am
Location: San Francisco - Córdoba - Argentina


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 31 guests