Skip to content

Commit

Permalink
- Make installer name dynamic, when download as "HAClimateDeskbandIns…
Browse files Browse the repository at this point in the history
…taller (1).exe" for example
  • Loading branch information
KoalaBear84 committed Mar 26, 2021
1 parent 371b659 commit 25e4243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HAClimateDeskbandInstaller/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static void Install(InstallInfo info)
CopyFiles(info);

// Copy the uninstaller too
File.Copy(InstallerExecutableName, Path.Combine(info.TargetPath, InstallerExecutableName));
File.Copy(Assembly.GetExecutingAssembly().Location, Path.Combine(info.TargetPath, InstallerExecutableName));
}
else
{
Expand All @@ -81,7 +81,7 @@ static void Install(InstallInfo info)
CopyFiles(info);

// Copy the uninstaller too
File.Copy(InstallerExecutableName, Path.Combine(info.TargetPath, InstallerExecutableName));
File.Copy(Assembly.GetExecutingAssembly().Location, Path.Combine(info.TargetPath, InstallerExecutableName));
});
}

Expand Down

0 comments on commit 25e4243

Please sign in to comment.