Guest User

Untitled

a guest
Jan 19th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. public static string SQLSERVERNAME = "";
  2. public static string HMSTENANTDB;
  3. public static string SQLLOGIN;
  4. public static string SQLPASSWORD;
  5.  
  6. public override void Commit(IDictionary savedState)
  7. {
  8. base.Commit(savedState);
  9. try
  10. {
  11. SQLSERVERNAME = Context.Parameters["SQLSERVERNAME"];
  12. HMSTENANTDB = Context.Parameters["HMSTENANTDB"];
  13. SQLLOGIN = Context.Parameters["SQLLOGIN"];
  14. SQLPASSWORD = Context.Parameters["SQLPASSWORD"];
  15. }
  16. catch (Exception e)
  17. {
  18. MessageBox.Show("Failed to update the application configuration file : " + e.Message);
  19. base.Rollback(savedState);
  20. }
  21. }
  22.  
  23. InstallerSetup InsSetup = new InstallerSetup();
  24. string Vsqlserver = InsSetup.Installers.Count.ToString();
  25. string Vtenant = "";
  26. if (InsSetup.Context != null)
  27. {
  28. Vtenant = InsSetup.Context.Parameters["HMSTENANTDB"];
  29. }
  30. else
  31. {
  32. Vtenant = "context is null";
  33. }
Add Comment
Please, Sign In to add comment