Variable für USER ab und zu falsch

Post Reply
User avatar
muelnik
Posts: 205
Joined: 28. Jan 2014, 13:02
Contact:

Variable für USER ab und zu falsch

Post by muelnik » 27. Feb 2017, 11:17

Hallo zusammen,

ich habe hier ein Paket, dass nach C:\User\angemeldeter_User\AppData\Roaming\... eine Datei kopieren soll. Ab und zu klappt es wunderbar und ab und zu wir die Datei aber nach C:\User\SERVICE_USER_EMPIRUM\AppData\Roaming\... oder C:\User\SYSTEM\AppData\Roaming\... kopiert. Wie kann ich im Paket sicherstellen, dass die Datei dort landet wo sie auch hin soll?

Danke :)

VG
Niko

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

Re: Variable für USER ab und zu falsch

Post by Hendrik_Ambrosius » 27. Feb 2017, 12:36

Anscheinend ist im Script nicht klar definiert dass dieser Schritt im Userteil laufen soll.
Bitte ggf. mal die SETUP.INF posten.
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.

User avatar
muelnik
Posts: 205
Joined: 28. Jan 2014, 13:02
Contact:

Re: Variable für USER ab und zu falsch

Post by muelnik » 27. Feb 2017, 12:56

Hallo,

aktuell löse ich das mit einem Robocopy-Befehl:
CallHidden cmd.exe /c robocopy "\\%empirumserver%\Configurator$\Packages\SAP\SAPconfig\1.3\Common" "C:\Users\%USERNAME%\AppData\Roaming\SAP\Common" /MIR /Log:C:\temp\copy_Landscape_SAP.log

wenn es mit einem 1: Befehl auch klappen würde (wo ich überzeugt davon bin) sehr gerne korrigieren :)

Vielen Dank.

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

Re: Variable für USER ab und zu falsch

Post by Hendrik_Ambrosius » 27. Feb 2017, 13:04

Bitte so auf keinen Fall arbeiten - denn man weiß ja nicht ob der EmpirumServer in dem Moment wo das Paket läuft überhaupt verfügbar ist. Immer die Dateien innerhalb des Pakets verwenden!
Außerdem ist so völlig unklar ob das im User- oder Systemteil läuft.

Helfen dürfte dieser Forums-Eintrag:
viewtopic.php?f=84&t=14395&p=57806&hili ... 48e#p57806
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.

User avatar
muelnik
Posts: 205
Joined: 28. Jan 2014, 13:02
Contact:

Re: Variable für USER ab und zu falsch

Post by muelnik » 28. Feb 2017, 11:05

Hallo,

ok, danke für den Einwand, habe ich sofort geändert:

Code: Select all

1:SAPUILandscape.xml,   %AppData%\SAP\Common\SAPUILandscape.xml, MACHINE CLIENT ALWAYS, 0
aber leider schreibt er die Datei noch immer an die falsche Stelle:

Code: Select all

Installations-Assistent: CopyTheFile(pSrc="C:\Program Files\Empirum\Agent\Packages\SAP\SAPconfig\1.3\SAPUILandscape.xml", pDst="C:\Windows\System32\config\systemprofile\AppData\Roaming\SAP\Common\SAPUILandscape.xml") 
Können Sie mir noch einen Tipp geben?

Vielen Dank und Grüße
Niko Müller

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

Re: Variable für USER ab und zu falsch

Post by Hendrik_Ambrosius » 28. Feb 2017, 21:11

Wird das Paket mit Parameter /AW aufgerufen?
Erscheint die Installation des Userteils im Log?
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.

User avatar
muelnik
Posts: 205
Joined: 28. Jan 2014, 13:02
Contact:

Re: Variable für USER ab und zu falsch

Post by muelnik » 02. Mar 2017, 10:17

jetzt habe ich es zum laufen bekommen, so:

Code: Select all

#Set:Product, DONTDELETE CLIENT 
[Set:Product]
Copy %xmlLocation%\SAPUILandscape.xml %AppData%\SAP\Common\SAPUILandscape.xml 

f48614
Posts: 224
Joined: 24. Apr 2007, 14:38
Contact:

Re: Variable für USER ab und zu falsch

Post by f48614 » 02. Mar 2017, 14:10

1:SAPUILandscape.xml, %AppData%\SAP\Common\SAPUILandscape.xml, MACHINE CLIENT ALWAYS, 0
CLIENT The user-specific file is required for the client or the user after a shared installation (server or workstation) is being performed.

MACHINE The file is only required for the workstation when a workstation installation is being performed. Both CLIENT and MACHINE are to be specified for files which are required on the machine as well as for a client installation. This is the case e.g. for all files in and under the Windows directory as well as files in or under the shared program directory (CommonFilesDir). Setup already knows this, so that it is not necessary to set the flags for these files.

MACHINE und CLIENT widerspricht sich
Empirum v18.0 + EPE 4.7.1
Testsystem Empirum v18.0

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

Re: Variable für USER ab und zu falsch

Post by Hendrik_Ambrosius » 02. Mar 2017, 19:55

Nein. Heisst nur, dass das Kopieren im User- UND Systemteil läuft. Alles korrekt.
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.

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: No registered users and 10 guests