protected override void ProcessRecord() { try { CMActiveSetup.Set(ComponentID, StubPath, is32bitApp, Version, Locale); WriteObject("OK: Active Setup registry key " + ComponentID + " is set."); } catch (Exception ex) { WriteObject("ERR: " + ex.Message.ToString()); } }
protected override void ProcessRecord() { try { CMActiveSetup.Undo(ComponentID); WriteObject("OK: Active Setup registry key " + ComponentID + " is deleted."); } catch (Exception ex) { WriteObject("ERR: " + ex.Message.ToString()); } }