Skip to content

Commit

Permalink
Allow embedded exe files to be discovered in installer
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevault committed Nov 7, 2013
1 parent 2b76cac commit f1e609c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Installer/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs ar
path = String.Format(@"{0}\{1}", assemblyName.CultureInfo, path);

var stream = GetEmbeddedResource(path);
if (stream == null)
{
path = assemblyName.Name + ".exe";
if (assemblyName.CultureInfo.Equals(CultureInfo.InvariantCulture) == false)
path = String.Format(@"{0}\{1}", assemblyName.CultureInfo, path);
stream = GetEmbeddedResource(path);
}
if (stream == null)
return null;

Expand Down

0 comments on commit f1e609c

Please sign in to comment.