internal static ActionResult Init(Session session)
        {
            //System.Diagnostics.Debugger.Launch();
            var data = new SetupEventArgs.AppData();

            try
            {
                data["Installed"]                  = session["Installed"];
                data["REMOVE"]                     = session["REMOVE"];
                data["ProductName"]                = session["ProductName"];
                data["ProductCode"]                = session["ProductCode"];
                data["UpgradeCode"]                = session["UpgradeCode"];
                data["REINSTALL"]                  = session["REINSTALL"];
                data["MsiFile"]                    = session["OriginalDatabase"];
                data["UPGRADINGPRODUCTCODE"]       = session["UPGRADINGPRODUCTCODE"];
                data["UILevel"]                    = session["UILevel"];
                data["WIXSHARP_MANAGED_UI"]        = session["WIXSHARP_MANAGED_UI"];
                data["WIXSHARP_MANAGED_UI_HANDLE"] = session["WIXSHARP_MANAGED_UI_HANDLE"];
            }
            catch (Exception e)
            {
                session.Log(e.Message);
            }

            data.MergeReplace(session["WIXSHARP_RUNTIME_DATA"]);

            session["WIXSHARP_RUNTIME_DATA"] = data.ToString();

            return(ActionResult.Success);
        }
Beispiel #2
0
        internal static ActionResult Init(Session session)
        {
            //System.Diagnostics.Debugger.Launch();
            var data = new SetupEventArgs.AppData();

            try
            {
                data["Installed"]            = session["Installed"];
                data["REMOVE"]               = session["REMOVE"];
                data["ProductName"]          = session["ProductName"];
                data["REINSTALL"]            = session["REINSTALL"];
                data["UPGRADINGPRODUCTCODE"] = session["UPGRADINGPRODUCTCODE"];
                data["UILevel"]              = session["UILevel"];
            }
            catch (Exception e)
            {
                session.Log(e.Message);
            }

            session["WIXSHARP_RUNTIME_DATA"] = data.ToString();

            return(ActionResult.Success);
        }