Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(GH-15)(GH-9) AutoInstaller Enhancements #30

Merged

Conversation

ferventcoder
Copy link
Member

Feature flag auto uninstaller.

Still in todo:

  • Move AutoInstaller to its own service
  • Write specs surrounding autouninstaller service.
  • Run autouninstaller every time, determining if it should run not based on whether posh ran but if the registry keys are still present.

Closes #9
Closes #15

@ferventcoder
Copy link
Member Author

The specs are not passing yet, the tests have issues running as part of the suite but pass in isolation. :/

Plus I don't have all I want to test set up yet.

@gep13
Copy link
Member

gep13 commented Jan 19, 2015

Based on your description, I immediately thought of this setting in ReSharper:

image

But since you are using TestDriven.net, this won't help you, but perhaps there is a similar setting.

@gep13
Copy link
Member

gep13 commented Jan 19, 2015

I had fun with this recently on a Test Suite that I was writing. Things worked in isolation, but not when running all of them. Had to enable this setting to get it to work.

@ferventcoder
Copy link
Member Author

Is there something for NUnit?

@gep13
Copy link
Member

gep13 commented Jan 19, 2015

Is there something for NUnit?

Off the top of my head, I am not sure, I will do some digging, and let you know if I find anything.

@ferventcoder ferventcoder force-pushed the ticket/master/autouninstaller branch 2 times, most recently from f9e54b5 to f3608bb Compare January 20, 2015 12:52
@ferventcoder ferventcoder force-pushed the ticket/master/autouninstaller branch 4 times, most recently from 81d0072 to 5d47b3d Compare January 20, 2015 15:05
Adding this will allow feature flagging new features.c
Require the feature and enabled to explicitly be set to true to allow a
feature to be flagged as on.
Do not allow autouninstaller to run automatically. Since it is
experimental, we want to lock it down and make folks explicitly opt
into it.
Move the code for autouninstaller to its own service and remove the
stipulation that powershell needed to have NOT run for the
autouninstaller to run.
Move checksumFiles and virusCheckFiles to feature flags and mark them
appropriately.
Return whether a registry value exists.
If the registry key AND the install location still exist, run
autouninstaller. Otherwise, skip and log the details.
Remove uninstall executable from uninstall arguments before cleaning it
up for use by command executor.
- Move CommandExecutor away from static methods for the most part. Implement
ICommandExecutor and set it up with container binding. Set AutoUninstallerService
to use ICommandExecutor instead of static method calls.
- Fix null reference error in Registry ctor
- Log why when auto uninstaller is not run
Allows installer to report the InstallerType it implements.
Ensure uninstaller uses the right switches on uninstall based on
HasQuietUninstall true or false.
@ferventcoder ferventcoder force-pushed the ticket/master/autouninstaller branch from 651723b to ffc5e6e Compare January 21, 2015 12:32
@ferventcoder ferventcoder changed the title [DO NOT MERGE] (GH-15)(GH-9) AutoInstaller Enhancements (GH-15)(GH-9) AutoInstaller Enhancements Jan 21, 2015
ferventcoder added a commit that referenced this pull request Jan 21, 2015
@ferventcoder ferventcoder merged commit 5f2d410 into chocolatey:master Jan 21, 2015
@ferventcoder ferventcoder deleted the ticket/master/autouninstaller branch January 21, 2015 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature flag autouninstaller Auto Uninstaller should run every time
2 participants