title: Installer is ignoring WriteRegStr (trying to add application to Win Startup)
body: <p>I'm installing an app to a Windows 7 machine (my app is targeting one specific device) and I'm trying to get it to run on OS startup/login.</p>
  
  <p>It's a Silverlight OOB app, I thought this might have been a problem, but I tested it with Notepad and it still doesn't work.</p>
  
  <p>I followed the example <a href="http://nsis.sourceforge.net/Running_a_.exe_file_on_Windows_Start" rel="nofollow">here</a>: </p>
  
  <pre><code>!include "MUI.nsh"
  
  Name "Tech Drive Installer"
  OutFile "techdrive_setup.exe"
  InstallDir "$PROGRAMFILES\Tech Drive"
  
  RequestExecutionLevel admin
  ShowInstDetails show
  
  !insertmacro MUI_LANGUAGE "English"
  
  Section
      SetOutPath "$INSTDIR"
      SetOverwrite ifnewer
  
      File "TechDrive.xap"
      ExecWait '"$PROGRAMFILES\Microsoft Silverlight\sllauncher.exe" /install:"$INSTDIR\TechDrive.xap" /origin:"http://localhost/TechDrive.xap" /shortcut:desktop'
  
      WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" "TechDrive" '"$PROGRAMFILES\Microsoft Silverlight\sllauncher.exe" 3388701632.localhost'
  SectionEnd
  </code></pre>
  
  <p>Why wouldn't this be working?</p>