${SegmentFile}

${SegmentPostPrimary}
	;if this key exist, overwrite its value:
	;HKCU\Software\Microsoft\Windows\CurrentVersion\Run LINE "LINE.exe" --booting
	ClearErrors
	ReadRegStr $0 HKCU SOFTWARE\Microsoft\Windows\CurrentVersion\Run LINE
	${IfNot} ${Errors}
		${DebugMsg} "Overwrite, LINE start-up run."
		WriteRegStr HKCU SOFTWARE\Microsoft\Windows\CurrentVersion\run LINE  '"$EXEDIR\${AppID}.exe" --booting'
	${EndIf}
	
	;killing updating processes
	FindProcDLL::KillProc "LineAppMgr.exe"
	FindProcDLL::KillProc "LineUpdater.exe"
	FindProcDLL::KillProc "LineUpgrader.exe"
	FindProcDLL::KillProc "LineUnInst.exe"	
!macroend
