Runing a .exe file on Windows Start: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author links.)
m (Added category links.)
Line 18: Line 18:
SectionEnd
SectionEnd
</highlight-nsis>
</highlight-nsis>
[[{{ns:14}}:Code Examples]]

Revision as of 20:46, 30 April 2005

Author: Julio Chinchilla (talk, contrib)


The Script

;Runing 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 Runing as Windows Start"
SectionEnd