Unfortunately it is not that easy. What if it does not detect a version and you want to manually add a path to a VEGAS dir?
I still do see the need for this.
Hello,Vouk,you can do it like this:
vegasPath11 = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\vegas110.exe", "Path", false); //[Get Vegas Pro install directry, getted string has a "\" in end]
if (vegasPath11~="") then // if vegasPath11 not empty
Folder.Create(vegasPath11 + "FileIO Plug-Ins\\voukoderplug");
File.Copy(_TempFolder + "\\voukoderplug_CHS.dll", vegasPath11 + "FileIO Plug-Ins\\voukoderplug\\voukoderplug.dll", true, true, false, true, nil);
File.Copy(_TempFolder + "\\Voukoder-x64.fio2007-config", vegasPath11 + "Voukoder-x64.fio2007-config", true, true, false, true, nil);
end
vegasPath12 = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\vegas120.exe", "Path", false); //[Get Vegas Pro install directry, getted string has a "\" in end]
if (vegasPath12~="") then // if vegasPath11 not empty
Folder.Create(vegasPath12 + "FileIO Plug-Ins\\voukoderplug");
File.Copy(_TempFolder + "\\voukoderplug_CHS.dll", vegasPath12 + "FileIO Plug-Ins\\voukoderplug\\voukoderplug.dll", true, true, false, true, nil);
File.Copy(_TempFolder + "\\Voukoder-x64.fio2007-config", vegasPath12 + "Voukoder-x64.fio2007-config", true, true, false, true, nil);
end
vegasPath13 = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\vegas130.exe", "Path", false); //[Get Vegas Pro install directry, getted string has a "\" in end]
if (vegasPath13~="") then // if vegasPath11 not empty
Folder.Create(vegasPath13 + "FileIO Plug-Ins\\voukoderplug");
File.Copy(_TempFolder + "\\voukoderplug_CHS.dll", vegasPath13 + "FileIO Plug-Ins\\voukoderplug\\voukoderplug.dll", true, true, false, true, nil);
File.Copy(_TempFolder + "\\Voukoder-x64.fio2007-config", vegasPath13 + "Voukoder-x64.fio2007-config", true, true, false, true, nil);
end
vegasPath14 = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\vegas140.exe", "Path", false); //[Get Vegas Pro install directry, getted string has a "\" in end]
if (vegasPath14~="") then // if vegasPath11 not empty
Folder.Create(vegasPath14 + "FileIO Plug-Ins\\voukoderplug");
File.Copy(_TempFolder + "\\voukoderplug_CHS.dll", vegasPath14 + "FileIO Plug-Ins\\voukoderplug\\voukoderplug.dll", true, true, false, true, nil);
File.Copy(_TempFolder + "\\Voukoder-x64.fio2007-config", vegasPath14 + "Voukoder-x64.fio2007-config", true, true, false, true, nil);
end
vegasPath15 = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\vegas150.exe", "Path", false); //[Get Vegas Pro install directry, getted string has a "\" in end]
if (vegasPath15~="") then // if vegasPath11 not empty
Folder.Create(vegasPath15 + "FileIO Plug-Ins\\voukoderplug");
File.Copy(_TempFolder + "\\voukoderplug_CHS.dll", vegasPath15 + "FileIO Plug-Ins\\voukoderplug\\voukoderplug.dll", true, true, false, true, nil);
File.Copy(_TempFolder + "\\Voukoder-x64.fio2007-config", vegasPath15 + "Voukoder-x64.fio2007-config", true, true, false, true, nil);
end
vegasPath16 = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\vegas160.exe", "Path", false); //[Get Vegas Pro install directry, getted string has a "\" in end]
if (vegasPath16~="") then // if vegasPath11 not empty
Folder.Create(vegasPath16 + "FileIO Plug-Ins\\voukoderplug");
File.Copy(_TempFolder + "\\voukoderplug_CHS.dll", vegasPath16 + "FileIO Plug-Ins\\voukoderplug\\voukoderplug.dll", true, true, false, true, nil);
File.Copy(_TempFolder + "\\Voukoder-x64.fio2007-config", vegasPath16 + "Voukoder-x64.fio2007-config", true, true, false, true, nil);
end
vegasPath17 = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\vegas170.exe", "Path", false); //[Get Vegas Pro install directry, getted string has a "\" in end]
if (vegasPath17~="") then // if vegasPath11 not empty
Folder.Create(vegasPath17 + "FileIO Plug-Ins\\voukoderplug");
File.Copy(_TempFolder + "\\voukoderplug_CHS.dll", vegasPath17 + "FileIO Plug-Ins\\voukoderplug\\voukoderplug.dll", true, true, false, true, nil);
File.Copy(_TempFolder + "\\Voukoder-x64.fio2007-config", vegasPath17 + "Voukoder-x64.fio2007-config", true, true, false, true, nil);
end