Installation with bat file Issue

Installation and setup related issues.

Moderator: jr

utahred
Posts: 1
Joined: Sun Jan 16, 2011 7:32 am

Installation with bat file Issue

Post by utahred »

I’m running a VB6 program that calls a Report in Access to be shown in Adobe using Bullzip. Using XP and BullZipPDFPrinter_2_0_0_24 installed with the following bat file, the Adobe opened with no dialog boxes (automatically opened Adobe and Report).

@ECHO ON
@SET SetupFileName=BullZipPDFPrinter_2_0_0_24.exe
@SET VersionName=version1

@SET Destination=%ProgramFiles%\BullZip\PDF Printer
@SET VersionFile=%Destination%\%VersionName%.version

IF NOT EXIST "%VersionFile%" GOTO INSTALL
GOTO NOINSTALL

:INSTALL
@ECHO Install Program
NET STOP SPOOLER /yes
"%SetupFileName%" /sp /silent /norestart /nocancel /suppressmsgboxes
IF ERRORLEVEL==1 GOTO INSTALLERROR

@ECHO Remove old version files
DEL "%Destination%\*.version"

@ECHO Create Version file
@ECHO %USERNAME% > "%VersionFile%"

@ECHO Changing PDF Settings
md "c:\Program Files\Layers Demo\pdftemp

copy NewPDFFile.pdf "c:\Program Files\Layers Demo\pdftemp\"


"%Destination%\config.exe" /s output "c:\Program Files\Layers Demo\pdftemp\NewPDFFile.pdf"

"%Destination%\config.exe" /s showpdf yes

@ECHO PDF Settings Changed

@GOTO END

:NOINSTALL
@ECHO Program is up to date
GOTO END

:INSTALLERROR
@ECHO Installation failed


:END

With the upgrade to Windows 7 and BullzipPDFPrinter_7_1_0_1218 I change the Setup title and removed the “NET STOP SPOOLER /yes”.

Everything works; however, I now get the “Bullzip PDF Printer-Create File” dialog box.

How do I eliminate the “Bullzip PDF Printer-Create File” dialog box and auto overwrite the last file at "c:\Program Files\Layers Demo\pdftemp\ NewPDFFile.pdf "?

Thanks in advance!
jr
Site Admin
Posts: 500
Joined: Sun Mar 26, 2006 12:28 pm

Re: Installation with bat file Issue

Post by jr »

You can create a global.ini

http://www.biopdf.com/guide/global_ini.php

and set the Output and AllowOverwrite settings in that.

Then you can distribute it automatically during the installation. Use the CommonAppData folder described in this link

http://www.biopdf.com/guide/distributing_files.php

Regards,
Jacob
Post Reply