{I+=codeWee;} |
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