A Few Suggestions

Oct 17, 2013 at 11:12 AM
Hi,
firts of all, THX for your great work. Very nice (and needed) tool!

It would be nice if there is a commandline option to give WUN a optinal config file, or to use the config file saved in the same directory as the .exe file. Nice for starting WUN from a network share with same settings for all (other than default).

I want to start the tool from a network share, and get the following Error if I want to edit the settings on a german 2012 Server, eventually it helps :

Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.Runtime.InteropServices.COMException (0x800705B4): Dieser Vorgang wurde wegen Zeitüberschreitung zurückgegeben. (Ausnahme von HRESULT: 0x800705B4)
bei WindowsUpdateNotifier.ShellLink.IShellLinkW.Resolve(IntPtr hWnd, UInt32 fFlags)
bei WindowsUpdateNotifier.ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut)
bei WindowsUpdateNotifier.ShortcutHelper._GetShortcutLocation(String folder)
bei WindowsUpdateNotifier.ShortcutHelper.IsSetAsAutoStartup()
bei WindowsUpdateNotifier.StartupHelper.IsSetAsAutoStartup()
bei WindowsUpdateNotifier.SettingsViewModel..ctor(Action closeWindowCallback, VersionHelper versionHelper)
bei WindowsUpdateNotifier.ApplicationRuntime.OpenSettings()
bei System.Windows.Forms.Command.Invoke()
bei System.Windows.Forms.NotifyIcon.WndProc(Message& msg)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18051 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll.

WindowsUpdateNotifier
Assembly-Version: 1.3.0.11.
Win32-Version: 1.3.0.

CodeBase: file://qnap01/admintools/Windows%20Update%20Notifier/WindowsUpdateNotifier.exe.

PresentationFramework
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18058.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll.

WindowsBase
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18058 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll.

System
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18045 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.

PresentationCore
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18058 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll.

System.Xaml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18016 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll.

System.Core
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.17929 built by: FX45RTMREL.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.

mscorlib.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18010 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.

System.Configuration
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18058 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.

System.Xml
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18058 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.

System.Windows.Forms
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18046 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.

System.Drawing
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18022 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.

CustomMarshalers
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.17929 built by: FX45RTMREL.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/CustomMarshalers/v4.0_4.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll.

PresentationFramework.AeroLite
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18046 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.AeroLite/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.AeroLite.dll.

PresentationFramework.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18010.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.resources/v4.0_4.0.0.0_de_31bf3856ad364e35/PresentationFramework.resources.dll.

System.Windows.Forms.resources
Assembly-Version: 4.0.0.0.
Win32-Version: 4.0.30319.18010 built by: FX45RTMGDR.

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

Thank you and Regards,
Mag
Oct 31, 2013 at 7:22 AM
Hi,

I will take a look at this issue.
I will also think about, how to handle an optional config-path in a future release.
Dec 14, 2013 at 3:26 PM
Hello all,

I had a somewhat related issue in a C# Windows Formsapplication that I am developing, which relies very heavily on the ability to create many link files; both on local and network storage. After a little bit of head-scratching and debugging, I came to the conclusion that the ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut) method was throwing a timeout exception when trying to open linkfile. I changed the value of the timeOut parameter from the default 1 to 2 in my code, and problem went away.

For some reason it appears that some update to Windows 7 is causing a situation where ShellLink.Open() is more prone to timing out. This has not been an issue for me previously on Windows 7 Enterprise Edition 64-Bit OS; so I can only consider that the problem was introduced by an update that was applied but can't confirm same. The problem was more evident when trying to open a link file from a Network Resource as opposed to a local drive.

Cheers!