Добрый день.
Подскажите есть вот такой принтер печати в PDF.
Параметры установки такие
BullzipPDFPrinter_7_1_0_1181.exe /SILENT /NOCANCEL /NORESTART /NOICONS
Нужно его устанавливать при первом входите в систему.
Добавляю в реестр следующую инфу.
mode con cp select=1251
SET folder=I386\SVCPACK
FOR %%d IN (c d e f g h i j k l m n o p q r s t u v w x y z) DO IF EXIST %%d:\WIN51 SET CDROM=%%d:
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
SET i=300
REG ADD %KEY%\bullzipPDF /VE /D "Установка bullzipPDF " /f
REG ADD %KEY%\bullzipPDF /V 1 /D "%cdrom%\%folder%\BullzipPDFPrinter.exe /SILENT /NOCANCEL /NORESTART /NOICONS" /f
SET /A i+=1
mode con cp select=866
exit
Подскажите, может что то делаю не верно?
kotkovets
14-12-2010, 13:51
voler,
А не пробовали создать батник в кодировке OEM 866 ?
И удалить строки:
mode con cp select=1251
mode con cp select=866
И батник прописать в svcpack.in_ ? (естественно распаковать этот файл и упаковать обратно в svcpack.in_)
А зачем, если например PDFCreator ставиться нормально.
То и этот принтер должен ставиться на ура.
Нашел параметры автоинсталятора
The Setup program accepts optional command line parameters. These can be useful to system administrators, and to other programs calling the Setup program.
/SP- Disables the startup prompt.
/SILENT, /VERYSILENT Instructs Setup to be silent or very silent. When Setup is silent the wizard and the background window are not displayed but the installation progress window is. When a setup is very silent this installation progress window is not displayed. If a restart is necessary and the '/NORESTART' command isn't used (see below) and Setup is silent, it will display a Reboot now? message box. If it's very silent it will reboot without asking.
/SUPPRESSMSGBOXES Instructs Setup to suppress message boxes. Only has an effect when combined with '/SILENT' and '/VERYSILENT'.
/NOCANCEL Prevents the user from canceling during the installation process, by disabling the Cancel button and ignoring clicks on the close button. Useful along with '/SILENT' or '/VERYSILENT'.
/NORESTART Instructs Setup not to reboot even if it's necessary.
/RESTARTEXITCODE=exit code Specifies the custom exit code that Setup is to return when a restart is needed. Useful along with '/NORESTART'. Also see Setup Exit Codes.
/DIR="x:\dirname" Overrides the default directory name displayed on the Select Destination Location wizard page. A fully qualified pathname must be specified.
/GROUP="folder name" Overrides the default folder name displayed on the Select Start Menu Folder wizard page.
/NOICONS No icons are installed in the start menu, on the desktop, and in the Quick Launch bar.
/LOG=filename The setup program writes a log to the specified file name. If the file exists, it will be overwritten.
/PRINTERNAME="printername" Installs the printer with specified printer name. Ex. /PRINTERNAME="My PDF Creator"
/INSTANCE="instancename" Adds an instance name to the installed printer name. Ex. /INSTANCE="Invoices"
/LANG="languagecode" Instructs the setup program to install the specified language. Language codes are 3-letter ISO codes. Currently the following languages are available: ARA, BGR, CHS, CHT, CSY, DAN, DEU, ELL, ENU, ESP, FRA, HUN, IND, ITA, PTB, RUS, SRL, SVE, TRK
/PAPERSIZE The printer default paper size can be set to A4 or Letter using the switches /PAPERSIZE=A4 or /PAPERSIZE=Letter
/PRESERVEDEFAULTPRINTER By default the setup program will make the installed printer the default printer. However, you can preserve the default printer if you add this parameter to the setup command line.
/PRESERVEADVANCEDSETTINGS User's advanced printer settings from an earlier install are preserved during installation if this parameter is used. By default the setup program will reset the user specific advanced printer settings during installation. This affects all users on the system. Only settings for the installed printer names are affected.
/GSLITEURL Change the default download location for the gslite.exe program. Ex. /GSLITEURL=http://www.mysite.xxx/redist/gslite.exe
See Automatic download of Ghostscript
/GSLITEDOWNLOADMODE The Ghostscript lite download mode can help the setup program decide when to download the gslite.exe. Valid values are always, never, and smart. Smart mode is the default. It will detect if Ghostscript is installed manually or if the gslite.exe is located in the same folder as the setup program.
See Automatic download of Ghostscript
Setup Exit Codes
Any non-zero exit code indicates that Setup was not run to completion.
Code Description
0 Setup was successfully run to completion.
1 Setup failed to initialize.
2 The user clicked Cancel in the wizard before the actual installation started.
3 A fatal error occurred while preparing to move to the next installation phase (for example, from displaying the pre-installation wizard pages to the actual installation process). This should never happen except under the most unusual of circumstances, such as running out of memory or Windows resources.
4 A fatal error occurred during the actual installation process.
Note: Errors that cause an Abort-Retry-Ignore box to be displayed are not fatal errors. If the user chooses Abort at such a message box, exit code 5 will be returned.
5 The user clicked Cancel during the actual installation process, or chose Abort at an Abort-Retry-Ignore box.
Вот так выглядит вариант установки BullZip принтера.
mode con cp select=1251
SET folder=I386\SVCPACK
FOR %%d IN (c d e f g h i j k l m n o p q r s t u v w x y z) DO IF EXIST %%d:\WIN51 SET CDROM=%%d:
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
SET i=300
REG ADD %KEY%\bullzipPDF /VE /D "Установка BullzipPDF " /f
REG ADD %KEY%\bullzipPDF /V 1 /D "%cdrom%\%folder%\BullzipPDFPrinter.exe /SP- /SUPPRESSMSGBOXES /VERYSILENT /PRESERVEDEFAULTPRINTER/LOADINF=%cdrom%%folder%\bullzip" /f
SET /A i+=1
mode con cp select=866
exit
Файл ответов выглядить так
[Setup]
Lang=rus
Dir=C:\Program Files\Bullzip\PDF Printer
Group=PDF\Bullzip\PDF Printer
NoIcons=0
Tasks=
Но инфы по нему нет, может кто подскажет где взять? На родном сайте не нашел.
alexeyforyou
26-01-2011, 23:03
voler
а в чём проблема ? зачем файл ответов .... у меня он ставится так -
BullzipPDFPrinter.exe /SP- /SUPPRESSMSGBOXES /VERYSILENT /NOCANCEL /NORESTART /GROUP="Bullzip PDF Printer" /PRINTERNAME="PDF Printer" /LANG="RUS" /PRESERVEDEFAULTPRINTER
соответственно в папке лежат - BullzipPDFPrinter.exe и GSlite.exe (накатывается автоматом).
FOR %%d IN (c d e f g h i j k l m n o p q r s t u v w x y z) DO IF EXIST %%d:\WIN51 SET CDROM=%%d:
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
SET i=300
REG ADD %KEY%\%i% /VE /D "Install Bullzip PDF Printer" /f
REG ADD %KEY%\%i% /V 1 /D ""%cdrom%\I386\SVCPACK\BullzipPDFPrinter.exe /SP- /SUPPRESSMSGBOXES /VERYSILENT /NOCANCEL /NORESTART /GROUP="Bullzip PDF Printer" /PRINTERNAME="PDF Printer" /LANG="RUS" /PRESERVEDEFAULTPRINTER" /f
SET /A i+=1
Удачи !
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.