Assign a specific profile to a printer in registry

Hi,

I am still trying to add a printer and assign a profile to it during installation of pdfcreator 1.2.1

I add the printer with a vbs script using the com interface
and the registry keys for the profile and printer-profile declaration with the /REGFile= switch.

The printer is gets created and the profile is available, too. But I can't get the printer<->profile allocation to work. The new printer has always the "default" profile assigned.

In the .reg file I have tried "HKEY_LOCAL_MACHINE" and "HKEY_USERS\\.DEFAULT" without success.

```

[HKEY_LOCAL_MACHINE\Software\PDFCreator\Printers]
"PDF Beleg WB"="PDF Beleg WB"
"PDF Beleg B"="PDF Beleg B"

[HKEY_USERS\.DEFAULT\Software\PDFCreator\Printers]
"PDF Beleg WB"="PDF Beleg WB"
"PDF Beleg B"="PDF Beleg B"

<p>Is this only working in the &quot;HKEY_CURRENT_USER&quot; context ?<br />&nbsp;</p><p>Profile and printers have the same names here.<br />some line of my vbs script:</p><p>ProfileName = &quot;PDF Beleg WB&quot;<br />PrinterName = &quot;PDF Beleg WB&quot;</p><p>PDFCreator.cAddPDFCreatorPrinter PrinterName, ProfileName</p><p>Best regards,</p><p>Ingo</p>

Is this a bug ?

in pdfcreator > trunk > Common > modProfiles.bas

the function GetProfiles()
searches in HKEY_LOCAL_MACHINE on servertype install
or else in
HKEY_USERS.\\DEFAULT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE

In function GetPrinterDefaultProfile(Printername As String) As String
the default profile for a printer is only searched in
HKEY_LOCAL_MACHINE on servertype install
or else in
HKEY_CURRENT_USER

Shouldn't it look for the default printers profile in the same order and places it searches for the profiles ?