Dateien im Userteil kopieren (mal wieder ...)

MPI.EVA
Posts: 170
Joined: 19. Jun 2008, 15:40
Contact:

Dateien im Userteil kopieren (mal wieder ...)

Post by MPI.EVA » 18. Feb 2009, 16:04

Command line options = /AW /S1

[Product]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT

;ReplaceEnv <Variable>

#Set:Product
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product

[Set:Installation]
;; copy config file -> disable Autoupdate; disable privcy notification
1:src\vlcrc, , USEFILENAME, 0
1:src\test.txt, , USEFILENAME, 0

#Set:Config, CLIENT

[Set:Config]
CALL reg add HKCU\Software\matrix42\vlc\ /v vlc_client /d 1 /f
1:vlcrc , %AppData%\vlc\ , , 0
1:test.txt , %temp% , , 0
Das Paket wird per Depot ausgerollt.
Im Maschinen Teil werden die 2 Dateien ins %AppDir% kopiert
Nur beim Client Teil werden sie nicht nach %AppData% bzw. %Temp% kopiert, der RegKey wird aber geschrieben



Setup.inf
[SetupInfo]
Author =
CreationDate = 18/02/2009 13:09:20
InventoryID =
Description = VLC 0.9.8a
Method = Unattended
Tested on = XP 32/64
Dependencies =
Command line options = /AW /S1
Last Change = Usersettings
Build = 1

[VarDefInfo]
; <Variable>, <Type>, <Allow>

[Setup]
Version=10.5
ShowCaption=1
BlockInput=0

[Requirements]

[Application]
ProductName=VideoLAN_VLC_0.9.8a_build1
ProductNameShort=VLC
Version=0.9.8a
VersionDirSuffix=100
Revision=0
ServiceRelease=0
DeveloperName=VideoLAN
DeveloperNameShort=
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%", Arial, 30, , 00FFFF, 4, , LEFT BOLD ITALIC
Text2="%DeveloperName%", Arial, 24, , 00FFFF, 4, , LEFT BOLD ITALIC
Text8="%Company%", Arial, 18, , 00FFFF, 4, 10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial, 14, , 007F00, 4, -14, BOTTOM ITALIC LEFT
BackgroundColor=FF0000,000000
BackgroundPicture=
BackgroundSound=
Logo=
WizardPicture=
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
PrecopyFiles=
UserKeyName=%DeveloperName%\%ProductName%
MachineKeyName=%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=%DeveloperNameShort%
UninstallDisplayName=%ProductName%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
ReinstallMode=1
HideUninstall=0
SrcDir=..
ApplicationDir=%Programfiles%\%DeveloperName%\%ProductNameShort%
SetupInfDir=Install
DataDir=%Personal%
DefaultUser=
DefaultCompany=
Prompts=
RunIfInstalled=
Readme=
Execute=
Expand=0
CopyExistingFiles=0
AskUninstallOld=1
AskLicence=0
AskInfo=0
AskFromCD=0
AskShared=1
AskMode=0
AskDir=0
AskDataDir=0
AskUser=0
UseUser=0
UseCompany=1
UseProductID=0
ProductIDLength=0
UseProductIDPerOption=0
UseCheckmarks=2
AutoIniFileMapping=0
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
ShowShellFolder=
LicenceText=
InfoText=
RequirementsText=
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
PrintServer=
PrintEnvironment=
DateWarning=1
SizeWarning=1
Reboot=0
PreventExternalReboot=0
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
ReplaceRunOnce=0
DisableCancelButton=1
ShowEndMessage=0
EndMessage=%EndMessageDesc%
SetupExtDll=
SetupHookFunc=
ShowFullPath=0

[Admin]
AdminSetup=0
ApplicationDir=
AskDir=1
AskOptions=0
ClientSrcDir=Client
UninstallString=%ReinstallString% /U
ReinstallString="%Src%\..\..\..\..\..\User\Setup.exe" "%Src%\%SetupInfDir%\Setup.inf"

[Client]
ClientDir=
AskDir=0
AskOptions=1
Reboot=0
UseUninstallStringFromApplication=1
InstallAtLast=0

[Workstation]
AskOptions=0
AdminUninstallLink=0
AdminUninstallLinkName=%ProductName% %Version%
UserSetupLink=0
UserSetupLinkName=%ProductName% %Version%

[Strings:07]
Disk1=Diskette 1: Installationsdiskette
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
ProductDesc=
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von

[Strings:09]
Disk1=Diskette 1: Installation disk
EndMessageDesc=Installation was completed successfully!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
ProductDesc=
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching

[SysStrings:07]
Users=Benutzer

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=%SoftwareDepotServerName%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%

; Maschinenabhängige Variablen
; machine dependent variables
;VM_<Variable>=%%%V_MachineValuesPath%\%ComputerName%.ini,%ComputerName%,<Variable>%%

; Userabhängige Variablen
; user dependent variables
;VU_<Variable>=%%%V_UserValuesPath%\%WindowsUser%.ini,%WindowsUser%,<Variable>%%

; !!! Setzen der entsprechenden ReplaceEnv Befehle für die Variablen im Abschnitt [Product] nicht vergessen!!!
; !!! Don't forget to set the appropriate ReplaceEnv instructions for the variables in the section [Product]!!!

[Prompts]

[Services]

[Processes]
VLC=vlc.exe, VLC, KILLPROCESS CONTINUE

[EventSources]

[Encryption]

[Disks]
1=%Disk1%

[UserKeyNames]

[Icons]
Product = %ProductNameShort%.ico, 0, 000000, ICON

[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product = %ProductName%, COPYALWAYS, Product, "%ProductDesc%"

[OptionDependencies]

[OptionGroups]

[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:..\..\..\..\User\Mx42SynSem.dll, %System%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%SetupInfDir%\Setup.inf, , NORMAL, 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 <Error>
Abort

[Product]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT

;ReplaceEnv <Variable>

#Set:Product
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product

[Set:Product]

[SET:Installation]
AskKillProcesses 60, VLC
Cd ..
Call "vlc-%Version%-win32.exe" /S
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf

;; delete Desktop icon, startmenu folder
del "%CommonDesktop%\VLC media player.lnk"
DelTree "%Programs%\VideoLAN"

;; configure firewall -> program-based exception for VLC
call netsh firewall add allowedprogram "%ApplicationDir%\vlc.exe" VLC ENABLE
call netsh firewall add allowedprogram "%ProgramFiles%\Mozilla Firefox\firefox.exe" FF-VLC ENABLE

;; copy config file -> disable Autoupdate; disable privcy notification
1:src\vlcrc, , USEFILENAME, 0
1:src\test.txt, , USEFILENAME, 0

#Set:Config, CLIENT

;; copy files for FF plugin (quick`n`dirty)
1:src\npvlc.dll, , USEFILENAME, 0

1:src\libavcodec_plugin.dll, %windir%\System32\, USEFILENAME, 0
1:src\libfreetype_plugin.dll, %windir%\System32\, USEFILENAME, 0
1:src\libvlc.dll, %windir%\System32\, USEFILENAME, 0
1:src\libvlccore.dll, %windir%\System32\, USEFILENAME, 0
1:src\libxml_plugin.dll, %windir%\System32\, USEFILENAME, 0

[Set:Config]
CALL reg add HKCU\Software\matrix42\vlc\ /v vlc_client /d 1 /f
1:vlcrc , %AppData%\vlc\ , , 0
1:test.txt , %temp% , , 0

[SET:Deinstallation]
If "vlc-%Version%-win32.exe" <Then> delete program-based exception for VLC
-call netsh firewall delete allowedprogram "%ApplicationDir%\vlc.exe"
-call netsh firewall delete allowedprogram "%ProgramFiles%\Mozilla Firefox\firefox.exe"

If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "%ApplicationDir%\uninstall.exe" /S
-Cd ..
-AskKillProcesses 60, VLC

[Reg:OnUninstallProduct]

[Reg:Product]
;;hide Add/Remove installer entry
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VLC media player","SystemComponent",0x00010001,"1"
HKLM,"SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\VLC media player","SystemComponent",0x00010001,"1"

;;register FF plugin
HKLM,"SOFTWARE\MozillaPlugins",,0x00000010
HKLM,"SOFTWARE\MozillaPlugins\@videolan.org/vlc;version=%Version%","Description",0x00000000,"VLC Multimedia Plugin"
HKLM,"SOFTWARE\MozillaPlugins\@videolan.org/vlc;version=%Version%","Path",0x00000000,"%ApplicationDir%\npvlc.dll"
HKLM,"SOFTWARE\MozillaPlugins\@videolan.org/vlc;version=%Version%","Product",0x00000000,"VLC media player"
HKLM,"SOFTWARE\MozillaPlugins\@videolan.org/vlc;version=%Version%","Vendor",0x00000000,"VideoLAN"
HKLM,"SOFTWARE\MozillaPlugins\@videolan.org/vlc;version=%Version%","Version",0x00000000,"%Version%"

[Ini:Product]

[Security:Product]

[Shell:Installer]

[Shell:Product]
VLC Media Player, %App%\vlc.exe, , %App%, , %App%\vlc.exe

[SET:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% vlc-0.9.8a-win32.exe
Abort

[SET:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% vlc-0.9.8a-win32.exe

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 7965
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Post by Hendrik_Ambrosius » 18. Feb 2009, 16:25

Versuchen Sie mal das Kopierflag "CLIENT".
Geht es via COPY-Befehl?
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.

MPI.EVA
Posts: 170
Joined: 19. Jun 2008, 15:40
Contact:

Post by MPI.EVA » 18. Feb 2009, 16:47

Mit COPY im Client Abschnitt hat es geklappt.

Danke!

Tasker
Posts: 100
Joined: 26. Mar 2007, 13:29
Location: Berlin
Contact:

Post by Tasker » 21. Apr 2009, 09:23

Hallo,

ich baue gerade ebenfalls den VLC-Player. Allerdings soll dieser auf einem Terminalserver laufen. Die Installation ist auch eine unattended-Installation und die Konfigurationsdatei vlcrc muss auch in den Anwendungs-part des User-Profils kopiert werden. Leider wird immer die unattended-Installation (also die .exe-Datei) beim Userteil mit angestoßen, was fehl schlägt.

Hier meine setup.inf:

Code: Select all

[SetupInfo]
Author                  =
CreationDate            =20.04.2009 15:19:07 
InventoryID             = 
Description             =VLC Player 0.99 recompiliert - Formate asf, wmf, asx und wma sind dem MS Mediaplayer vorbehalten 
Method                  =unattended
Tested on               = 
Dependencies            = 
Command line options    =/S1  /AW
Last Change             = 
Build                   = 

[VarDefInfo]
; <Variable>, <Type>, <Allow>

[Setup]
Version=10.5
ShowCaption=1
BlockInput=0

[Requirements]

[Application]
ProductName=VLC
ProductNameShort=VLC
Version=0.99
VersionDirSuffix=100
Revision=1
ServiceRelease=0
DeveloperName=VideoLan
DeveloperNameShort=VideoLan
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , 00FFFF, 4,    , LEFT BOLD ITALIC
Text2="%DeveloperName%",                 Arial,           24, , 00FFFF, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , 00FFFF, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           14, , 007F00, 4, -14, BOTTOM ITALIC LEFT
BackgroundColor=FF0000,000000
BackgroundPicture=
BackgroundSound=
Logo=
WizardPicture=
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
PrecopyFiles=
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
HideUninstall=0
SrcDir=..
ApplicationDir=%ProgramFilesDir%\%ProductName%
SetupInfDir=Install
DataDir=%Personal%
DefaultUser=
DefaultCompany=
Prompts=
RunIfInstalled=
Readme=
Execute=
Expand=0
CopyExistingFiles=0
AskUninstallOld=1
AskLicence=0
AskInfo=0
AskFromCD=0
AskShared=1
AskMode=0
AskDir=0
AskDataDir=0
AskUser=0
UseUser=0
UseCompany=1
UseProductID=0
ProductIDLength=0
UseProductIDPerOption=0
UseCheckmarks=2
AutoIniFileMapping=0
ShellLinks=1
CommonShellLinks=0
CreateUnresolvableShellLinks=1
ShowShellFolder=
LicenceText=
InfoText=
RequirementsText=
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
PrintServer=
PrintEnvironment=
DateWarning=1
SizeWarning=1
Reboot=0
PreventExternalReboot=0
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
ReplaceRunOnce=0
DisableCancelButton=1
ShowEndMessage=1
EndMessage=%EndMessageDesc%
SetupExtDll=
SetupHookFunc=
ShowFullPath=0

[Admin]
AdminSetup=0
ApplicationDir=
AskDir=1
AskOptions=0
ClientSrcDir=Client
UninstallString=%ReinstallString% /U
ReinstallString="%Src%\..\..\..\..\User\Setup.exe" "%Src%\%SetupInfDir%\Setup.inf"

[Client]
ClientDir=
AskDir=0
AskOptions=1
Reboot=0
UseUninstallStringFromApplication=1
InstallAtLast=0

[Workstation]
AskOptions=0
AdminUninstallLink=0
AdminUninstallLinkName=%ProductName% %Version%
UserSetupLink=0
UserSetupLinkName=%ProductName% %Version%

[Strings:07]
Disk1=Diskette 1: Installationsdiskette
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
ProductDesc=
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von

[Strings:09]
Disk1=Diskette 1: Installation disk
EndMessageDesc=Installation was completed successfully!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
ProductDesc=
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching

[SysStrings:07]
Users=Benutzer

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=%SoftwareDepotServerName%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%

; Maschinenabhängige Variablen
; machine dependent variables
;VM_<Variable>=%%%V_MachineValuesPath%\%ComputerName%.ini,%ComputerName%,<Variable>%%

; Userabhängige Variablen
; user dependent variables
;VU_<Variable>=%%%V_UserValuesPath%\%WindowsUser%.ini,%WindowsUser%,<Variable>%%

; !!! Setzen der entsprechenden ReplaceEnv Befehle für die Variablen im Abschnitt [Product] nicht vergessen!!!
; !!! Don't forget to set the appropriate ReplaceEnv instructions for the variables in the section [Product]!!!

[Prompts]

[Services]

[Processes]

[EventSources]

[Encryption]

[Disks]
1=%Disk1%

[UserKeyNames]

[Icons]
Product = %ProductNameShort%.ico, 0, 000000, ICON

[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product   = %ProductName%,   COPYALWAYS, Product,   "%ProductDesc%"

[OptionDependencies]

[OptionGroups]

[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:..\..\..\..\User\Mx42SynSem.dll, %System%,         OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%SetupInfDir%\Setup.inf,                         , NORMAL,                                             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 <Error>
Abort

[Product]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT

;ReplaceEnv <Variable>

#Set:Product
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product

[Set:Product]

[SET:Installation]
Cd ..
Call "vlc-0.9.9-win32.exe" /S /NCRC
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf



#Set:Config, CLIENT

[Set:Config]
;; kopiert die Konfigurationsdatei (Ausschalten des Auto-Updates)
1: VLC\vlcrc 	,%Appdata% , CLIENT DONTREPLACE, 66568



[SET:Deinstallation]
If "uninstall.exe" <> "" Then "SET:Deinstallation2" EndIf

[SET:Deinstallation2]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "C:\Programme\Videolan\VLC\uninstall.exe" /S /NCRC
-Cd ..

[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Installer]

[Shell:Product]

[SET:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% vlc-0.9.9-win32.exe
Abort

[SET:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% uninstall.exe


Wie kann ich sicherstellen, dass nur der Userteil, also die Konfigurationsdatei und nicht die unattended-Installation los läuft?

AFiedler
Posts: 265
Joined: 15. Nov 2005, 16:02
Location: Köln
Contact:

Post by AFiedler » 21. Apr 2009, 09:38

Indem du die Sektionen die nur im Maschine Teil laufen sollen mit
#Set:xyz, Maschine
setzt. Das gleiche gilt für die Reg Sektionen.

Tasker
Posts: 100
Joined: 26. Mar 2007, 13:29
Location: Berlin
Contact:

Post by Tasker » 12. May 2009, 09:54

So weit funktioniert das erst mal, jedoch wird der Userteil nur für genau einen Benutzer installiert. Die Benutzerteile der anderen Benutzer werden nicht nachinstalliert.

Hat jemand dazu auch noch eine Idee?

Achja, wichtig wäre noch dazu, dass das Ganze unter Windows XP funktioniert, unter Windows Server 2003 im Terminalservermodus mit diesem Effekt.

Code: Select all


[SetupInfo]
Author                  =a
CreationDate            =20.04.2009 15:19:07 
InventoryID             = 
Description             =VLC Player 0.99 recompiliert - Formate asf, wmf, asx und wma sind dem MS Mediaplayer vorbehalten 
Method                  =unattended
Tested on               = 
Dependencies            = 
Command line options    =/AW /S1
Last Change             = 
Build                   = 

[VarDefInfo]
; <Variable>, <Type>, <Allow>

[Setup]
Version=10.5
ShowCaption=1
BlockInput=0

[Requirements]

[Application]
ProductName=VLC
ProductNameShort=VLC
Version=0.99
VersionDirSuffix=100
Revision=0
ServiceRelease=0
DeveloperName=VideoLan
DeveloperNameShort=VideoLan
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , 00FFFF, 4,    , LEFT BOLD ITALIC
Text2="%DeveloperName%",                 Arial,           24, , 00FFFF, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , 00FFFF, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           14, , 007F00, 4, -14, BOTTOM ITALIC LEFT
BackgroundColor=FF0000,000000
BackgroundPicture=
BackgroundSound=
Logo=
WizardPicture=
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER
PrecopyFiles=
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
HideUninstall=0
SrcDir=..
ApplicationDir=%ProgramFilesDir%\%ProductName%
SetupInfDir=Install
DataDir=%Personal%
DefaultUser=
DefaultCompany=
Prompts=
RunIfInstalled=
Readme=
Execute=
Expand=0
CopyExistingFiles=0
AskUninstallOld=1
AskLicence=0
AskInfo=0
AskFromCD=0
AskShared=1
AskMode=0
AskDir=0
AskDataDir=0
AskUser=0
UseUser=0
UseCompany=1
UseProductID=0
ProductIDLength=0
UseProductIDPerOption=0
UseCheckmarks=2
AutoIniFileMapping=0
ShellLinks=1
CommonShellLinks=0
CreateUnresolvableShellLinks=1
ShowShellFolder=
LicenceText=
InfoText=
RequirementsText=
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
PrintServer=
PrintEnvironment=
DateWarning=1
SizeWarning=1
Reboot=0
PreventExternalReboot=0
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
ReplaceRunOnce=0
DisableCancelButton=1
ShowEndMessage=0
EndMessage=%EndMessageDesc%
SetupExtDll=
SetupHookFunc=
ShowFullPath=0

[Admin]
AdminSetup=0
ApplicationDir=
AskDir=0
AskOptions=0
ClientSrcDir=Client
UninstallString=%ReinstallString% /U
ReinstallString="%Src%\..\..\..\..\User\Setup.exe" "%Src%\%SetupInfDir%\Setup.inf"

[Client]
ClientDir=
AskDir=0
AskOptions=1
Reboot=0
UseUninstallStringFromApplication=1
InstallAtLast=0

[Workstation]
AskOptions=0
AdminUninstallLink=0
AdminUninstallLinkName=%ProductName% %Version%
UserSetupLink=0
UserSetupLinkName=%ProductName% %Version%

[Strings:07]
Disk1=Diskette 1: Installationsdiskette
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
ProductDesc=
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von

[Strings:09]
Disk1=Diskette 1: Installation disk
EndMessageDesc=Installation was completed successfully!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
ProductDesc=
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching

[SysStrings:07]
Users=Benutzer

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=%SoftwareDepotServerName%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%

; Maschinenabhängige Variablen
; machine dependent variables
;VM_<Variable>=%%%V_MachineValuesPath%\%ComputerName%.ini,%ComputerName%,<Variable>%%

; Userabhängige Variablen
; user dependent variables
;VU_<Variable>=%%%V_UserValuesPath%\%WindowsUser%.ini,%WindowsUser%,<Variable>%%

; !!! Setzen der entsprechenden ReplaceEnv Befehle für die Variablen im Abschnitt [Product] nicht vergessen!!!
; !!! Don't forget to set the appropriate ReplaceEnv instructions for the variables in the section [Product]!!!

[Prompts]

[Services]

[Processes]

[EventSources]

[Encryption]

[Disks]
1=%Disk1%

[UserKeyNames]

[Icons]
Product = %ProductNameShort%.ico, 0, 000000, ICON

[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product   = %ProductName%,   COPYALWAYS, Product,   "%ProductDesc%"

[OptionDependencies]

[OptionGroups]

[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:..\..\..\..\User\Mx42SynSem.dll, %System%,         OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%SetupInfDir%\Setup.inf,                         , NORMAL,                                             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 <Error>
Abort

[Product]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT

;ReplaceEnv <Variable>

#Set:Product
#Set:Installation, DONTDELETE, MACHINE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product

[Set:Product]

1:VLC\vlcrc ,		 %Appdata% , CLIENT NORMAL  , 66568


[SET:Installation]
Cd ..
Call "vlc-0.9.9-win32.exe" /S /NCRC
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf

[SET:Deinstallation]
If "uninstall.exe" <> "" Then "SET:Deinstallation2" EndIf

[SET:Deinstallation2]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "C:\Programme\Videolan\VLC\uninstall.exe" /S /NCRC
-Cd ..

[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Installer]

[Shell:Product]

[SET:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% vlc-0.9.9-win32.exe
Abort

[SET:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% uninstall.exe


kaestners
Posts: 59
Joined: 24. Apr 2007, 11:58
Location: Neustadt
Contact:

Post by kaestners » 17. Jun 2009, 09:18

Hallo Leute,

wie habt ihr genau das mit dem Ausschalten des Auto-Update geregelt?
mfg,
kaestners :wink:
__________________________________
Empirum V18.0.2

User avatar
MSC
Posts: 324
Joined: 03. Jul 2006, 09:03
Contact:

Post by MSC » 17. Jun 2009, 09:48

Hi kaestners,

man kann einen speziellen Link als Aufruf verwenden:

[Shell:Product]
VideoLAN\VLC Media Player, %ProgramFilesDir%\Videolan\VLC Player\vlc.exe, --no-qt-updates-notif, %ProgramFilesDir%\Videolan\VLC Player

mfg Mario

User avatar
FruF
Posts: 204
Joined: 26. Jan 2009, 12:33
Contact:

Post by FruF » 17. Jun 2009, 11:33

@ Kaestners / MSC

Code: Select all

1:vlc\vlcrc ,       %Appdata% , CLIENT NORMAL  , 66568
Das klährt das doch.
Die Datei (Voreinstallungsdatei) , einmal nach den wünschen erstellt, bringts.
die "richtigen" Einstellungen sind vorprogrammiert und es kommen keine Abfragen.

Wenn die Datei nicht existiert, dann wird halt mit Popups und Standarteinstellungen eine neue Erstellt.
Wenn sie schon existiert, importiert er sich alles was er braucht daraus.

FruF

kaestners
Posts: 59
Joined: 24. Apr 2007, 11:58
Location: Neustadt
Contact:

Post by kaestners » 17. Jun 2009, 15:27

Hallo,

Ich kann diese Konfigurationsdatei vlcrc nicht erstellen! Was mache ich falsch?
mfg,
kaestners :wink:
__________________________________
Empirum V18.0.2

Moeki
Posts: 212
Joined: 06. Feb 2006, 14:22
Contact:

Post by Moeki » 19. Jun 2009, 14:49

Diese Datei wird automatisch erstellt und im benutzerabhängigen %Appdata%\vlc gespeichert, sobald das erste Mal VLC gestartet wird. Also VLC starten, Meldung wegklicken, vlcrc ggf. anpassen und Client-geflagged \AW kopieren.

Ein Tipp am Rande: Man kann mit nsis die Installation anpassen, um z.B. bestimmte Dateitypenzuordnungen zu ändern bzw. von vornherein zu deaktivieren. Einfach mal bei appdeploy gucken!

Gruß,
Marko.

kaestners
Posts: 59
Joined: 24. Apr 2007, 11:58
Location: Neustadt
Contact:

Post by kaestners » 22. Jun 2009, 10:02

Hallo Moeki,

soweit habe ich es gereglt bekommen, jedoch findet das Setup die von mir hinterlegte "vlcrc" nicht, obwohl diese definitiv in der Quelle liegt!
Außerdem denke ich besteht ein Problem, dass der Ordner %APPDATA%\vlc erst beim Starten durch den User erzeugt wird!
mfg,
kaestners :wink:
__________________________________
Empirum V18.0.2

Moeki
Posts: 212
Joined: 06. Feb 2006, 14:22
Contact:

Post by Moeki » 23. Jun 2009, 14:19

setup.inf
Command line options = /S2 /AW

CALL "%SRC%\vlc-0.9.9-win32.exe" /S /NCRC
1:vlcrc, "%APPDATA%\vlc\", CLIENT ALWAYS, 0

Die Datei vlcrc liegt nach dem erstmaligen Start unter C:\Dokumente und Einstellungen\%username%\Anwendungsdaten\vlc . Von dort einfach ins %SRC% Verzeichnis kopieren.

Der Ordner wird auch durch den Kopierbefehl angelegt!

Gruß,
Marko.

kaestners
Posts: 59
Joined: 24. Apr 2007, 11:58
Location: Neustadt
Contact:

Post by kaestners » 23. Jun 2009, 15:46

Hallo Moeki,

es will einfach nicht gelingen! Die "vlcrc" wird zwar kopiert, jedoch beim Start von VLC wird eine neue "vlcrc" erzeugt, sodass meine Einstellungen wieder dahin sind!
Trotzdem danke für die Hilfe! :(
mfg,
kaestners :wink:
__________________________________
Empirum V18.0.2

User avatar
FruF
Posts: 204
Joined: 26. Jan 2009, 12:33
Contact:

Post by FruF » 25. Jun 2009, 12:17

Hi Kaestner

Das kann nicht sein =)
Wenn eine vlcrc Datei da is nutzt er die.
Woher weisst du das eine neue erstellt wird ?

Du hast also (mit der selben VLC version!) die vlcrc Datei des konfigurierten VLC kopiert. Hat geklappt : richtiger Ordern ... usw.
Ich hab das grad nochma gemacht. Funktionierte bei mir.

FruF

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: Bing [Bot] and 6 guests