Old 25th November 2015, 15:21   #1
Benz83
Junior Member
 
Join Date: Nov 2015
Posts: 2
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?
Benz83 is offline   Reply With Quote
Old 25th November 2015, 16:11   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
I don't really understand what the question is, please get help from some fluent in English to help you rephrase the question.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
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
Old 25th November 2015, 19:21   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
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...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump