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

From NSIS Wiki
Jump to navigationJump to search
m (clarification)
Line 2: Line 2:


== Of Note ==
== Of Note ==
Technically, This will execute on Windows Logon and not Windows Start.
Technically, This method will execute immediately after the user login and will run using the security context of the user. [[User:Zinthose|Zinthose]] 02:09, 7 August 2009 (UTC)


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

Revision as of 02:09, 7 August 2009

Author: Julio Chinchilla (talk, contrib)


Of Note

Technically, This method will execute immediately after the user login and will run using the security context of the user. Zinthose 02:09, 7 August 2009 (UTC)

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