protected OnEnvironmentVariableRegistering ( string variableName, string variableValue ) : void | ||
variableName | string | |
variableValue | string | |
Результат | void |
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); } }
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); } }