mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fixed win8FileReg key not being updated
This commit is contained in:
parent
c676aed591
commit
cd9e11045e
@ -71,11 +71,13 @@ namespace Wabbajack.Common
|
||||
appReg?.CreateSubKey("DefaultIcon")?.SetValue("", iconPath);
|
||||
|
||||
appAssocReg?.CreateSubKey("UserChoice")?.SetValue("Progid", "Applications\\Wabbajack.exe");
|
||||
SHChangeNotify(0x000000, 0x0000, IntPtr.Zero, IntPtr.Zero);
|
||||
|
||||
if (!IsWin8()) return;
|
||||
var win8FileReg = Registry.CurrentUser.CreateSubKey(Win8RegPath);
|
||||
win8FileReg?.CreateSubKey("shell\\open\\command")?.SetValue("", $"\"{appPath}\" -i %i");
|
||||
if (IsWin8())
|
||||
{
|
||||
var win8FileReg = Registry.CurrentUser.CreateSubKey(Win8RegPath);
|
||||
win8FileReg?.CreateSubKey("shell\\open\\command")?.SetValue("", $"\"{appPath}\" -i %i");
|
||||
}
|
||||
SHChangeNotify(0x000000, 0x0000, IntPtr.Zero, IntPtr.Zero);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user