GetPackageFolderKey() public method

public GetPackageFolderKey ( ) : string
return string
Esempio 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);
     }
 }
Esempio 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);
     }
 }
Esempio 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);
     }
 }