none
Installationsprogramm-Befehl RRS feed

  • Frage

  • Guten Tag,

    ich wollte fragen, ob folgender Installationsprogramm-Befehl richtig für SCCM ist.

    msiexec /i "MeinProgramm.msi" TRANSFORMS="MeinProgramm_SoftwareId.mst" TRANSFORMS="MeinProgramm_ISTransform.mst"

    Ich habe diesen so hinterlegt und die Installationsroutinge an sich funktioniert auch...allerdings befinden sich in der MeinProgramm_ISTransform.mst Registrierungswerte, welche nach Beendigung der Installation nicht gesetzt werden..daher die Frage ob der Befehl an sich überhaupt greift. Die MST-Daten befinden sich im gleichen Inhaltsordner wie die MSI.

    Gruß,

    excQ

    Dienstag, 25. August 2015 09:14

Antworten

  • Ich habe nun den Fehler gefunden...wenn ich den Befehlparamter wie folgt setze:

    msiexec /i "MeinProgramm.msi" TRANSFORMS="MeinProgramm1.mst;MeinProgramm2.mst"

    Wichtig ist, dass die " Zeichen jeweils am Anfang und Ende dabei stehen.

    Mittwoch, 26. August 2015 10:47

Alle Antworten

  • Guten Tag,

    ich wollte fragen, ob folgender Installationsprogramm-Befehl richtig für SCCM ist.

    msiexec /i "MeinProgramm.msi" TRANSFORMS="MeinProgramm_SoftwareId.mst" TRANSFORMS="MeinProgramm_ISTransform.mst"

    Ich habe diesen so hinterlegt und die Installationsroutinge an sich funktioniert auch...allerdings befinden sich in der MeinProgramm_ISTransform.mst Registrierungswerte, welche nach Beendigung der Installation nicht gesetzt werden..daher die Frage ob der Befehl an sich überhaupt greift. Die MST-Daten befinden sich im gleichen Inhaltsordner wie die MSI.

    Gruß,

    excQ

    Hi excQ,

    ich bin mir nicht sicher ob du TRANSFORMS doppelt angeben kannst. Die genaue Beschreibung der MSIEXEC Parameter findest du hier: https://technet.microsoft.com/en-us/library/cc759262(v=ws.10).aspx

    Dienstag, 25. August 2015 09:33
  • Du musst die Transforms mit Strichpunkt getrennt angeben statt 2x TRANSFORMS= zu verwenden.

    Torsten Meringer | http://www.mssccmfaq.de

    Dienstag, 25. August 2015 09:46
    Beantworter
  • Wie würde das aussehen? Ich kann mir leider nichts darunter vorstellen...

    So? msiexec /i "MeinProgramm.msi" TRANSFORMS=".MeinProgramm_SoftwareId.mst" ".MeinProgramm_ISTransform.mst"

    • Bearbeitet excQ Dienstag, 25. August 2015 11:13
    Dienstag, 25. August 2015 10:06
  • TRANSFORMS=bla1.mst;bla2.mst

    Torsten Meringer | http://www.mssccmfaq.de

    Dienstag, 25. August 2015 11:08
    Beantworter
  • Ich habe nun:

    msiexec /i "MeinProgramm.msi" TRANSFORMS=MeinProgramm_SoftwareId.mst;MeinProgramm.mst

    gesetzt. Nun sagt mir das SoftwareCenter dauerhaft "Warte auf Installation". Die Daten hat er sich bereits heruntergeladen.

    AppEnforce:

    Content path: C:\Windows\ccmcache\z
    	Working directory: ]LOG]!><time="13:09:03.220-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appcontext.cpp:85">
    <![LOG[    Prepared working directory: C:\Windows\ccmcache\z]LOG]!><time="13:09:03.223-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appcontext.cpp:189">
    <![LOG[Found executable file msiexec with complete path C:\Windows\system32\msiexec.exe]LOG]!><time="13:09:03.227-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="executility.cpp:188">
    <![LOG[    Prepared command line: "C:\Windows\system32\msiexec.exe" /x {323D89F9-3393-4532-895D-53D046007A50} /q /qn]LOG]!><time="13:09:03.229-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appcontext.cpp:338">
    <![LOG[    Executing Command line: "C:\Windows\system32\msiexec.exe" /x {323D89F9-3393-4532-895D-53D046007A50} /q /qn with user context]LOG]!><time="13:09:03.231-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appexcnlib.cpp:201">
    <![LOG[    Working directory C:\Windows\ccmcache\z]LOG]!><time="13:09:03.233-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appexcnlib.cpp:215">
    <![LOG[    Post install behavior is BasedOnExitCode]LOG]!><time="13:09:03.260-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appcommon.cpp:1094">
    <![LOG[    Waiting for process 6928 to finish.  Timeout = 120 minutes.]LOG]!><time="13:09:03.263-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appexcnlib.cpp:1958">
    <![LOG[    Process 6928 terminated with exitcode: 0]LOG]!><time="13:09:37.311-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appexcnlib.cpp:1967">
    <![LOG[    Looking for exit code 0 in exit codes table...]LOG]!><time="13:09:37.313-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appexcnlib.cpp:505">
    <![LOG[    Matched exit code 0 to a Success entry in exit codes table.]LOG]!><time="13:09:37.314-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appexcnlib.cpp:584">
    <![LOG[    Performing detection of app deployment type MeinProgramm (ScopeId_d5da22bd-47bf-414c-8b4e-8c9c5ed8517d/DeploymentType_1740c6ff-dcf6-410f-978c-9a235df37076, revision 2) for system.]LOG]!><time="13:09:37.354-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appprovider.cpp:2148">
    <![LOG[+++ Application not discovered. [AppDT Id: ScopeId_d5da22bd-47bf-414c-8b4e-8c9c5ed8517d/DeploymentType_1740c6ff-dcf6-410f-978c-9a235df37076, Revision: 2]]LOG]!><time="13:09:37.376-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="localapphandler.cpp:291">
    <![LOG[++++++ App enforcement completed (34 seconds) for App DT " MeinProgramm " [ScopeId_d5da22bd-47bf-414c-8b4e-8c9c5ed8517d/DeploymentType_1740c6ff-dcf6-410f-978c-9a235df37076], Revision: 2, User SID: ] ++++++]LOG]!><time="13:09:37.378-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6248" file="appprovider.cpp:2448">
    <![LOG[+++ Starting Install enforcement for App DT " MeinProgramm " ApplicationDeliveryType - ScopeId_d5da22bd-47bf-414c-8b4e-8c9c5ed8517d/DeploymentType_1740c6ff-dcf6-410f-978c-9a235df37076, Revision - 3, ContentPath - C:\Windows\ccmcache\z, Execution Context - System]LOG]!><time="13:10:02.313-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appprovider.cpp:1702">
    <![LOG[    A user is logged on to the system.]LOG]!><time="13:10:02.350-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appprovider.cpp:2083">
    <![LOG[    Performing detection of app deployment type MeinProgramm (ScopeId_d5da22bd-47bf-414c-8b4e-8c9c5ed8517d/DeploymentType_1740c6ff-dcf6-410f-978c-9a235df37076, revision 3) for system.]LOG]!><time="13:10:02.362-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appprovider.cpp:2148">
    <![LOG[+++ Application not discovered. [AppDT Id: ScopeId_d5da22bd-47bf-414c-8b4e-8c9c5ed8517d/DeploymentType_1740c6ff-dcf6-410f-978c-9a235df37076, Revision: 3]]LOG]!><time="13:10:02.401-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="localapphandler.cpp:291">
    <![LOG[    App enforcement environment: 
    	Context: Machine
    	Command line: msiexec /i " MeinProgramm.msi" TRANSFORMS=". MeinProgramm.mst" ". MeinProgramm.mst"
    	Allow user interaction: No
    	UI mode: 0
    	User token: null
    	Session Id: 6
    	Content path: C:\Windows\ccmcache\z
    	Working directory: ]LOG]!><time="13:10:02.403-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcontext.cpp:85">
    <![LOG[    Prepared working directory: C:\Windows\ccmcache\z]LOG]!><time="13:10:02.406-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcontext.cpp:189">
    <![LOG[Found executable file msiexec with complete path C:\Windows\system32\msiexec.exe]LOG]!><time="13:10:02.410-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="executility.cpp:188">
    <![LOG[    Prepared command line: "C:\Windows\system32\msiexec.exe" /i "MeinProgramm.msi" TRANSFORMS=". MeinProgramm.mst"  ". MeinProgramm _ISTransform.mst" /qn]LOG]!><time="13:10:02.412-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcontext.cpp:338">
    <![LOG[Valid MSI Package path = C:\Windows\ccmcache\z\ MeinProgramm.msi]LOG]!><time="13:10:02.421-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcontext.cpp:765">
    <![LOG[    Advertising MSI package [C:\Windows\ccmcache\z\ MeinProgramm.msi] to the system.]LOG]!><time="13:10:02.423-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcommon.cpp:125">
    <![LOG[AdvertisePackage - MsiAdvertiseProduct Failed : 0x80070658]LOG]!><time="13:10:04.195-120" date="08-25-2015" component="AppEnforce" context="" type="3" thread="6944" file="appcommon.cpp:151">
    <![LOG[AdvertisePackage failed (0x80070658).]LOG]!><time="13:10:04.199-120" date="08-25-2015" component="AppEnforce" context="" type="3" thread="6944" file="appcommon.cpp:207">
    <![LOG[Lowright users might fail to install this application if it requires higher privileges]LOG]!><time="13:10:04.200-120" date="08-25-2015" component="AppEnforce" context="" type="2" thread="6944" file="appcontext.cpp:391">
    <![LOG[    Executing Command line: "C:\Windows\system32\msiexec.exe" /i " MeinProgramm.msi" TRANSFORMS=". MeinProgramm _SoftwareId.mst" ". MeinProgramm _ISTransform.mst" /qn with user context]LOG]!><time="13:10:04.202-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appexcnlib.cpp:201">
    <![LOG[    Working directory C:\Windows\ccmcache\z]LOG]!><time="13:10:04.203-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appexcnlib.cpp:215">
    <![LOG[    Post install behavior is BasedOnExitCode]LOG]!><time="13:10:04.213-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcommon.cpp:1094">
    <![LOG[    Waiting for process 5008 to finish.  Timeout = 120 minutes.]LOG]!><time="13:10:04.216-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appexcnlib.cpp:1958">

    Auf dem Client habe ich zuvor erfolgreich Software installiert...nur mit der oben neu hinzugekommenen Befehlszeile, taucht dies auf.


    Edit: Wie ich gerade feststellen muss, kommt dieser "Fehler" auch wenn ich die 'alte' Befehlszeile verwende. Ich habe das Paket komplett neue an den DP versendet und an den Client verteilt...den CCMCache habe ich entsprechend den Vorgaben mal gesäubert.
    • Bearbeitet excQ Dienstag, 25. August 2015 12:06
    Dienstag, 25. August 2015 11:37
  • <![LOG[+++ Application not discovered. [AppDT Id: ScopeId_d5da22bd-47bf-414c-8b4e-8c9c5ed8517d/DeploymentType_1740c6ff-dcf6-410f-978c-9a235df37076, Revision: 3]]LOG]!><time="13:10:02.401-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="localapphandler.cpp:291">
    <![LOG[    App enforcement environment: 
    	Context: Machine
    	Command line: msiexec /i " MeinProgramm.msi" TRANSFORMS=". MeinProgramm.mst" ". MeinProgramm.mst"
    	Allow user interaction: No
    	UI mode: 0
    	User token: null
    	Session Id: 6
    	Content path: C:\Windows\ccmcache\z
    	Working directory: ]LOG]!><time="13:10:02.403-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcontext.cpp:85">
    <![LOG[    Prepared working directory: C:\Windows\ccmcache\z]LOG]!><time="13:10:02.406-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcontext.cpp:189">
    <![LOG[Found executable file msiexec with complete path C:\Windows\system32\msiexec.exe]LOG]!><time="13:10:02.410-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="executility.cpp:188">
    <![LOG[    Prepared command line: "C:\Windows\system32\msiexec.exe" /i "MeinProgramm.msi" TRANSFORMS=". MeinProgramm.mst"  ". MeinProgramm _ISTransform.mst" /qn]LOG]!><time="13:10:02.412-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcontext.cpp:338">
    <![LOG[Valid MSI Package path = C:\Windows\ccmcache\z\ MeinProgramm.msi]LOG]!><time="13:10:02.421-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcontext.cpp:765">
    <![LOG[    Advertising MSI package [C:\Windows\ccmcache\z\ MeinProgramm.msi] to the system.]LOG]!><time="13:10:02.423-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcommon.cpp:125">
    <![LOG[AdvertisePackage - MsiAdvertiseProduct Failed : 0x80070658]LOG]!><time="13:10:04.195-120" date="08-25-2015" component="AppEnforce" context="" type="3" thread="6944" file="appcommon.cpp:151">
    <![LOG[AdvertisePackage failed (0x80070658).]LOG]!><time="13:10:04.199-120" date="08-25-2015" component="AppEnforce" context="" type="3" thread="6944" file="appcommon.cpp:207">
    <![LOG[Lowright users might fail to install this application if it requires higher privileges]LOG]!><time="13:10:04.200-120" date="08-25-2015" component="AppEnforce" context="" type="2" thread="6944" file="appcontext.cpp:391">
    <![LOG[    Executing Command line: "C:\Windows\system32\msiexec.exe" /i " MeinProgramm.msi" TRANSFORMS=". MeinProgramm _SoftwareId.mst" ". MeinProgramm _ISTransform.mst" /qn with user context]LOG]!><time="13:10:04.202-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appexcnlib.cpp:201">
    <![LOG[    Working directory C:\Windows\ccmcache\z]LOG]!><time="13:10:04.203-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appexcnlib.cpp:215">
    <![LOG[    Post install behavior is BasedOnExitCode]LOG]!><time="13:10:04.213-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appcommon.cpp:1094">
    <![LOG[    Waiting for process 5008 to finish.  Timeout = 120 minutes.]LOG]!><time="13:10:04.216-120" date="08-25-2015" component="AppEnforce" context="" type="1" thread="6944" file="appexcnlib.cpp:1958">


    So wie es aussieht, läuft die Installation aktuell. Schade, dass keine Logging-Parameter mit angeben worden sind (zB /l*v %windir%\Logs\MeinProgramm.log), denn dann würdest Du sehen, was passiert. 
    Wobei die fett markierten Teile komisch aussehen - was aber nichts zu bedeuten haben muss. 

    Torsten Meringer | http://www.mssccmfaq.de

    Dienstag, 25. August 2015 12:06
    Beantworter
  • Ach, das ist doch wieder zum verrückt werden...wenn ich die Anwendung nun Deinstallieren möchte, steht "Entfernen steht aus" in einer Dauerschleife da...ich sehe nich, wo das Problem sein könnte.

    Egal welche Software ich nun bereitstelle..bei jeder bleibt der Status beim Installieren/Deinstallieren dauerhaft stehen..das kann doch nicht sein...

    • Bearbeitet excQ Dienstag, 25. August 2015 12:52
    Dienstag, 25. August 2015 12:30
  • Folgenden Fehler hab ich aktuell im SMS_Object_Replication_Manager:

    Meldungs-ID: 620
    Von Microsoft SQL Server wurde SQL-Meldung 547, Schweregrad 16, zurückgegeben: [23000][547][Microsoft][SQL Server Native Client 11.0][SQL Server]Die DELETE-Anweisung steht in Konflikt mit der REFERENCE-Einschränkung 'CI_AssignmentTargetedCIs_CI_ConfigurationItems_FK2'. Der Konflikt trat in der CM_P01-Datenbank, Tabelle 'dbo.CI_Assi

    Meldungs-ID: 6004

    Objekt-Replikationsmanager konnte die Änderungen am Objekt nicht verarbeiten. Es wird versucht, diese Änderungen im nächsten Verarbeitungszyklus zu verarbeiten.

    Lösung: Überprüfen Sie die vorherigen Statusmeldungen und Protokolle, um weitere Informationen zu diesem Problem zu erhalten.

    In der objreplmgr-log steht aber nichts auffälliges...


    • Bearbeitet excQ Dienstag, 25. August 2015 13:26
    Dienstag, 25. August 2015 13:20
  • Ich hab zum testen mal einen neuen virtuellen Client mit dem SoftwareCenter bestückt und die gleiche Software, die sich aktuell nicht auf den anderen Clients installieren lässt, installiert. Erfolgreich - sowie die deinstallation...soll ich die anderen Clients einfach mal "ruhen" lassen oder was? :D

    Sobald ich aber wieder den Paramter für die MST-Daten angebe, wie oben beschrieben, bleibt es wieder bei "installation läuft"...selbst bei einer Anwendung die keine 4MB groß ist...

    Kann ich die MST-Daten in Verbindung mit der MSI irgendwie auf dem Client direkt testen? Über CMD oder so?

    • Bearbeitet excQ Dienstag, 25. August 2015 13:37
    Dienstag, 25. August 2015 13:35
  • cmd öffnen und die Command Line einfach ausprobieren.

    Torsten Meringer | http://www.mssccmfaq.de

    Dienstag, 25. August 2015 13:41
    Beantworter
  • Also wenn ich die MSI ohne MST-Daten installiere, geht es.

    Sobald ich die MST Datein mit einbeziehe, öffnet sich ein "Windows Installer - Fenster" und zeigt mir mehrer Paramter die ich angeben kann.

    Dienstag, 25. August 2015 13:57
  • Dann stimmt der Syntax nicht. Wie sieht denn der gesamte Befehl aus?

    Torsten Meringer | http://www.mssccmfaq.de

    Dienstag, 25. August 2015 15:30
    Beantworter
  • msiexec /i "MeinProgramm.msi" TRANSFORMS=MeinProgramm_SoftwareId.mst;MeinProgramm.mst Wenn ich nur msiexec /i "MeinProgramm.msi" nehme, startet der Installationswizzard. Sofern ich dahinter noch ein /q mache, passiert gar nichts.
    Dienstag, 25. August 2015 16:12
  • Und wie sieht's mit dem Logging aus, wie oben schon erwähnt?

    Torsten Meringer | http://www.mssccmfaq.de

    Dienstag, 25. August 2015 16:51
    Beantworter
  • Wie genau setze ich das Logging? Einfach hinter den Installparameter /l*v %windir%\Logs\MeinProgramm.log setzen?
    Dienstag, 25. August 2015 18:10
  • Ich habe nun den Fehler gefunden...wenn ich den Befehlparamter wie folgt setze:

    msiexec /i "MeinProgramm.msi" TRANSFORMS="MeinProgramm1.mst;MeinProgramm2.mst"

    Wichtig ist, dass die " Zeichen jeweils am Anfang und Ende dabei stehen.

    Mittwoch, 26. August 2015 10:47