ich schätze, ist mal wieder eine simple Frage.
Ich möchte in das lokale Firefox User Profil eine neue Zertifikatsdatenbank und Ausnahmen + ein paar Updates der Extensions kopieren.
Das Auslesen des von Firefox erstellten Zufalls-Pfad z.B.
C:\Users\%username%\AppData\Roaming\Mozilla\Firefox\Profiles\x6dayepi.default
hat nach etwas tüfteln ja noch geklappt.
Aber warum funktioniert im letzten Abschnitt kein einziger der 4 copy-Befehle? Es kommt einfach nichts in dem Verzeichnis an...
Tomaten auf den Augen?
Danke für Tipps.
*Musste es grad nochmal etwas editieren, aber so sieht die Setup.inf aus
Code: Select all
[SetupInfo]
Author = knivel
CreationDate = 12.11.2014 14:00
InventoryID =
Description = Mozilla Firefox ESR Profile Update
Method = manuell
Tested on = Win7 x86
Dependencies =
Command line options = /S1 /AW
Last Change = 12.11.2014 14:00
Build = 0
[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>
[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=*
[Requirements]
[Application]
ProductName=Firefox ESR Profile Update
DeveloperName=Mozilla
Version=0
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName%", Arial, 30, , 2170F3, 4, , LEFT BOLD ITALIC
Text2="%DeveloperName%", Arial, 24, , 2170F3, 4, , LEFT BOLD ITALIC
Text8="%Company%", Arial, 18, , 2170F3, 4, 10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,16, ,2170F3,4,0,BOTTOM LEFT ITALIC
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
UserKeyName=%DeveloperName%\%ProductName%
MachineKeyName=%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=%DeveloperName% %ProductName% %Version%
UninstallDisplayName=%ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
ReinstallMode=1
SrcDir=..
ApplicationDir=%ProgramFilesDir%\%ProductName%
SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=0
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=0
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=1
EndMessage=%EndMessageDesc%
[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
[SysStrings:07]
Users=Benutzer
[SysStrings:09]
Users=Users
[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%
MozDefaultProfile="%ProgramFiles%\Mozilla Firefox\browser\defaults\profile"
[Encryption]
[Processes]
FIREFOX=Firefox.exe, Mozilla Firefox, KILLPROCESS ABORT
[Disks]
1=%Disk1%
[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product = %ProductName%, COPYALWAYS, Product, "%ProductDesc%"
[Installer]
1:..\..\..\..\User\Setup.exe, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupDeu.chm, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupEnu.chm, %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%SetupInfDir%\Setup.inf, , NORMAL, 0
1:%Temp%\Setup64.exe, %CommonSetupDir%\Setup.exe, OPTIONAL NOSIZEWARNING SETUP ALWAYS WINDOWS64, 0
[FileCheckMachine]
ReplaceEnv V_MachineValuesPath
If DoesFileExist ("%V_MachineValuesPath%\%ComputerName%.ini") == "0" Then "FileIsntThere" EndIf
[FileCheckClient]
ReplaceEnv V_UserValuesPath
If "%UserDomain%" <> "%ComputerName%" Then "CheckClientFile" EndIf
[CheckClientFile]
If DoesFileExist ("%V_UserValuesPath%\%WindowsUser%.ini") == "0" Then "FileIsntThere" EndIf
[FileIsntThere]
ErrorLogMsg Values$\MachineValues\%DomainName%\%ComputerName%.ini or Values$\UserValues\%UserDomain%\%WindowsUser%.ini not found!
Abort
[Product]
AskKillProcesses 900, FIREFOX
#Set:Product
-AskKillProcesses 900, FIREFOX
[Set:Product]
If DoesFileExist("%ProgramFilesDir%\Mozilla FireFox\firefox.exe") == "1" Then "CopyNewDefaultProfile" Else AllIsDone
If DoesFileExist ("%AppData%\Mozilla\FireFox\profiles.ini") == "1" Then "CopyNewUsersProfile" Else AllIsDone
[CopyNewDefaultProfile]
Mkdir "%App%\Default"
Copy "%SRC%\Default\*.*" "%App%\Default" /S /D
Copy "%App%\Default\*.*" %MozDefaultProfile% /S /D
[CopyNewUsersProfile]
;Schreibe den Zufallsnamen des Mozialla-Profils in eine txt-Datei
Callhidden cmd.exe /c dir %AppData%\Mozilla\Firefox\Profiles /B > "%AppData%\Mozilla\Firefox\%username%_ProfilePath.txt"
;Lies den inhalt der txt-Datei aus und schreibe ihn in eine Variable
Set MozPath=ReadTextFile ("%AppData%\Mozilla\Firefox\%username%_ProfilePath.txt")
ReplaceEnv MozPath
;Kopiere die benötigten Files in den richtigen Pfad
Copy "%App%\Default\cert8.db" %AppData%\Mozilla\Firefox\Profiles\%MozPath% /S /D
Copy "%App%\Default\cert_override.txt" %AppData%\Mozilla\Firefox\Profiles\%MozPath% /S /D
Copy "%App%\Default\adblockplus\*.*" %AppData%\Mozilla\Firefox\Profiles\%MozPath%\adblockplus /S /D
Copy "%App%\Default\extensions\*.*" %AppData%\Mozilla\Firefox\Profiles\%MozPath%\extensions /S /D
[AllIsDone]
Exit