Hallo,
ich versuche die letzte Version von freepdf 4.14 in den OPSI einzubinden, was Grundsätzlich auch funktioniert.
Allerdings bekommen ich beim Abschluss der Installationsroutine die Abfrage nach den Dateien COMCAT.DLL, msvbvm50.dll, OLEAUT32.DLL, OLEPRO32.DLL, REGTLIB.EXE, STDOLE2.TLB
Im Popupfenster wird der Pfad C:\Windows\Temp\IXP000.TMP als Suchpfad angegeben.
Gruß Andreas
FreePDF 4.14 installation schlägt fehl
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: FreePDF 4.14 installation schlägt fehl
Uhhh.. I don't know about those files, but they sure seem old. msvbvm50.dll is some visual basic 5.0 component, so something isn't quite right.
I can give you my installscript, I use the PDF24 printer, because that one has more paper sizes, but I need to import the cert of their driver. FreePDF also has a dependency on ghostscript, which is a seperate package.
I can give you my installscript, I use the PDF24 printer, because that one has more paper sizes, but I need to import the cert of their driver. FreePDF also has a dependency on ghostscript, which is a seperate package.
Code: Alles auswählen
; Copyright (c) uib gmbh (www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
; credits: http://www.opsi.org/en/credits/
;
; License Management removed
[Actions]
requiredWinstVersion >= "4.10.8.6"
DefVar $UninstallProgram32$
DefVar $UninstallProgram64$
DefVar $LogDir$
DefVar $ProductId$
DefVar $MinimumSpace$
DefVar $InstallDir32$
DefVar $InstallDir64$
DefVar $ExitCode$
DefVar $INST_SystemType$
DefVar $INST_MsVersion$
set $INST_MsVersion$ = GetMsVersionInfo
Set $INST_SystemType$ = GetSystemType
Set $LogDir$ = "%SystemDrive%\tmp"
; ----------------------------------------------------------------
; - Please edit the following values -
; ----------------------------------------------------------------
;$ProductId$ should be the name of the product in opsi
; therefore please: only lower letters, no umlauts,
; no white space use '-' as a seperator
Set $ProductId$ = "freepdf"
Set $MinimumSpace$ = "500 MB"
; the path were we find the product after the installation
Set $InstallDir32$ = "%ProgramFiles32Dir%\FreePDF"
Set $InstallDir64$ = "%ProgramFiles64Dir%\FreePDF"
; ----------------------------------------------------------------
if not(HasMinimumSpace ("%SystemDrive%", $MinimumSpace$))
LogError "Not enough space on %SystemDrive%, " + $MinimumSpace$ + " on drive %SystemDrive% needed for " + $ProductId$
isFatalError
; Stop process and set installation status to failed
endif
if $INST_MsVersion$ < "5.1"
LogError "Windows XP or newer is required for " + $ProductId$
isFatalError
endif
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
if FileExists("%ScriptPath%\delsub3264.ins")
comment "Start uninstall sub section"
Sub "%ScriptPath%\delsub3264.ins"
endif
comment "installing"
if ($INST_SystemType$ = "x86 System")
Message "Installing " + $ProductId$ + "..."
comment "Install certificate"
DosInAnIcon_install_cert_32
comment "Copy files"
Files_install_32 /32Bit
comment "Install Redmon"
Winbatch_install_32 /32Bit
Sub_check_exitcode
comment "Patch Registry"
Registry_install_freepdf_32 /32Bit
Registry_install_32 /32Bit
Registry_install_AllProfiles /AllNTUserDats
comment "Install FreePDF printer"
if ($INST_MsVersion$ >= "6")
Winbatch_install_printer_NT6 /32Bit
else
Winbatch_install_printer_NT5 /32Bit
endif
Sub_check_exitcode
comment "Create shortcuts"
LinkFolder_install_32
endif
if ($INST_SystemType$ = "64 Bit System")
Message "Installing " + $ProductId$ + "..."
comment "Install certificate"
DosInAnIcon_install_cert_64
comment "Copy files"
Files_install_64 /64Bit
comment "Install Redmon"
Winbatch_install_64 /64Bit
Sub_check_exitcode
comment "Patch Registry"
Registry_install_freepdf_64 /32Bit
Registry_install_64 /64Bit
Registry_install_AllProfiles /AllNTUserDats
comment "Install FreePDF printer"
if ($INST_MsVersion$ >= "6")
Winbatch_install_printer_NT6 /64Bit
else
Winbatch_install_printer_NT5 /64Bit
endif
Sub_check_exitcode
comment "Create shortcuts"
LinkFolder_install_64
endif
[Winbatch_install_32]
"$InstallDir32$\setup.exe" /q
[Winbatch_install_64]
"$InstallDir64$\setup64.exe" /q
[DosInAnIcon_install_cert_32]
"%ScriptPath%\files\x86\certutil.exe" -addstore "TrustedPublisher" "%ScriptPath%\files\pdf24.cer"
[DosInAnIcon_install_cert_64]
"%ScriptPath%\files\x64\certutil.exe" -addstore "TrustedPublisher" "%ScriptPath%\files\pdf24.cer"
[Winbatch_install_printer_NT5]
; Create printer
"%SystemRoot%\system32\rundll32.exe" printui.dll,PrintUIEntry /q /if /b "FreePDF" /r "freepdfxp1:" /m "PDF24" /z /f "%ScriptPath%\files\printer_nt5\pdf24.inf"
; Restore settings
"%SystemRoot%\system32\rundll32.exe" printui.dll,PrintUIEntry /q /Sr /n "FreePDF" /a "%ScriptPath%\files\printer_nt5\settings.dat" d g r
; Instellingen global zijn 'printing defaults', per user gaat het via 'printing preferences'
; Set description and location
"%SystemRoot%\system32\rundll32.exe" printui.dll,PrintUIEntry /q /Xs /n "FreePDF" comment "PDF Printer"
"%SystemRoot%\system32\rundll32.exe" printui.dll,PrintUIEntry /q /Xs /n "FreePDF" location "Virtual"
[Winbatch_install_printer_NT6]
; Create printer
"%SystemRoot%\system32\rundll32.exe" printui.dll,PrintUIEntry /q /if /b "FreePDF" /r "freepdfxp1:" /m "PDF24" /z /f "%ScriptPath%\files\printer_nt6\pdf24.inf"
; Restore settings
"%SystemRoot%\system32\rundll32.exe" printui.dll,PrintUIEntry /q /Sr /n "FreePDF" /a "%ScriptPath%\files\printer_nt6\settings.dat" d g r
; Set description and location
"%SystemRoot%\system32\rundll32.exe" printui.dll,PrintUIEntry /q /Xs /n "FreePDF" comment "PDF Printer"
"%SystemRoot%\system32\rundll32.exe" printui.dll,PrintUIEntry /q /Xs /n "FreePDF" location "Virtual"
[Files_install_32]
copy -s "%ScriptPath%\files\redmon\*" "$InstallDir32$"
copy -s "%ScriptPath%\files\freepdf\*" "$InstallDir32$"
[Files_install_64]
copy -s "%ScriptPath%\files\redmon\*" "$InstallDir64$"
copy -s "%ScriptPath%\files\freepdf\*" "$InstallDir64$"
[Registry_install_freepdf_32]
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\shbox\FreePdfXP]
set "Style" = "xp"
set "DefaultProfile" = "High Quality"
set "fpDir" = "$InstallDir32$\"
set "fpmailer" = "$InstallDir32$\fpmailer.exe"
set "gswin32c" = "%ProgramFiles32Dir%\ghostscript\bin\gswin32c.exe"
openkey [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
set "fpAssist" = "$InstallDir32$\fpAssist.exe"
[Registry_install_freepdf_64]
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\shbox\FreePdfXP]
set "Style" = "xp"
set "DefaultProfile" = "High Quality"
set "fpDir" = "$InstallDir64$\"
set "fpmailer" = "$InstallDir64$\fpmailer.exe"
set "gswin32c" = "%ProgramFiles64Dir%\ghostscript\bin\gswin64c.exe"
openkey [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
set "fpAssist" = "$InstallDir64$\fpAssist.exe"
[Registry_install_32]
openkey [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Redirected Port\Ports\FreePDFXP1:]
set "Description" = "Redirected Port"
set "Command" = "$InstallDir32$\redrun.exe"
set "Arguments"='"$InstallDir32$\fpRedMon.exe" %1'
set "Printer" = "FreePDF"
;set "Printer" = ""
set "Output" = REG_DWORD:00000000
set "ShowWindow" = REG_DWORD:00000002
set "RunUser" = REG_DWORD:00000000
set "Delay" = REG_DWORD:0x0000012c
set "LogFileUse" = REG_DWORD:00000000
set "LogFileName" = ""
set "LogFileDebug" = REG_DWORD:00000000
set "PrintError" = REG_DWORD:00000000
[Registry_install_64]
openkey [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\Redirected Port\Ports\FreePDFXP1:]
set "Description" = "Redirected Port"
set "Command" = "$InstallDir64$\redrun.exe"
set "Arguments"='"$InstallDir64$\fpRedMon.exe" %1'
set "Printer" = "FreePDF"
;set "Printer" = ""
set "Output" = REG_DWORD:00000000
set "ShowWindow" = REG_DWORD:00000002
set "RunUser" = REG_DWORD:00000000
set "Delay" = REG_DWORD:0x0000012c
set "LogFileUse" = REG_DWORD:00000000
set "LogFileName" = ""
set "LogFileDebug" = REG_DWORD:00000000
set "PrintError" = REG_DWORD:00000000
[Registry_install_AllProfiles]
openkey [HKEY_CURRENT_USER\Software\shbox\FreePdfXP]
set "language" = "2"
set "ViewGsLog" = "1"
set "DefaultProfile" = "High Quality"
set "psdir" = "%userprofiledir%\Local Settings\Application Data\FreePDF_XP\"
set "FreePDFSize" = "5895#4305"
; Remove stored start menu order
deletekey [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu]
[LinkFolder_install_32]
set_basefolder common_programs
set_subfolder "FreePDF"
set_link
name: "FreePDF"
target: "$InstallDir32$\freepdf.exe"
parameters:
working_dir: "$InstallDir32$"
icon_file: "$InstallDir32$\freepdf.exe"
icon_index: 0
end_link
set_link
name: "FreePDF Config"
target: "$InstallDir32$\fpUCnfg.exe"
parameters:
working_dir: "$InstallDir32$"
icon_file: "$InstallDir32$\fpUCnfg.exe"
icon_index: 0
end_link
set_link
name: "FreePDF Join"
target: "$InstallDir32$\fpjoin.exe"
parameters:
working_dir: "$InstallDir32$"
icon_file: "$InstallDir32$\fpjoin.exe"
icon_index: 0
end_link
set_link
name: "FreePDF Manual"
target: "$InstallDir32$\FreePDFen.pdf"
parameters:
working_dir: "$InstallDir32$"
icon_file:
icon_index:
end_link
[LinkFolder_install_64]
set_basefolder common_programs
set_subfolder "FreePDF"
set_link
name: "FreePDF"
target: "$InstallDir64$\freepdf.exe"
parameters:
working_dir: "$InstallDir64$"
icon_file: "$InstallDir64$\freepdf.exe"
icon_index: 0
end_link
set_link
name: "FreePDF Config"
target: "$InstallDir64$\fpUCnfg.exe"
parameters:
working_dir: "$InstallDir64$"
icon_file: "$InstallDir64$\fpUCnfg.exe"
icon_index: 0
end_link
set_link
name: "FreePDF Join"
target: "$InstallDir64$\fpjoin.exe"
parameters:
working_dir: "$InstallDir64$"
icon_file: "$InstallDir64$\fpjoin.exe"
icon_index: 0
end_link
set_link
name: "FreePDF Manual"
target: "$InstallDir64$\FreePDFen.pdf"
parameters:
working_dir: "$InstallDir64$"
icon_file:
icon_index:
end_link
[Sub_check_exitcode]
comment "Test for installation success via exit code"
set $ExitCode$ = getLastExitCode
; informations to exit codes see
; http://msdn.microsoft.com/en-us/library/aa372835(VS.85).aspx
; http://msdn.microsoft.com/en-us/library/aa368542.aspx
if ($ExitCode$ = "0")
comment "Looks good: setup program gives exitcode zero"
else
if ($ExitCode$ = "1")
comment "Looks good: RedMon already installed!"
else
comment "Setup program gives a exitcode unequal zero: " + $ExitCode$
if ($ExitCode$ = "1605")
comment "ERROR_UNKNOWN_PRODUCT 1605 This action is only valid for products that are currently installed."
comment "Uninstall of a not installed product failed - no problem"
else
if ($ExitCode$ = "1641")
comment "looks good: setup program gives exitcode 1641"
comment "ERROR_SUCCESS_REBOOT_INITIATED 1641 The installer has initiated a restart. This message is indicative of a success."
else
if ($ExitCode$ = "3010")
comment "looks good: setup program gives exitcode 3010"
comment "ERROR_SUCCESS_REBOOT_REQUIRED 3010 A restart is required to complete the install. This message is indicative of a success."
else
logError "Fatal: Setup program gives an unknown exitcode unequal zero: " + $ExitCode$
isFatalError
endif
endif
endif
endif
endif
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!