Ejemplo n.º 1
0
        public override IPath GetPath(AppPaths.Directory dir)
        {
            ManagedServices.PathSDK.DirectoryID dirId;
            switch (dir)
            {
                case Directory.Root :
                    dirId = ManagedServices.PathSDK.DirectoryID.MaxStart;
                    break;
                case Directory.Scripts :
                    dirId = ManagedServices.PathSDK.DirectoryID.UserScripts;
                    break;
                case Directory.StartupScripts :
                    dirId = ManagedServices.PathSDK.DirectoryID.UserStartupScripts;
                    break;
                case Directory.MacroScripts :
                    dirId = ManagedServices.PathSDK.DirectoryID.UserMacros;
                    break;
                case Directory.Icons :
                    dirId = ManagedServices.PathSDK.DirectoryID.UserIcons;
                    break;
                default :
                    dirId = ManagedServices.PathSDK.DirectoryID.Temp;
                    break;
            }

            return new BasePath(ManagedServices.PathSDK.GetDirectoryPath(dirId));
        }
Ejemplo n.º 2
0
        public override IPath GetPath(AppPaths.Directory dir)
        {
            String path;
            switch (dir)
            {
                case Directory.Root:
                    path = "C:/temp/scriptcenter/install_test";
                    break;
                case Directory.Scripts:
                    path = "C:/temp/scriptcenter/install_test/scripts";
                    break;
                case Directory.StartupScripts:
                    path = "C:/temp/scriptcenter/install_test/startup_scripts";
                    break;
                case Directory.MacroScripts:
                    path = "C:/temp/scriptcenter/install_test/macros";
                    break;
                case Directory.Icons:
                    path = "C:/temp/scriptcenter/install_test/icons";
                    break;
                default:
                    path = "C:/temp/scriptcenter/install_test";
                    break;
            }

            return new BasePath(path);
        }
Ejemplo n.º 3
0
 public CopyDirAction(String source, AppPaths.Directory target)
 {
     this.Source = source;
     this.Target = target;
 }
Ejemplo n.º 4
0
 public CopyFileAction(String source, AppPaths.Directory target)
 {
     //TODO: test if omission of SetDefaultValues here has indeed got no consequences (since its called in the baseclass).
     this.Source = source;
     this.Target = target;
 }