Advertisement
Guest User

Untitled

a guest
Apr 4th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. /ADDRESSWIKI=[ADDRESSWIKI]/FOLDERWIKI=[FOLDERWIKI]/FOLDEREMAIL=[FOLDEREMAIL]/NOMEUTENTE=[NOMEUTENTE]/PASSWORD=[PASSWORD]/PROXYUSER=[PROXYUSER]/PROXYPASSWORD=[PROXYPASSWORD]
  2.  
  3. namespace servizioWiki
  4. {
  5. [RunInstaller(true)]
  6. public partial class ProjectInstaller : System.Configuration.Install.Installer
  7. {
  8. public override void Install(System.Collections.IDictionary stateSaver)
  9. {
  10. base.Install(stateSaver);
  11.  
  12. string strKey = Context.Parameters["ADDRESSWIKI"];
  13. string strKey2 = Context.Parameters["FOLDERWIKI"];
  14. string strKey3 = Context.Parameters["FOLDEREMAIL"];
  15. string strKey4 = Context.Parameters["NOMEUTENTE"];
  16. string strKey5 = Context.Parameters["PASSWORD"];
  17. string strKey6 = Context.Parameters["PROXYUSER"];
  18. string strKey7 = Context.Parameters["PROXYPASSWORD"];
  19.  
  20. EventLog myLog = new EventLog();
  21. myLog.Source = "MySource";
  22.  
  23. // Write an informational entry to the event log.
  24. myLog.WriteEntry(strKey + " " + strKey2 + " " + strKey3 + " " + strKey4 + " " + strKey5 + " " + strKey6 + " " + strKey7 + " ");
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement