Error 0x00000709 RRS feed

  • Question

  • Hello everyone,

    Here is my issue : I have to make compatible a script on Windows 7 x64 (script ok on Windows 7 x86).

    This script creates some virtual printers on computer, to redirect flux on printer, which connected by USB on computer.

    When I am executing script, I have error 0x00000709.

    Here's a part of my code in NSIS :

    Section "VirtualPrinters" SEC01


        SetOutPath "$TEMP\drivers_hp_platine_64"
        SetOverwrite ifnewer
        File /r /x "thumbs.db" "drivers_hp_platine_64\*"

        ExecWait 'rundll32 printui.dll,PrintUIEntry /if /b "HP IIIP" /f "$TEMP\drivers_hp_platine_64\prnhp001.Inf" /r "lpt1:" /m "HP LaserJet IIIP" /Z /u /Y /q' $0
        Goto HPIIIP_PCL_END
        ExecWait 'rundll32 printui.dll,PrintUIEntry /if /b "HP IIIP" /f "$TEMP\drivers_hp_platine_64\prnhp001.Inf" /r "lpt1:" /m "HP Color LaserJet 5500 PCL 6" /Z /u /Y /q' $0
        Goto HPIIIP_PCL_END
        DetailPrint "Installation de l'imprimante HP IIIP $0"
        ${LogText} "Installation de l'imprimante HP IIIP $0"
        ExecWait 'rundll32 printui.dll,PrintUIEntry /Xs /n "HP IIIP" sharename "HPIIIP"' $0    
        DetailPrint "Définition du partage de l'imprimante HP IIIP $0"
        ${LogText} "Définition du partage de l'imprimante HP IIIP $0"
        ExecWait 'rundll32 printui.dll,PrintUIEntry /y /n "HP IIIP"' $0    
        DetailPrint "Imprimante par défaut : HP IIIP $0"
        ${LogText} "Imprimante par défaut : HP IIIP $0"

    I've already changed pilot for x64, and the code is just the same as x86's version.

    I had searched several times, but nothing about my situation really.

    So, I ask you finally.

    Thanks by advance for contribution and answers

    Wednesday, March 9, 2016 7:39 AM