void UnregisterEnvironmentVariables(MachineWideUninstallation mwUninstl) { { var name = EnvironmentRepository.GetPackageFolderKey(); mwUninstl.OnEnvironmentVariableUnregistering(name); EnvironmentRepository.RemovePackageFolder(); mwUninstl.OnEnvironmentVariableUnregistered(name); } { var name = EnvironmentRepository.GetLogFolderKey(); mwUninstl.OnEnvironmentVariableUnregistering(name); EnvironmentRepository.RemoveLogFolder(); mwUninstl.OnEnvironmentVariableUnregistered(name); } }
void RegisterEnvironmentVariables(MachineWideInstallation mwInstl) { { var pkgDir = EnvironmentRepository.GetPackageFolder(); var name = EnvironmentRepository.GetPackageFolderKey(); var value = pkgDir; mwInstl.OnEnvironmentVariableRegistering(name, value); EnvironmentRepository.StorePackageFolder(value); mwInstl.OnEnvironmentVariableRegistered(name, value); } { var logDir = EnvironmentRepository.GetLogFolder(); var name = EnvironmentRepository.GetLogFolderKey(); var value = logDir; mwInstl.OnEnvironmentVariableRegistering(name, value); EnvironmentRepository.StoreLogFolder(value); mwInstl.OnEnvironmentVariableRegistered(name, value); } }
void RegisterEnvironmentVariables(MachineWideInstallation mwInstl) { { var pkgDir = EnvironmentRepository.GetPackageFolder(); var name = EnvironmentRepository.GetPackageFolderKey(); var value = pkgDir; mwInstl.OnEnvironmentVariableRegistering(name, value); EnvironmentRepository.StorePackageFolder(value); mwInstl.OnEnvironmentVariableRegistered(name, value); } { var logDir = EnvironmentRepository.GetLogFolder(); var name = EnvironmentRepository.GetLogFolderKey(); var value = logDir; mwInstl.OnEnvironmentVariableRegistering(name, value); EnvironmentRepository.StoreLogFolder(value); EnvironmentRepository.CreateDirectory(value); EnvironmentRepository.SetFullControlPermissionsToEveryone(value); mwInstl.OnEnvironmentVariableRegistered(name, value); } }