-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added "set helpdesk email on install". Still need to finish cmdline p…
…assing.
- Loading branch information
Showing
4 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Configuration.Install; | ||
using System.Collections; | ||
using Microsoft.Win32; | ||
using System.ComponentModel; | ||
using System.Windows.Forms; | ||
|
||
namespace OutlookAddIn1 | ||
{ | ||
[RunInstaller(true)] | ||
public class MyInstallerClass : Installer | ||
{ | ||
public MyInstallerClass() : base() | ||
{ | ||
|
||
} | ||
|
||
public override void Install(IDictionary stateSaver) | ||
{ | ||
base.Install(stateSaver); | ||
string helpdeskEmail = Context.Parameters["HelpdeskEmail"]; | ||
//Properties.Settings.Default.HelpdeskEmail = Context.Parameters["HelpdeskEmail"]; | ||
//Properties.Settings.Default.Save(); | ||
//MessageBox.Show(Context.Parameters["HelpdeskEmail"], "Custom Action Debug", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); | ||
RegistryKey key = Registry.LocalMachine.CreateSubKey("Software\\Microsoft\\Office\\Outlook\\Addins\\DrewGreen.net.SpiceworksOutlookAddIn"); | ||
if (key != null) | ||
{ | ||
key.SetValue("HelpdeskEmail", helpdeskEmail); | ||
key.Close(); | ||
} | ||
|
||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters