Skip to content
⌘ NSIS Forum Archive

Registry (regedit) work but not see

4 posts

Benz83#

Registry (regedit) work but not see

Hello guys, im at work now so i can paste the code. however i see a simple example on software NSIS, where i can for example open a notepad when log on on windows ad every start.

The code work

But if i try to see on regedit the registry , there isnt!!

why?
Anders#
I don't really understand what the question is, please get help from some fluent in English to help you rephrase the question.
Benz83#
Im so sorry. Im italian.

;Running a .exe file on Windows Start
!include "MUI.nsh"

Name "START WINDOWS"
OutFile "STRWIN.exe"

!insertmacro MUI_LANGUAGE "Spanish"

Section
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Run" \
"Notepad" "$WinDir\Notepad.exe"
MessageBox MB_OK "The Notepad Running as Windows Start"
SectionEnd
When i restart windows , notepad start (and is ok)

The problem is, when i open regedit and check on HKEY_LOCAL_MACHINE Software\Microsoft\Windows\CurrentVersion\Run
i cannot find that new reg

However thanks for fast reply Anders
Anders#
NSIS is a 32-bit application and writes to the 32-bit part of the registry by default so check under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run if you are running a 64-bit version of Windows.

Use "SetRegView 64" if you need to the 64-bit part of the registry...