benutzerspezifische Konfiguration per xml

Moderators: MVogt, moderators

Post Reply
konstantin
Posts: 5
Joined: 09. Feb 2011, 09:31
Location: Kassel
Contact:

benutzerspezifische Konfiguration per xml

Post by konstantin » 09. Feb 2011, 09:49

Hallo,
Ich würde gerne wissen wie man folgendes Scenario automatisiert lösen kann:
Ein Softwarepaket wird mit Empirum verteilt. Für den Benutzer wird eine XML Konfigurationsdatei erstellt sobald man das Programm ausführt.
Die Standard XML wird unter: "BenutzerProfile\User\Anwendungsdaten" abgelegt.
Ich habe diese auf unsere Bedürfnisse angepasst. Die Standard XML würde ich gerne gegen die konfigurierte XML für jeden Benutzer bei der Installation automatisiert austauschen (überschreiben) lassen.
Wie löst man soetwas am besten?

User avatar
thahn
Posts: 487
Joined: 03. Jan 2007, 09:03
Location: KR - NRW
Contact:

Re: benutzerspezifische Konfiguration per xml

Post by thahn » 09. Feb 2011, 10:26

Hallo,

eigene Section bauen z.B.

Code: Select all

#Set:Client, DONTDELETE

[Set:Client]

1:user.xml        %AppData%, CLIENT, 1234
so ungefähr

siehe auch dazu Thread -> http://www.matrix42.de/forum/viewtopic.php?f=84&t=9861

cYa
Thomas Hahn
Technical Account Manager

Matrix42 AG

Email: thomas.hahn[at]matrix42.com
http://www.matrix42.de
Skype: thahn42
ICQ: IO25IGO8

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of matrix42 AG.

konstantin
Posts: 5
Joined: 09. Feb 2011, 09:31
Location: Kassel
Contact:

Re: benutzerspezifische Konfiguration per xml

Post by konstantin » 09. Feb 2011, 20:48

danke für die Hilfe, jedoch bekomme ich die XML nur unter dem aktuellen Benutzer.
Melde ich mich mit einem anderen Konto, wird die Datei nicht rüberkopiert.
Gibt es eventuell konkrete Beispiele?

User avatar
zaubi
Posts: 37
Joined: 10. Jul 2006, 11:40
Location: Gelsenkirchen
Contact:

Re: benutzerspezifische Konfiguration per xml

Post by zaubi » 09. Feb 2011, 21:47

Hallo konstantin,

du könntest z. B. für jeden User eine eigene XML-Datei mit dem Format <benutzername>.xml (ohne spitze Klammern) ablegen und dann in der Setup.inf folgenden Code verwenden:

Code: Select all

#Set:Client, DONTDELETE

[Set:Client]

1:%UserName%.xml        %AppData%, CLIENT, 1234
Gruß Zaubi
Ich glaube an nichts, alles ist heilig - ich glaube an alles, nichts ist heilig (Tom Robbins)

konstantin
Posts: 5
Joined: 09. Feb 2011, 09:31
Location: Kassel
Contact:

Re: benutzerspezifische Konfiguration per xml

Post by konstantin » 10. Feb 2011, 09:56

Hallo zaubi,

dies habe ich bereits ausprobiert, leider ohne Erfolg.
Der Ordner wird nur unter dem User, mit dem die Istallation gestartet wird, erzeugt.
Natürlich habe ich es auch im Benutzermodus ausprobiert (/AW /S1)

so sieht es bei mir aus:

[Set:Client]
1:config.xml, %APPDATA%\Ordner\Unterordner\config.xml, CLIENT, 824

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

Re: benutzerspezifische Konfiguration per xml

Post by Hendrik_Ambrosius » 10. Feb 2011, 12:35

Kopieren Sie die config.xml im Maschinenteil mal vorher nach %APP% und hinterher erst weiter von dort nach %Appdata%.
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 “Software Management”

Who is online

Users browsing this forum: No registered users and 7 guests