Page 1 of 1

TEAMVIEWER QS via copy Befehl auf dem Desktop hinterlegen

Posted: 23. Nov 2017, 11:57
by Taz
Hallo Zusammen,

ich würde gern TeamViewerQS per Empirum auf die Clients pushen.

Ich hab ein Paket erstellt, welches auf auf meiner TestVM super funktioniert, wenn ich das Setup.exe selber ausführe.
Jedoch wenn dieses Paket im Empirum hinterlegt ist und dies auf einem Client pushen möchte, wird es nur im "C:\EmpirumAgent\Packages\" kopiert. Es passiert nichts, es wird keine exe auf dem Desktop kopiert.
Für ein paar gute Ansätze wäre ich sehr dankbar.

An sich ist es ja nur eine exe die auf dem Desktop hinterlegt sein soll.
Im Anhang die setup.inf.

Code: Select all

[SetupInfo]
Author                  = taz
CreationDate            =
InventoryID             =
Description             =
Method                  = Unanttended
Tested on               =
Dependencies            =
Command line options    = /S2 /AW
Last Change             =
Build                   = 0

Build/Revision		Date			Autor			Changes
----------------------------------------------------------------------------------------------------------------------

[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>

[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=x64

[Requirements]

[Application]
ProductName=TeamViewerQS
DeveloperName=TeamViewer
Version=12.0.82216
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , E3E2E2, 4,    , LEFT BOLD ITALIC
Text2="%DeveloperName%",                 Arial,           24, , E3E2E2, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , E3E2E2, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           16, , E3E2E2, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=552B00, 949392
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER

; Register all installations in common registry key
UserKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%
MachineKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=taz - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=taz - %DeveloperName% %ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\Setup.ico",0
UninstallOptions=NOREMOVE NOREPAIR NOMODIFY
ReinstallMode=1
SrcDir=..

; Matrix42 Scripts are copied in a common scripts directory
ApplicationDir=%CommonAppData%\$Matrix42Scripts$\%DeveloperName%\%ProductName%\%Version%

SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
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
CallingText=Fehler beim Aufruf von

[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
CallingText=Error launching

[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%

; 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]!!!


;;; #####################################################################################################################

[Encryption]


[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,   ALWAYS NOSIZEWARNING SETUP WINDOWS64,               0
1:%SetupInfDir%\Setup.ico,                                       ,   NORMAL,                                             0


[Processes]
;<label1>=<processname>, <text>, ABORT
;<label2>=<processname>, <text>, KILLPROCESS

[Product]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT
;ReplaceEnv <Variable>



#Set:Product, CLIENT
#Set:Installation, DONTDELETE
#Set:Uninstallation, DELETE

[Set:Product]
If DoesFileExist ("%UserDesktop%\TeamViewerQS.exe") == "1" THEN "Set:Uninstallation" EndIf

[Set:Installation]
1:"%SRC%\TeamViewerQS.exe","%UserDesktop%\TeamViewerQS.exe",CLIENT ALWAYS, 0


[Set:Uninstallation]

-DEL "%UserDesktop%\TeamViewerQS.exe"



Re: TEAMVIEWER QS via copy Befehl auf dem Desktop hinterlege

Posted: 23. Nov 2017, 16:34
by StadtWN
Vermutlich leigt es daran:
#Set:Installation, DONTDELETE kopiert den Teamviewer, nach der Anmeldung des Benutzers wird #Set:Product, CLIENT
ausgeführt und löscht ihn wieder.
Kopiere den Teamviewer auf %CommonDesktop%. Eventuell ein Diff mit dem Packaging Center und dem Packagewizard.

Sollte so aussehen

Code: Select all

#Set:Product,

[Set:Product]
1:"%SRC%\TeamViewerQS.exe","%CommonDesktop%\TeamViewerQS.exe",NORMAL, 0
Bei einer Deinstallation wird die Datei wieder vom Client gelöscht.

Re: TEAMVIEWER QS via copy Befehl auf dem Desktop hinterlege

Posted: 24. Nov 2017, 09:49
by Taz
Hi,
vielen Dank für den Tipp, jedoch kommt nun die Meldung beim Client;

"Please insert he following disk (or specify a new direcory), and press the enter key
Installation media 1
Directory C:\EmpirumAgent\Packages\TeamViewer\TeamViewerQS\12.0.82216.

Weiß jemand wie ich die Meldung beheben kann?

Re: TEAMVIEWER QS via copy Befehl auf dem Desktop hinterlege

Posted: 24. Nov 2017, 10:01
by StadtWN
Die Meldung besagt, dass die TeamViewerQS.exe nicht gefunden wird. Vermutlich hast du noch irgend wo das Flag "Client" gesetzt.
Ich mach das immer so:

Code: Select all

1:Windows\TeamViewerQS_de.exe, %Windows%,         NORMAL, 0
1:"TeamViewer.lnk",            %commondesktop%,   NORMAL,    0
Die lnk Datei liegt unter %src% und die exe unter %src%\Windows\

Re: TEAMVIEWER QS via copy Befehl auf dem Desktop hinterlege

Posted: 24. Nov 2017, 11:27
by Taz
Hi Ralf,

also es will noch immer nicht klappen, an sich will ja nur das eine Datei auf dem Desktop erstellt wird.
Das sollte ja nicht so schwer sein, jedoch schaffe ich es nicht :/, da geht man davon aus das dies ein Akt sei von 5min, aber es dauert tatsächlich länger als irgendwelche exe datei zu paketieren.

Code: Select all

[SetupInfo]
Author                  = taz
CreationDate            =
InventoryID             =
Description             =
Method                  = Unanttended
Tested on               =
Dependencies            =
Command line options    = /S2 /AW
Last Change             =
Build                   = 0

Build/Revision      Date         Autor         Changes
----------------------------------------------------------------------------------------------------------------------

[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>

[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=x64

[Requirements]

[Application]
ProductName=TeamViewerQS
DeveloperName=TeamViewer
Version=12.0.82216
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , E3E2E2, 4,    , LEFT BOLD ITALIC
Text2="%DeveloperName%",                 Arial,           24, , E3E2E2, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , E3E2E2, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           16, , E3E2E2, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=552B00, 949392
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER

; Register all installations in common registry key
UserKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%
MachineKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=taz - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=taz - %DeveloperName% %ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\Setup.ico",0
UninstallOptions=NOREMOVE NOREPAIR NOMODIFY
ReinstallMode=1
SrcDir=..

; Matrix42 Scripts are copied in a common scripts directory
ApplicationDir=%CommonAppData%\$Matrix42Scripts$\%DeveloperName%\%ProductName%\%Version%

SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
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
CallingText=Fehler beim Aufruf von

[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
CallingText=Error launching

[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%

; 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]!!!


;;; #####################################################################################################################

[Encryption]


[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,   ALWAYS NOSIZEWARNING SETUP WINDOWS64,               0
1:%SetupInfDir%\Setup.ico,                                       ,   NORMAL,                                             0
1:Windows\TeamViewerQS_de.exe, %Windows%,         NORMAL, 0
1:"TeamViewer.lnk",            %commondesktop%,   NORMAL,    0

[Processes]
;<label1>=<processname>, <text>, ABORT
;<label2>=<processname>, <text>, KILLPROCESS

[Product]
;#FileCheckMachine, MACHINE
;#FileCheckClient, CLIENT
;ReplaceEnv <Variable>



#Set:Product, 

#Set:Installation, DONTDELETE
#Set:Uninstallation, DELETE

[Set:Product]
1:"%SRC%\TeamViewerQS.exe","%CommonDesktop%\TeamViewerQS.exe",NORMAL, 0

[Set:Installation]
;1:"%SRC%\TeamViewerQS.exe","%UserDesktop%\TeamViewerQS.exe",CLIENT ALWAYS, 0


[Set:Uninstallation]

;-DEL "%UserDesktop%\TeamViewerQS.exe"

Hier ist nochmal die aktuelle Version der inf.

Danke für die Hilfe

Re: TEAMVIEWER QS via copy Befehl auf dem Desktop hinterlege

Posted: 24. Nov 2017, 15:09
by Taz
Klappt nun, vielen dank :)

Re: TEAMVIEWER QS via copy Befehl auf dem Desktop hinterlege

Posted: 27. Nov 2017, 11:44
by sebastian.pilz
Haben das so gelöst:

Code: Select all

[Set:Product]
1:"%SRC%\Files\TeamViewerQS.exe",%ProgramFiles%\TeamViewerQS\TeamViewerQS.exe,NORMAL,0

[Set:Installation]


[Set:Uninstallation]

;-1:"%ProgramFiles%\TeamViewerQS\TeamViewerQS.exe" 


[Shell:Product]
%Desktop%\TeamviewerQS, %ProgramFiles%\TeamViewerQS\TeamViewerQS.exe
%StartMenu%\TeamviewerQS, %ProgramFiles%\TeamViewerQS\TeamViewerQS.exe

Re: TEAMVIEWER QS via copy Befehl auf dem Desktop hinterlege

Posted: 07. Feb 2018, 13:26
by Taz
Super Vielen Dank, funktioniert nun!
Eure Ideen haben mir sehr geholfen!