Microsoft teams - paketieren

Post Reply
mario.schwab
Posts: 38
Joined: 07. Apr 2016, 12:17
Contact:

Microsoft teams - paketieren

Post by mario.schwab » 26. Jan 2017, 15:35

Hallo,

der Installer installiert normal ins Benutzerverzeichnis - C:\Users\username\AppData\Local\Microsoft

Wenn ich es paketiere, dann in C:\Windows\SysWOW64\...., wo der user ja dann kein Zugriff hat, kennt das jemand, hat wer das Paket schon gemacht?

Teste ich das Script mit dem Packaging Center läufts, roll ich es aus, dann nicht.

Danke & Gruß

https://teams.microsoft.com/downloads
https://techcommunity.microsoft.com/t5/ ... td-p/32469

User avatar
Frank Dethlefsen
Posts: 521
Joined: 06. Apr 2006, 22:01
Location: Bochum
Contact:

Re: Microsoft teams - paketieren

Post by Frank Dethlefsen » 27. Jan 2017, 11:47

Moin!

Die Installation könnte man im Benutzerteil laufen lassen. Vermutlich geht das auch ohne Admin-Rechte....
:roll:
Frank Dethlefsen
Consultant und Coach
UPDATENOW GmbH
Frank.Dethlefsen@updatenow.de
https://empirum.blogspot.de/

mario.schwab
Posts: 38
Joined: 07. Apr 2016, 12:17
Contact:

Re: Microsoft teams - paketieren

Post by mario.schwab » 09. Feb 2017, 13:57

Hallo,

ja das wäre ne möglichkeit, habe ich auch schon dran gedacht, aber ehrlich gesagt kann ich mich nicht mehr erinnern, wie ich das im Userteil ausführe...

Danke!

Code: Select all

[SetupInfo]
Author                  =Mario Schwab
CreationDate            =25.01.2017 13:41:57
InventoryID             =
Description             =
Method                  =
Tested on               =
Dependencies            =
Command line options    =/S0
Last Change             =
Build                   =

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

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

[Requirements]

[Application]
ProductName=Teams (64bit) MUI
DeveloperName=Microsoft
Version=0.7.00.403
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         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, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER

; Register all installations in common registry key
UserKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%
MachineKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=Matrix42 - %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
ErrorText=Fehler
CallingText=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
ErrorText=Error
CallingText=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:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:..\..\..\..\User\Setup64.exe,        %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             0
; 1:%SetupInfDir%\Setup.ico,                             , NORMAL,                                           0
; 1:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                           0
;1:Teams.lnk, "c:\ProgramData\Microsoft\Windows\Start Menu"
[Product]
; ReplaceEnv <Variable>

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

[Set:Product]

[Set:Installation]
AddMeter -1
Call "%Src%\Teams_windows_x64.exe" --silent
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf

[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
-Call C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Microsoft\Teams\Update.exe --uninstall -s
-AddMeter -1

[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Teams_windows_x64.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Teams_windows_x64.exe

mario.schwab
Posts: 38
Joined: 07. Apr 2016, 12:17
Contact:

Re: Microsoft teams - paketieren

Post by mario.schwab » 13. Feb 2017, 11:57

Sobald es mit Matrix und im Userkontext ausgeführt wird, fehlen Berechtigungen.

Führe ich jedoch die Exe aus, ohne Matrix, läuft die Installation auch unter dem User ohne Adminberechtigungen.

Was mache ich hier falsch?

dstirner
Posts: 85
Joined: 15. Dec 2015, 10:26
Location: Vilshofen an der Donau
Contact:

Re: Microsoft teams - paketieren

Post by dstirner » 13. Feb 2017, 12:37

Hallo,

haben Sie nur die Sektion geflagt bzw. haben Sie den /AW Schalter hinzugefügt?

Fehlen Ihnen auch die Berechtigungen, wenn Sie das Setup über das Packaging Center im Userteil laufen lassen?

VG
dstirner

mario.schwab
Posts: 38
Joined: 07. Apr 2016, 12:17
Contact:

Re: Microsoft teams - paketieren

Post by mario.schwab » 13. Feb 2017, 15:17

Hallo,

einerseits der /AW Schalter - Command line options =/S0 /AW
andererseits - #Set:userteil, CLIENT

ja, dann kommt, dass er nicht in common files schreiben kann.

Da es bei manueller installation unter dem user läuft, sollte das doch auch mit Matrix möglich sein.
Wohl ist hier meine fehlende Erfahrung der Haken...


Code: Select all

[SetupInfo]
Author                  =Mario Schwab
CreationDate            =25.01.2017 13:41:57
InventoryID             =
Description             =
Method                  =
Tested on               =
Dependencies            =
Command line options    =/S0 /AW
Last Change             =
Build                   =

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

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

[Requirements]

[Application]
ProductName=Teams (64bit) MUI
DeveloperName=Microsoft
Version=0.7.00.403
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         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, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER

; Register all installations in common registry key
UserKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%
MachineKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=Matrix42 - %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
ErrorText=Fehler
CallingText=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
ErrorText=Error
CallingText=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:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:..\..\..\..\User\Setup64.exe,        %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,     0
1:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             0
; 1:%SetupInfDir%\Setup.ico,                             , NORMAL,                                           0
; 1:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                           0
;1:Teams.lnk, "c:\ProgramData\Microsoft\Windows\Start Menu"
[Product]
; ReplaceEnv <Variable>

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

[Set:Product]

[Set:Installation]

[Set:Userteil]
Call "%Src%\Teams_windows_x64.exe" --silent
If "%ErrorLevel%" <> "0" Then "SET:InstallationError" EndIf


[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
-Call C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Microsoft\Teams\Update.exe --uninstall -s
-AddMeter -1

[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Teams_windows_x64.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Teams_windows_x64.exe

dstirner
Posts: 85
Joined: 15. Dec 2015, 10:26
Location: Vilshofen an der Donau
Contact:

Re: Microsoft teams - paketieren

Post by dstirner » 13. Feb 2017, 16:08

Ich werde MS Teams morgen in meine Umgebung testen.
Ich geb Ihnen dann Bescheid.

VG
dstirner

mario.schwab
Posts: 38
Joined: 07. Apr 2016, 12:17
Contact:

Re: Microsoft teams - paketieren

Post by mario.schwab » 13. Feb 2017, 16:45

Vielen Dank!

Gruß
Mario Schwab

dstirner
Posts: 85
Joined: 15. Dec 2015, 10:26
Location: Vilshofen an der Donau
Contact:

Re: Microsoft teams - paketieren

Post by dstirner » 15. Feb 2017, 09:14

Guten Morgen,
entschuldigen Sie, dass ich mich jetzt erst melde.

Ich habe eine Lösung gefunden.
Wichtig ist hier, dass Sie den Installer entpacken.
Dann erscheint nämlich die Update.exe, welche Sie mit Parameter füttern können.
Ich habe Ihnen mein Setup.inf angehängt. Hier wird Teams nach "%ProgramFiles%\Microsoft\Teams" installiert.
Ich hoffe Ihnen hilft dies weiter.
Bei Problemen können Sie sich natürlich gerne an mich wenden. :)

Setup.inf:

Code: Select all

[SetupInfo]
Author                  = dstirner
CreationDate            = 14.02.2017 22:52:55
InventoryID             =
Description             =
Method                  = Unattended
Tested on               =
Dependencies            =
Command line options    = /S2
Last Change             =
Build                   =

[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=Teams
DeveloperName=Microsoft
Version=0.7.00.3101
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         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, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER

; Register all installations in common registry key
UserKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%
MachineKeyName=$Matrix42Packages$\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=Matrix42 - %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
ErrorText=Fehler
CallingText=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
ErrorText=Error
CallingText=Setup fehlgeschlagen

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

;Abteilungsvariable
VM_Team=%%%V_MachineValuesPath%\%ComputerName%.ini,%ComputerName%,FocTeam%%

; 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:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                           0

[Product]
; ReplaceEnv <Variable>

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

[Set:Product]
;Erstellung Copy-Zielverzeichnis
MkDir "%ProgramFiles%\Teams"

;Kopieren der entpackten Installerdateien ins Programmverzeichnis
Copy "%Src%\Update.exe" "%ProgramFiles%\Teams\"
Copy "%Src%\Teams-0.7.00.3101-full.nupkg" "%ProgramFiles%\Teams\"
Copy "%Src%\RELEASES" "%ProgramFiles%\Teams\"
Copy "%Src%\background.gif" "%ProgramFiles%\Teams\"

[Set:Installation]
AddMeter -1
Call "%ProgramFiles%\Teams\Update.exe" --install="%ProgramFiles%\Teams" -s
If DoesFileExist ("%ProgramFiles%\Microsoft\Teams\Update.exe") == "0" then "SET:InstallationError" EndIf
DelTree "%ProgramFiles%\Teams"

[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
-DelTree "%ProgramFiles%\Microsoft\Teams"
-Call "%ProgramFiles%\Microsoft\Teams\Update.exe" --uninstall
-AddMeter -1

[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Update.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Update.exe
VG
dstirner

mario.schwab
Posts: 38
Joined: 07. Apr 2016, 12:17
Contact:

Re: Microsoft teams - paketieren

Post by mario.schwab » 06. Mar 2017, 11:30

Hallo,

sorry für die späte Rückmeldung!

habe es nun mit dem Vorschlag versucht, hat geklappt.
Habe noch ein Shortcut hinzugefügt für das Startmenü.
Vielen Dank!

Gruß
Mario Schwab

mario.schwab
Posts: 38
Joined: 07. Apr 2016, 12:17
Contact:

Re: Microsoft teams - paketieren

Post by mario.schwab » 15. Mar 2018, 09:25

Hallo,

ich möchte das Thema noch einmal aufgreifen, da dise Bereitstellung mit Windows 10 nicht mehr funktioniert.

man kann Teams mit
Teams_windows_x64.exe --silent
installieren, jedoch muss das der User ausführen.
Ich habe es auf diverse Wege im Userteil versucht, die Instalaltion läuft, aber die App ist danach nicht verfügbar.

Hat schon jemand Teams für Windows 10 paketiert?

Danke & Gruß
Mario Schwab

dstirner
Posts: 85
Joined: 15. Dec 2015, 10:26
Location: Vilshofen an der Donau
Contact:

Re: Microsoft teams - paketieren

Post by dstirner » 15. Mar 2018, 16:16

Hallo,

interessant... Bei mir funktioniert das Paket unter Windows 10 auch.
Kopieren Sie den Installer im Maschinenteil irgendwo hin, wo der User auch Zugriff hat?

VG
dstirner

mario.schwab
Posts: 38
Joined: 07. Apr 2016, 12:17
Contact:

Re: Microsoft teams - paketieren

Post by mario.schwab » 15. Mar 2018, 17:19

Hallo,

anbei die Config:

Code: Select all

; 1:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                           0
1:Microsoft Teams.lnk, "c:\ProgramData\Microsoft\Windows\Start Menu"
1:favicon.ico, "C:\Program Files\IFS Applications (32Bit) MUI\install"

[Product]
; ReplaceEnv <Variable>

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

[Set:Product]
;Erstellung Copy-Zielverzeichnis
MkDir "%ProgramFiles%\Teams"

;Kopieren der entpackten Installerdateien ins Programmverzeichnis
Copy "%Src%\Update.exe" "%ProgramFiles%\Teams\"
Copy "%Src%\Teams-0.7.00.6102-full.nupkg" "%ProgramFiles%\Teams\"
Copy "%Src%\RELEASES" "%ProgramFiles%\Teams\"
Copy "%Src%\background.gif" "%ProgramFiles%\Teams\"
Copy "%Src%\favicon" "%ProgramFiles%\Teams\"

[Set:Installation]
AddMeter -1
Call "%ProgramFiles%\Teams\Update.exe" --install="%ProgramFiles%\Teams" -s
If DoesFileExist ("%ProgramFiles%\Microsoft\Teams\Update.exe") == "0" then "SET:InstallationError" EndIf
DelTree "%ProgramFiles%\Teams"

[Set:Deinstallation]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
-DelTree "%ProgramFiles%\Microsoft\Teams"
-Call "%ProgramFiles%\Microsoft\Teams\Update.exe" --uninstall
-AddMeter -1
Ich habe aktuell eine interessante Lösung gefunden ...
ich kopiere die exe in das userverzeichnis und einen Link auf den Desktop.
Der Link heißt Microsoft Teams.
Wenn der user eden link benutzt, wird Teams installiert und die Verknüpfung duch den Installationsprozess ersetzt durch den richtigen und alles ist gut :)

Einfach und doch effektiv.

Nur das deinstallieren will noch nicht recht :(

Code: Select all

[Set:Deinstallation]
Call "%userprofile%\AppData\Local\Microsoft\Teams\Update.exe" --uninstall 
matrix führt den Befehl nicht aus

Grüße

dstirner
Posts: 85
Joined: 15. Dec 2015, 10:26
Location: Vilshofen an der Donau
Contact:

Re: Microsoft teams - paketieren

Post by dstirner » 15. Mar 2018, 17:40

Also ich würde es mittlerweile anders machen. Bzw. mache es mittlerweile anders.
Ich entpacke den Installer nicht mehr (wie bei ihrem Paket), sondern kopiere ihn in einen Ordner (Teams) unter ProgramFiles. (Maschinenteil).
Anschließend rufe ich den Installer mit dem Silentparameter auf.

Bei der Deinstallation ist es wichtig, dass diese im Userteil ausgeführt wird, da er ansonsten die "Update.exe" nicht findet.

Ich habe in meinem Paket noch eine Überprüfung eingebaut, ob MS Teams bereits manuell installiert wurde.
Falls dies der Fall ist, wird das Paket "erfolgreich" installiert. Das Teams Update wird ja sowieso automatisch ausgeführt (soweit ich weiß, kann man es bei Teams nicht ausstellen), somit wird das Paket einmal installiert und anschließend immer automatisch auf die neuste Version gehoben.

Code: Select all

[Product]
; ReplaceEnv <Variable>

#Set:DoesAlreadyExist,DONTDELETE CLIENT
#Set:CopyLocal, DONTDELETE WINDOWS64
#Set:CopyLocal86, DONTDELETE WINDOWS32
#Set:ProductAppData, CLIENT
#Set:Installation, DONTDELETE WINDOWS32 
#Set:Installationx64, DONTDELETE WINDOWS64
#Set:InstallationAppData, CLIENT DONTDELETE WINDOWS64
#Set:InstallationAppData86, CLIENT DONTDELETE WINDOWS32
#Set:DeinstallationUser, DELETE CLIENT
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product


[Set:DoesAlreadyExist]
If DoesFileExist ("%LocalAppData%\Microsoft\Teams\Update.exe") == "1" then "Set:AlreadyInstalled" EndIf

[Set:AlreadyInstalled]
ErrorLogMsg "Microsoft Teams is already installed."
Exit 

[Set:CopyLocal]
;Erstellung Copy-Zielverzeichnis
MkDir "%ProgramFiles%\Teams"

;Kopieren des Installers ins Programmverzeichnis
Copy "%Src%\Teams_windows_x64.exe" "%ProgramFiles%\Teams\"

[Set:CopyLocal86]
;Erstellung Copy-Zielverzeichnis
MkDir "%ProgramFiles%\Teams"

;Kopieren des Installers ins Programmverzeichnis
Copy "%Src%\Teams_windows.exe" "%ProgramFiles%\Teams\"

[Set:Productx64]

[Set:ProductAppData]

[Set:Product]


[Set:Installation]



[Set:InstallationAppData]
AddMeter -1
Call "%ProgramFiles%\Teams\Teams_windows_x64.exe" -s
If DoesFileExist ("%LocalAppData%\Microsoft\Teams\Update.exe") == "0" then "SET:InstallationError" EndIf


[Set:InstallationAppData86]
AddMeter -1
Call "%ProgramFiles%\Teams\Teams_windows.exe" -s
If DoesFileExist ("%LocalAppData%\Microsoft\Teams\Update.exe") == "0" then "SET:InstallationError" EndIf


[Set:DeinstallationUser]
If "%ErrorLevel%" <> "0" Then "SET:DeInstallationError" EndIf
-DelTree "%LocalAppData%\Microsoft\Teams"
-Call "%LocalAppData%\Microsoft\Teams\Update.exe" --uninstall
-AddMeter -1

[Set:Installationx64]


[Set:Deinstallation]


[Reg:OnUninstallProduct]

[Reg:Product]

[Ini:Product]

[Security:Product]

[Shell:Product]
%Desktop%\Microsoft Teams, %LocalAppData%\Microsoft\Teams\current\Teams.exe, , %App%
%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft\Microsoft Teams, %LocalAppData%\Microsoft\Teams\current\Teams.exe, , %App%
VG
dstirner

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: No registered users and 1 guest