Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Commit

Permalink
Fix crash when opening a link when IE is the default browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Strappazzon committed Mar 17, 2020
1 parent c238fed commit 8291f37
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
12 changes: 10 additions & 2 deletions src/Windows Activation Client/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,19 @@
End Sub

Private Sub HelpActivationLinkLabel_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles HelpActivationLinkLabel.LinkClicked
Process.Start("https://support.microsoft.com/en-us/help/15083/windows-how-to-activate")
Try
Process.Start("https://support.microsoft.com/en-us/help/15083/windows-how-to-activate")
Catch
Return
End Try
End Sub

Private Sub PrivacyLinkLabel_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles PrivacyLinkLabel.LinkClicked
Process.Start("https://privacy.microsoft.com/en-us/privacystatement")
Try
Process.Start("https://privacy.microsoft.com/en-us/privacystatement")
Catch
Return
End Try
End Sub

Private Sub CancelBtn_Click(sender As Object, e As EventArgs) Handles CancelBtn.Click
Expand Down
18 changes: 15 additions & 3 deletions src/Windows Activation Client/Form2.vb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,27 @@
End Sub

Private Sub ProductKeyHelpLinkLabel_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles ProductKeyHelpLinkLabel.LinkClicked
Process.Start("https://support.microsoft.com/en-us/help/10749/windows-10-find-product-key")
Try
Process.Start("https://support.microsoft.com/en-us/help/10749/windows-10-find-product-key")
Catch
Return
End Try
End Sub

Private Sub HelpActivationLinkLabel_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles HelpActivationLinkLabel.LinkClicked
Process.Start("https://support.microsoft.com/en-us/help/15083/windows-how-to-activate")
Try
Process.Start("https://support.microsoft.com/en-us/help/15083/windows-how-to-activate")
Catch
Return
End Try
End Sub

Private Sub PrivacyLinkLabel_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles PrivacyLinkLabel.LinkClicked
Process.Start("https://privacy.microsoft.com/en-us/privacystatement")
Try
Process.Start("https://privacy.microsoft.com/en-us/privacystatement")
Catch
Return
End Try
End Sub

Private Sub NextBtn_Click(sender As Object, e As EventArgs) Handles NextBtn.Click
Expand Down
6 changes: 5 additions & 1 deletion src/Windows Activation Client/Success.vb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
End Sub

Private Sub BenefitsLinkLabel_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles BenefitsLinkLabel.LinkClicked
Process.Start("https://support.microsoft.com/en-us/help/15087/windows-genuine")
Try
Process.Start("https://support.microsoft.com/en-us/help/15087/windows-genuine")
Catch
Return
End Try
End Sub

Private Sub CloseBtn_Click(sender As Object, e As EventArgs) Handles CloseBtn.Click
Expand Down

0 comments on commit 8291f37

Please sign in to comment.