Permalink
Browse files

Made the finish page wait for LiteStep to start before restoring the …

…AutoRestartShell registry value.
  • Loading branch information...
1 parent 0e99c51 commit 4a1ba0f216bd50c8a237606ced1834a544fea885 @Tobbe committed Mar 17, 2009
Showing with 4 additions and 5 deletions.
  1. +4 −5 PageFinish.nsh
View
@@ -38,13 +38,12 @@ Function FinishRun
; Wait for LiteStep to start
StrCpy $0 "0"
- Sleep 100
+ Sleep 500
FindProcDLL::FindProc "litestep.exe"
- Pop $1
IntOp $0 $0 + 1
- StrCmp $0 50 +2
- StrCmp $1 1 +1 -5
-
+ StrCmp $0 10 +2
+ StrCmp $R0 1 +1 -5
+
WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" "AutoRestartShell" $R7
FunctionEnd

0 comments on commit 4a1ba0f

Please sign in to comment.