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

From NSIS Wiki
Jump to navigationJump to search
(copy & paste from "Runing a .exe file on Windows Start", fixed "Runing" -> "Running")
 
(Added "Of Note" Section)
Line 1: Line 1:
{{PageAuthor|Julio Chinchilla}}
{{PageAuthor|Julio Chinchilla}}
== Of Note ==
Technically, This will run the script on Windows Logon and not Windows Start.


== The Script ==
== The Script ==

Revision as of 21:20, 6 August 2009

Author: Julio Chinchilla (talk, contrib)


Of Note

Technically, This will run the script on Windows Logon and not Windows Start.

The Script

;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