title: Installing MSI through windows service
body: <p>I have a strange problem,</p>
  
  <p>I have a <code>WPF application</code>. I have created a <code>windows installer</code> for this and installation will create application shortcut in user's start menu. I'm installing this MSI through <code>windows service</code>. Installation works fine through windows service but it doesnt create shortcut in start menu also i dont see this application under Programs and Features. But if i manually install this everything works fine. Any clue why this is happening ?</p>
  
  <blockquote>
    <p>Code to execute MSI</p>
  </blockquote>
  
  <pre><code> Process installProcess = new Process();
                  //Assign required properties
                  installProcess.StartInfo.FileName = MSIEXEC;
                  installProcess.StartInfo.RedirectStandardError = true;
                  installProcess.StartInfo.UseShellExecute = false;
  
                  LogManager.Write("Process object is created");
  
                  //Create new StringBuilder instance
                  StringBuilder stringBuilder = new StringBuilder();
                  stringBuilder.Append(SYMBOL_SLASH);
                  stringBuilder.Append(SYMBOL_INSTALL);
                  stringBuilder.Append(installerPath);
                  stringBuilder.Append(SYMBOL_QN);
  
                  LogManager.Write("StringBuilder is created: " + stringBuilder.ToString());
  
                  installProcess.StartInfo.Arguments = stringBuilder.ToString();
                  installProcess.Start();
  </code></pre>