mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Fix shortcut string issues.
This commit is contained in:
@@ -14,6 +14,7 @@ using Velopack.Compression;
|
||||
using Velopack.Packaging;
|
||||
using Velopack.Packaging.Commands;
|
||||
using Velopack.Packaging.Windows.Commands;
|
||||
using Velopack.Windows;
|
||||
|
||||
namespace Velopack.Packaging.Tests;
|
||||
|
||||
@@ -279,6 +280,11 @@ public class WindowsPackTests
|
||||
var shortcutPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.StartMenu), "Programs", id + ".lnk");
|
||||
Assert.True(File.Exists(shortcutPath));
|
||||
|
||||
var lnk = new ShellLink(shortcutPath);
|
||||
var currentPath = Path.Combine(tmpInstallDir, "current");
|
||||
Assert.Equal(currentPath, lnk.WorkingDirectory);
|
||||
Assert.Equal(appPath, lnk.Target);
|
||||
|
||||
// check registry exists
|
||||
string installDate = null;
|
||||
string uninstallRegSubKey = @"Software\Microsoft\Windows\CurrentVersion\Uninstall";
|
||||
|
||||
Reference in New Issue
Block a user