Datei pro Benutzer in AppData ablegen

Post Reply
9Made
Posts: 39
Joined: 19. Sep 2022, 08:24
Contact:

Datei pro Benutzer in AppData ablegen

Post by 9Made » 15. Mar 2024, 18:31

Hallo,

kann jemand einen Blick in mein Paket werfen, um zu sehen, warum der Ordner in AppData nicht erstellt wird und die Datei dort nicht abgelegt wird.

Code: Select all

Command line options    = /S2 /AW

[Product]
#Set:Product, DONTDELETE
#Product

[Set:Product]
Copy "%SRC%\Source\Datei.xml" "%APP%\Datei.xml"

;~~~~~~~~~~~~~~~~~ Diff - Tuning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Product]
#Set:ProductClient, CLIENT DONTDELETE
#Set:ProductClient_Uninstall, CLIENT DELETE

[Set:ProductClient]
MD "%AppData%\Ordner"
Copy "%APP%\Datei.xml" "%AppData%\Ordner\Datei.xml"

[Set:ProductClient_Uninstall]
-Deltree "%AppData%\Ordner\"


User avatar
r.wiegel
Posts: 896
Joined: 05. Feb 2010, 13:45
Location: Regensburg
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by r.wiegel » 18. Mar 2024, 09:04

Hallo,

die Setup.inf enthält zwei mal [Product]
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

9Made
Posts: 39
Joined: 19. Sep 2022, 08:24
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by 9Made » 18. Mar 2024, 10:11

Das Paket wurde mit dem Package neo42 erstellt.

Das eine heißt [Set:Product] und das andere [Product].

Ist das der Grund, warum es nicht funktioniert?

User avatar
r.wiegel
Posts: 896
Joined: 05. Feb 2010, 13:45
Location: Regensburg
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by r.wiegel » 18. Mar 2024, 10:51

Ich meinte die beiden Abschnitte:
[Product]
#Set:Product, DONTDELETE
#Product

[Set:Product]
Copy "%SRC%\Source\Datei.xml" "%APP%\Datei.xml"

;~~~~~~~~~~~~~~~~~ Diff - Tuning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Product]
#Set:ProductClient, CLIENT DONTDELETE
#Set:ProductClient_Uninstall, CLIENT DELETE

wird hier der Aufruf nicht "rekursiv"?:
[Product]
#Set:Product, DONTDELETE
#Product
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

9Made
Posts: 39
Joined: 19. Sep 2022, 08:24
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by 9Made » 18. Mar 2024, 14:18

Ich habe das jetzt anders versucht, aber es funktioniert immer noch nicht:

Code: Select all

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

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

[Application]
ProductName=KeePass for Pleasant Password Server
DeveloperName=Pleasant Solutions
Version=8.1.4
Revision=0
;$$$neoDesign1
SetupName=%Packagename% %SetupWizard%
Text1="%Packagename%", Arial, 32, , 000000, 25#, 25#, LEFT BOLD
BackgroundColor=ffa0a0,ffffff
CopyDialogRect=25#, -25#, 0, 0, NORMAL
Logo=Logo.bmp, -25#, -25#, 0, 0, FFFFFF, TRANSPARENT
UninstallDisplayIcon=%APP%\%SetupInfDir%\Setup.ico,0
;$$$neoDesign2
;$$$neoRegistry1
UserKeyName=neoPackages\%DeveloperName%\%ProductName%
MachineKeyName=neoPackages\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=neoPackage %DeveloperName% %ProductName% %Version%
UninstallDisplayName=neoPackage %DeveloperName% %ProductName% %Version%
;$$$neoRegistry2
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%APP%\%SetupInfDir%\Setup.inf"
ReinstallMode=0
SrcDir=..
ApplicationDir=%ProgramFilesDir%\neoPackages\%DeveloperName%\%ProductName%\%Version%
SetupInfDir=neoInstall
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=1
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=1
EndMessage=%EndMessageDesc%
UninstallOptions=NOREMOVE NOREPAIR NOMODIFY

[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation fuer:
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
LANG=DEU
LANGID=1031
LANGTEXT=Deutsch

[SysStrings:09]
Users=Users
LANG=ENU
LANGID=1033
LANGTEXT=English

[Environment]
;Program close request timeout
ASKTIMEOUT=600
;Continuetype: CONTINUE or ABORT
CONTINUETYPE=ABORT
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%

Packagename=%DeveloperName% %ProductName% %Version%
DisplayVersion=8.1.4

Uninstallkey={DAAAFD8D-D4C4-4840-A33F-45D1CFC4E33A}

InstallLocation=%SRC%\neoSource

DateDD=left("%sysdate%",2)
DateMM=mid("%sysdate%",3,2)
DateYY=right("%sysdate%",4)
TimeHH=left("%LongSysTime%",2)
TimeMM=mid("%LongSysTime%",3,2)
TimeSS=right("%LongSysTime%",2)
InstLogFile=%APP%\Install.%DateYY%-%DateMM%-%DateDD%_%TimeHH%-%TimeMM%-%TimeSS%.log
UninstLogFile=%APP%\Uninstall.%DateYY%-%DateMM%-%DateDD%_%TimeHH%-%TimeMM%-%TimeSS%.log

RegUninstallKey=HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,UninstallString
DetectedDisplayVersion=%%HKLM,SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%,DisplayVersion%%

InstPara="%SRC%\neoSource\Pleasant KeePass Client.exe" /passive /norestart /log "%InstLogFile%"
UninstProg="%SRC%\neoSource\Pleasant KeePass Client.exe"
UninstPara=%UninstProg% /uninstall /passive /norestart /log "%UninstLogFile%"

[Encryption]

[Processes]
APP1=KeePass.exe, KeePass, KILLPROCESS %CONTINUETYPE%

[Disks]
1=%Disk1%

[Options]
Installer  = %InstallerName%, COPYALWAYS, Installer,  "%InstallerDesc%"
neoProduct = %ProductName%,   COPYALWAYS, neoProduct, "%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, OPTIONAL NOSIZEWARNING SETUP ALWAYS WINDOWS64,      0
1:..\..\..\..\User\Setup64.exe,        %CommonSetupDir%\Setup.exe, OPTIONAL ALWAYS NOSIZEWARNING SETUP WINDOWS64,      0
1:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                             0
1:%SetupInfDir%\Setup.ico,                             , NORMAL,                                             0

[AppNotExistMsg]
-Exit The application is not present and the package is only unregistered.
-SetReboot 2
-ErrorLogMsg The application is not present. Uninstallation is not executed. Only setup.inf is deleted and package is unregistered. Exit!

[AppNotExist]
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "AppNotExistMsg" EndIf

[AppExistMsg]
#Product
ErrorLogMsg Application is already present. Installation is not executed. Only setup.inf is copied and package is registered. Exit!
SetReboot 2
Exit Application is already present and the package is only registered.

[AppExist]
ReplaceEnv DetectedDisplayVersion
If %DetectedDisplayVersion% >= %DisplayVersion% & DoesRegKeyExist ("HKLM,Software\%MachineKeyName%\Setup,ProductName") == "0" Then "AppExistMsg" EndIf

[Set:CheckPreRequirements]

[neoProduct]
#AppExist, MACHINE DONTDELETE
#CopyFiles, MACHINE DONTDELETE
#Set:CheckPreRequirements, DONTDELETE
AskKillProcesses %ASKTIMEOUT%, APP1
#Set:neoProduct, DONTDELETE
#Set:neoUninstall, DELETE
#ClientConfiguration, CLIENT DONTDELETE
#Product
-AskKillProcesses %ASKTIMEOUT%, APP1
#AppNotExist, MACHINE DELETE

[CopyFiles]
AddMeter -1
Copy "%SRC%\neoSource\PasswordServerClientConfiguration.xml" "%APP%\neoSource\PasswordServerClientConfiguration.xml"

[Set:neoProduct]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "neoReinstall" Else "neoInstall" EndIf

[neoReinstall]
AddMeter -1
Call %UninstPara%
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:neoUninstallError" EndIf
Call %InstPara%
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "Set:neoInstallError" EndIf

[neoInstall]
AddMeter -1
Call %InstPara%
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "Set:neoInstallError" EndIf

[Set:neoUninstall]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:neoUninstallError" EndIf
-Sleep 5000
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
-Call %UninstPara%
-AddMeter -1

[ClientConfiguration]
MD "%AppData%\PleasantKeePass"
Copy "%APP%\neoSource\PasswordServerClientConfiguration.xml" "%AppData%\PleasantKeePass\PasswordServerClientConfiguration.xml"

[neoRebootRequired]
SetReboot 1
-SetReboot 1

[Set:neoInstallError]
Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
ErrorLogMsg %ErrorOutput%
Abort %ErrorOutput%

[Set:neoUninstallError]
Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
ErrorLogMsg %ErrorOutput%
Abort %ErrorOutput%
-Abort %ErrorOutput%
-ErrorLogMsg %ErrorOutput%
-Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%

;~~~~~~~~~~~~~~~~~ Diff - Tuning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Product]
#Set:Product
;#Set:ProductClient, CLIENT DONTDELETE
#Reg:Product
#Ini:Product
#Security:Product
#Shell:Product
;#Set:ProductClient_Uninstall, CLIENT DELETE

[Set:Product]
Set DESKTOPSHORTCUT=%%%SRC%\%Setupinfdir%\Setup.cfg,Options,DESKTOPSHORTCUT%%
ReplaceEnv DESKTOPSHORTCUT
If "%DESKTOPSHORTCUT%" != "1" Then "Set:Desktopshortcut0" Else "Set:Desktopshortcut1" EndIf
-Del "%CommonDesktop%\KeePass for Pleasant Password Server.lnk"

[Set:ProductClient]
MD "%AppData%\PleasantKeePass"
Copy "%APP%\neoSource\PasswordServerClientConfiguration.xml" "%AppData%\PleasantKeePass\PasswordServerClientConfiguration.xml"

[Set:ProductClient_Uninstall]
-Deltree "%AppData%\PleasantKeePass\"

[Set:Desktopshortcut0]
Del "%CommonDesktop%\KeePass for Pleasant Password Server.lnk"

[Set:Desktopshortcut1]
Copy "%CommonPrograms%\KeePass for Pleasant Password Server\KeePass for Pleasant Password Server.lnk" "%CommonDesktop%\KeePass for Pleasant Password Server.lnk"

[Reg:Product]
HKLM,"Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%","SystemComponent",0x00010001,1

[Ini:Product]

[Security:Product]

[Shell:Product]
Die Datei ist im Ordner %APP%\neoSource\ zu finden, wird aber nicht in AppData verschoben.

munzur
Posts: 262
Joined: 23. Jun 2020, 19:26
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by munzur » 18. Mar 2024, 14:31

Deine Client Sektion ist auskommentiert..?

9Made
Posts: 39
Joined: 19. Sep 2022, 08:24
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by 9Made » 18. Mar 2024, 14:37

Ich habe den unteren Abschnitt auskommentiert, weil er nicht funktioniert hat.

Ich habe das Folgende oben hinzugefügt:

#CopyFiles, MACHINE DONTDELETE

#ClientConfiguration, CLIENT DONTDELETE

Der Ordner wird jedoch nicht unter ClientConfiguration erstellt und die Datei wird logischerweise auch nicht dorthin verschoben.

9Made
Posts: 39
Joined: 19. Sep 2022, 08:24
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by 9Made » 18. Mar 2024, 15:05

Beide Methoden funktionieren nicht.

Methode 1:

Code: Select all

[Set:CheckPreRequirements]

[neoProduct]
#AppExist, MACHINE DONTDELETE
#CopyFiles, MACHINE DONTDELETE
#Set:CheckPreRequirements, DONTDELETE
AskKillProcesses %ASKTIMEOUT%, APP1
#Set:neoProduct, DONTDELETE
#Set:neoUninstall, DELETE
#ClientConfiguration, CLIENT DONTDELETE
#Product
-AskKillProcesses %ASKTIMEOUT%, APP1
#AppNotExist, MACHINE DELETE

[CopyFiles]
AddMeter -1
Copy "%SRC%\neoSource\PasswordServerClientConfiguration.xml" "%APP%\neoSource\PasswordServerClientConfiguration.xml"

[Set:neoProduct]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "neoReinstall" Else "neoInstall" EndIf

[neoReinstall]
AddMeter -1
Call %UninstPara%
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:neoUninstallError" EndIf
Call %InstPara%
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "Set:neoInstallError" EndIf

[neoInstall]
AddMeter -1
Call %InstPara%
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "Set:neoInstallError" EndIf

[Set:neoUninstall]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:neoUninstallError" EndIf
-Sleep 5000
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
-Call %UninstPara%
-AddMeter -1

[ClientConfiguration]
MD "%AppData%\PleasantKeePass"
Copy "%APP%\neoSource\PasswordServerClientConfiguration.xml" "%AppData%\PleasantKeePass\PasswordServerClientConfiguration.xml"

[neoRebootRequired]
SetReboot 1
-SetReboot 1

[Set:neoInstallError]
Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
ErrorLogMsg %ErrorOutput%
Abort %ErrorOutput%

[Set:neoUninstallError]
Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
ErrorLogMsg %ErrorOutput%
Abort %ErrorOutput%
-Abort %ErrorOutput%
-ErrorLogMsg %ErrorOutput%
-Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%

;~~~~~~~~~~~~~~~~~ Diff - Tuning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Product]
#Set:Product
#Reg:Product
#Ini:Product
#Security:Product
#Shell:Product

[Set:Product]
Set DESKTOPSHORTCUT=%%%SRC%\%Setupinfdir%\Setup.cfg,Options,DESKTOPSHORTCUT%%
ReplaceEnv DESKTOPSHORTCUT
If "%DESKTOPSHORTCUT%" != "1" Then "Set:Desktopshortcut0" Else "Set:Desktopshortcut1" EndIf
-Del "%CommonDesktop%\KeePass for Pleasant Password Server.lnk"

[Set:Desktopshortcut0]
Del "%CommonDesktop%\KeePass for Pleasant Password Server.lnk"

[Set:Desktopshortcut1]
Copy "%CommonPrograms%\KeePass for Pleasant Password Server\KeePass for Pleasant Password Server.lnk" "%CommonDesktop%\KeePass for Pleasant Password Server.lnk"

[Reg:Product]
HKLM,"Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%","SystemComponent",0x00010001,1

[Ini:Product]

[Security:Product]

[Shell:Product]

Methode 2:

Code: Select all

[Set:CheckPreRequirements]

[neoProduct]
#AppExist, MACHINE DONTDELETE
#CopyFiles, MACHINE DONTDELETE
#Set:CheckPreRequirements, DONTDELETE
AskKillProcesses %ASKTIMEOUT%, APP1
#Set:neoProduct, DONTDELETE
#Set:neoUninstall, DELETE
#Product
-AskKillProcesses %ASKTIMEOUT%, APP1
#AppNotExist, MACHINE DELETE

[CopyFiles]
AddMeter -1
Copy "%SRC%\neoSource\PasswordServerClientConfiguration.xml" "%APP%\neoSource\PasswordServerClientConfiguration.xml"

[Set:neoProduct]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "neoReinstall" Else "neoInstall" EndIf

[neoReinstall]
AddMeter -1
Call %UninstPara%
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:neoUninstallError" EndIf
Call %InstPara%
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "Set:neoInstallError" EndIf

[neoInstall]
AddMeter -1
Call %InstPara%
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
Sleep 5000
If DoesRegKeyExist ("%RegUninstallKey%") == "0" Then "Set:neoInstallError" EndIf

[Set:neoUninstall]
If DoesRegKeyExist ("%RegUninstallKey%") == "1" Then "Set:neoUninstallError" EndIf
-Sleep 5000
If "%ErrorLevel%" == "3010" | "%ErrorLevel%" == "1641" Then "neoRebootRequired" EndIf
-Call %UninstPara%
-AddMeter -1

[neoRebootRequired]
SetReboot 1
-SetReboot 1

[Set:neoInstallError]
Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
ErrorLogMsg %ErrorOutput%
Abort %ErrorOutput%

[Set:neoUninstallError]
Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%
ErrorLogMsg %ErrorOutput%
Abort %ErrorOutput%
-Abort %ErrorOutput%
-ErrorLogMsg %ErrorOutput%
-Set ErrorOutput=%ErrorLogMessage% ErrorLevel: %ErrorLevel%

;~~~~~~~~~~~~~~~~~ Diff - Tuning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Product]
#Set:Product
#Set:ProductClient, CLIENT DONTDELETE
#Reg:Product
#Ini:Product
#Security:Product
#Shell:Product
#Set:ProductClient_Uninstall, CLIENT DELETE

[Set:Product]
Set DESKTOPSHORTCUT=%%%SRC%\%Setupinfdir%\Setup.cfg,Options,DESKTOPSHORTCUT%%
ReplaceEnv DESKTOPSHORTCUT
If "%DESKTOPSHORTCUT%" != "1" Then "Set:Desktopshortcut0" Else "Set:Desktopshortcut1" EndIf
-Del "%CommonDesktop%\KeePass for Pleasant Password Server.lnk"

[Set:ProductClient]
MD "%AppData%\PleasantKeePass"
Copy "%APP%\neoSource\PasswordServerClientConfiguration.xml" "%AppData%\PleasantKeePass\PasswordServerClientConfiguration.xml"

[Set:ProductClient_Uninstall]
-Deltree "%AppData%\PleasantKeePass\"

[Set:Desktopshortcut0]
Del "%CommonDesktop%\KeePass for Pleasant Password Server.lnk"

[Set:Desktopshortcut1]
Copy "%CommonPrograms%\KeePass for Pleasant Password Server\KeePass for Pleasant Password Server.lnk" "%CommonDesktop%\KeePass for Pleasant Password Server.lnk"

[Reg:Product]
HKLM,"Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstallkey%","SystemComponent",0x00010001,1

[Ini:Product]

[Security:Product]

[Shell:Product]

munzur
Posts: 262
Joined: 23. Jun 2020, 19:26
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by munzur » 18. Mar 2024, 15:41

Probiere es doch mal so:
viewtopic.php?f=77&t=14415

User avatar
r.wiegel
Posts: 896
Joined: 05. Feb 2010, 13:45
Location: Regensburg
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by r.wiegel » 18. Mar 2024, 15:45

Für mich gibt es zwei Varianten:
1. man kopiert eine Datei erst von %SRC% nach %App% im Maschinenteil und danach von %App% nach %Appdata% im Userteil.
Im Script gibt es alles dafür:

Code: Select all

[neoProduct]
..
#CopyFiles, MACHINE DONTDELETE
..
#ClientConfiguration, CLIENT DONTDELETE
...
[CopyFiles]
AddMeter -1
Copy "%SRC%\neoSource\PasswordServerClientConfiguration.xml" "%APP%\neoSource\PasswordServerClientConfiguration.xml"
..
[ClientConfiguration]
MD "%AppData%\PleasantKeePass"
Copy "%APP%\neoSource\PasswordServerClientConfiguration.xml" "%AppData%\PleasantKeePass\PasswordServerClientConfiguration.xml"
...
2. Unter dem Pfad Pleasant Solutions\KeePass for Pleasant Password Server\8.1.4 die Struktur um weitere Ordner erweitern und die Konfigdatei ablegen:
Pleasant Solutions\KeePass for Pleasant Password Server\8.1.4\AppData\KeePass\PasswordServerClientConfiguration.xml

Eine Zeile zum Kopieren:

Code: Select all

[Set:Product]
1:AppData\KeePass\PasswordServerClientConfiguration.xml,   %AppData%,       CLIENT,           0
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

9Made
Posts: 39
Joined: 19. Sep 2022, 08:24
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by 9Made » 18. Mar 2024, 16:21

munzur wrote: 18. Mar 2024, 15:41 Probiere es doch mal so:
viewtopic.php?f=77&t=14415
hat bei mir nicht funktioniert,

9Made
Posts: 39
Joined: 19. Sep 2022, 08:24
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by 9Made » 18. Mar 2024, 16:23

r.wiegel wrote: 18. Mar 2024, 15:45 Für mich gibt es zwei Varianten:
1. man kopiert eine Datei erst von %SRC% nach %App% im Maschinenteil und danach von %App% nach %Appdata% im Userteil.
Im Script gibt es alles dafür:

Code: Select all

[neoProduct]
..
#CopyFiles, MACHINE DONTDELETE
..
#ClientConfiguration, CLIENT DONTDELETE
...
[CopyFiles]
AddMeter -1
Copy "%SRC%\neoSource\PasswordServerClientConfiguration.xml" "%APP%\neoSource\PasswordServerClientConfiguration.xml"
..
[ClientConfiguration]
MD "%AppData%\PleasantKeePass"
Copy "%APP%\neoSource\PasswordServerClientConfiguration.xml" "%AppData%\PleasantKeePass\PasswordServerClientConfiguration.xml"
...
2. Unter dem Pfad Pleasant Solutions\KeePass for Pleasant Password Server\8.1.4 die Struktur um weitere Ordner erweitern und die Konfigdatei ablegen:
Pleasant Solutions\KeePass for Pleasant Password Server\8.1.4\AppData\KeePass\PasswordServerClientConfiguration.xml

Eine Zeile zum Kopieren:

Code: Select all

[Set:Product]
1:AppData\KeePass\PasswordServerClientConfiguration.xml,   %AppData%,       CLIENT,           0
Leider funktioniert es nicht. Wenn man es im Paketeditor mit /C ausführt, werden der Ordner und die Datei erstellt. Aber wenn es als Agent verteilt wird, funktioniert es nicht.

Die Datei kann unter dem Pfad gefunden werden:

Code: Select all

C:\Program Files\neoPackages\Pleasant Solutions\KeePass for Pleasant Password Server\8.1.4\neoSource
Es fehlt immer noch unter AppData.

9Made
Posts: 39
Joined: 19. Sep 2022, 08:24
Contact:

Re: Datei pro Benutzer in AppData ablegen

Post by 9Made » 18. Mar 2024, 17:01

Das Problem war, dass der Benutzerteil nach dem Import des Pakets kam und daher /AW im Befehl (Management Console) fehlte.

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: No registered users and 1 guest