View Single Post
Old 25th November 2015, 16:21   #3
Benz83
Junior Member
 
Join Date: Nov 2015
Posts: 2
Im so sorry. Im italian.

Quote:
;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
Benz83 is offline   Reply With Quote