{I+=codeWee;}
[NSIS] NSIS : How to make batch file as start program to Run as Administrator
 Unicode true

; WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "StartMyProgram" '"$INSTDIR\StartMyProgram.bat" ; --> This does not work!!

FileOpen $9 "$SMPROGRAMS\StartUp\StartMyPrpgram.vbs" w 
	FileWrite $9 'Set objShell = CreateObject("Shell.Application")$\r$\n'
	FileWrite $9 'objShell.ShellExecute "$INSTDIR\StartMyProgram.bat", "/c lodctr.exe /r" , "", "runas", 0'
FileClose $9 	
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.