GetPackageFolderKey() public method

public GetPackageFolderKey ( ) : string
return string
Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 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);
     }
 }