Hola Gracias, funciono lo unico hice cambios porque la version 2.1 del pdfcreator es distinta, lo mas importante es la doble //.
Código Delphi
[-]
with TRegistry.Create do
try
NewPath := 'c:\\control\\factura';
RootKey := HKEY_CURRENT_USER;
if OpenKey('\Software\PDFCreator.net\settings\ConversionProfiles\0', True) then
begin
WriteString('FileNameTemplate','fotografia');
if OpenKey('\Software\PDFCreator.net\settings\ConversionProfiles\0\AutoSave', True) then
begin
WriteString('TargetDirectory', NewPath);
WriteString('Enabled', 'True');
end; /
CloseKey;
end;
finally
Free;
end;