cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
RMartinez
Level 3

Registry in Windows7 and Vista

Hello my frends:..

I have a new problem and i hope your help.

My project is InstallScript MSI and i have code to create a registry key in the registry of de OS of the target computer, In XP I'm not have problem all is good, but when i setup my installer in OS Vista and Windows7 i have the error..

my code is as follow:

szKey = "\\SOFTWARE\\MAPDATA\\GEOBASE\\v1.1";
szNumName = "ProgDir";
nType = REGDB_STRING;
direct = INSTALLDIR;
szNumValue = direct;
if (RegDBSetKeyValueEx (szKey, szNumName, nType, szNumValue,-1) < 0)then
MessageBox ("Imposible crear clave en el registro del sistema, verifique los permisos de usuario", SEVERE);
abort;
endif;


my quetion is:
The RegDBSetKeyValueEx () function works the same on the following operating systems: WXP, WVista and W7 ????


Thanks
Labels (1)
0 Kudos
(1) Reply
ChandanOmkar
Level 8

Win7 and Vista does not allow to create or modify registry keys in some areas even if the user has admin rights. in XP you can do.

Check with the msdn for detailed information.
0 Kudos