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)); }
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); }
public CopyDirAction(String source, AppPaths.Directory target) { this.Source = source; this.Target = target; }
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; }