Running a .exe file on Windows Start: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Reverted edits by 49.15.84.224 to last version by 88.113.61.133) |
|||
Line 8: | Line 8: | ||
;Running a .exe file on Windows Start | ;Running a .exe file on Windows Start | ||
!include "MUI.nsh" | !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" | MessageBox MB_OK "The Notepad Running as Windows Start" | ||
SectionEnd | SectionEnd |
Latest revision as of 03:51, 14 April 2012
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.
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