Nachdem FreePDF 4.04 und Ghostscript 9.00 über OPSI verteilt wurden, kommt es zu Fehlermeldungen da sich der Pfad zu Ghostscript geändert hat,
(Der Benutzer darf den Pfad aber nicht anpassen, als Admin geht es natürlich)
hat da jemand schon eine Lösung, offenbar reichen dazu die Hauptbenutzer Rechte nicht mehr, weiß jemand wo ich den Hebel ansetzen muß?
Ich pack mal die Installationsskripte unten ran:
; Copyright (c) uib gmbh (http://www.uib.de)
; This sourcecode is owned by uib
; and published under the Terms of the General Public License.
Code: Alles auswählen
[Initial]
Message=Installiere FreePDF XP 4.x ......
;Erstellt am 06.05.2009, uib
;changed MH
LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off
[Aktionen]
DefVar $ProductFullName$
Set $ProductFullName$ = "FreePDF XP 3.26"
DefVar $ScriptPath$
Set $ScriptPath$ = "%ScriptPath%"
DefVar $ProgramFilesDir$
set $ProgramFilesDir$ = "%ProgramFilesDir%"
;Variable für temporäres Verzeichnis
DefVar $Temp$
set $Temp$ = EnvVar("TEMP")
;Variablen für BetriebssystemsVersion (OS)-Test
DefVar $OS$
DefVar $MinorOS$
set $OS$ = GetOS
set $MinorOS$ = GetNTVersion
if ( $OS$ = "Windows_NT" OR $OS$ = "Windows_95" )
ShowBitmap /3 "%scriptpath%\pdf.png" " FreePDF_XP"
;DosInAnIcon_freepdf_setup
Winbatch_install
Files_copy_Dateien
; LinkFolder_FreePDF_XP
;custom specific stuff
DefVar $PRODUCTPATH$
Set $PRODUCTPATH$="%ProgramFilesDir%\FreePDF_XP"
ExitWindows /Reboot
if FileExists("%ScriptPath%\custom_ins_dir\custom.ins")
sub "%ScriptPath%\custom_ins_dir\custom.ins"
endif
endif
;[DosInAnIcon_freepdf_setup]
;"%ScriptPath%\files\FreePDFXP.EXE" /q /c:"fpSetup.exe /q"
[Winbatch_install]
; something like
"%SCRIPTPATH%\files\FreePDFXP.EXE" /q /c:"fpSetup.exe /q"
; $licensekey$ may be inserted into the additional parameters string
[Files_copy_Dateien]
copy -svx %SCRIPTPATH%\files\*.pdf c:\Programme\FreePDF_XP\
[LinkFolder_FreePDF_XP]
set_basefolder common_programs
set_subfolder "FreePDF XP"
set_link
name: FreePDF
target: C:\Programme\FreePDF_XP\freepdf.exe
parameters:
working_dir: C:\Programme
icon_file:
end_link
set_link
name: FreePDF Assistant
target: C:\Programme\FreePDF_XP\fpassist.exe
parameters:
working_dir: C:\Programme
icon_file:
end_link
set_link
name: FreePDF Join
target: C:\Programme\FreePDF_XP\fpjoin.exe
parameters:
working_dir: C:\Programme
icon_file:
end_link
set_link
name: FreePDF Handbuch
target: C:\Programme\FreePDF_XP\FreePDFXPAdminDe.pdf
parameters:
working_dir: C:\Programme
icon_file:
end_link
set_link
name: FreePDF Handbuch
target: C:\Programme\FreePDF_XP\FreePDFXPAdminEn.pdf
parameters:
working_dir: C:\Programme
icon_file:
end_link
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.
[Initial]
Message=Installiere ghostscript 900 ......
;Erstellt am 07.01.10, uib
;changed 27.10.2010, MH
;Version 900
LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off
[Aktionen]
;Variable für temporäres Verzeichnis
DefVar $Temp$
set $Temp$ = EnvVar("TEMP")
;Variablen für BetriebssystemsVersion (OS)-Test
DefVar $OS$
DefVar $MinorOS$
set $OS$ = GetOS
set $MinorOS$ = GetNTVersion
DefVar $InstallDir$
set $InstallDir$="%ProgramFilesDir%"+"\gs"
DefStringList $wmic_systemtype_out$
; started two times cause the stringnumberposition is wrong after the first time
Set $wmic_systemtype_out$ = getOutstreamFromSection ('DosInAnIcon_retrieve_systemtype')
DefVar $systemtype$
Set $systemtype$ = TakeString (2,$wmic_systemtype_out$)
comment "Show product picture"
ShowBitmap /3 "%ScriptPath%\" + "ghostscript.png" "Ghostscript"
DefVar $BitVERSION$
if ( $systemtype$ = "X86-based PC ")
; 32bit-System
Set $BitVERSION$ = "32bit"
DOSInAnIcon_unattended_install_32
else
if ($systemtype$ = "X64-based PC ")
; 64-bit System
Set $BitVERSION$ = "64bit"
DOSInAnIcon_unattended_install_64
endif
endif
[DosInAnIcon_retrieve_systemtype]
@echo off
wmic computersystem get systemtype
[DOSInAnIcon_unattended_install_32]
p:
cd P:\install\ghostscript\gs900w32
setupgs.exe "%ProgramFilesDir%\gs"
[DOSInAnIcon_unattended_install_64]
p:
cd P:\install\ghostscript\gs871w64
setupgs.exe "%ProgramFilesDir%\gs"
;Anmerkung nur w32 Version in Benutzung ...
;
;Download der Ghostscript exe z.B. gs900w32.exe ...
;
;http://sourceforge.net/projects/ghostscript/files/
;Starten der .exe und "setup" anwählen,
;jetzt werden die Dateien entpackt, unter %temp% (am besten vorher bereinigen, alle Programme schliessen)
;im unterverzeichnis in dem die setupgs.exe steht alles rauskopieren, das sind die Quelldateien
;danach Setup abbrechen.
Danke für jede Idee ...
MH