- b2 (CVS) version

- NSIS Installer will no longer override .nsi and .nsh association


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2149 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-02-11 17:58:16 +00:00
parent 00670eb242
commit 5781c9c9ee
4 changed files with 18 additions and 12 deletions

View file

@ -52,7 +52,7 @@ static WIN32_FIND_DATA * NSISCALL file_exists(char *buf)
static LONG NSISCALL myRegDeleteKeyEx(HKEY thiskey, LPCTSTR lpSubKey, int onlyifempty)
{
HKEY key;
int retval=RegOpenKeyEx(thiskey,lpSubKey,0,KEY_ALL_ACCESS,&key);
int retval=RegOpenKeyEx(thiskey,lpSubKey,0,KEY_WRITE,&key);
if (retval==ERROR_SUCCESS)
{
// NB - don't change this to static (recursive function)
@ -1158,7 +1158,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
if (!parm3)
{
HKEY hKey;
if (RegOpenKeyEx((HKEY)rootkey,buf3,0,KEY_ALL_ACCESS,&hKey) == ERROR_SUCCESS)
if (RegOpenKeyEx((HKEY)rootkey,buf3,0,KEY_WRITE,&hKey) == ERROR_SUCCESS)
{
char *buf0=process_string_fromparm_tobuf(0x02);
log_printf4("DeleteRegValue: %d\\%s\\%s",rootkey,buf3,buf0);