Seite 1 von 1

Files-Sektion: %CurrentProfileDir% nicht korrekt expandiert

Verfasst: 12 Feb 2014, 18:24
von embl-structures
Hallo,

dieser Code:

Code: Alles auswählen

Files_RemoveUserDesktopLinks /AllNTUserProfiles

[Files_RemoveUserDesktopLinks]
Delete -f "%CurrentProfileDir%\Desktop\Mendeley Desktop.lnk"
ergibt folgende Log-Eintraege:

Code: Alles auswählen

[5] [Feb 12 18:09:34:923]     Execution of Files_RemoveUserDesktopLinks
[6] [Feb 12 18:09:34:924]       Delete "C:\Windows\System32\config\systemprofile\Desktop\Mendeley Desktop.lnk"
[6] [Feb 12 18:09:34:924]         Search "C:\Windows\System32\config\systemprofile\Desktop\"
[6] [Feb 12 18:09:34:924]       Delete "C:\Windows\System32\config\systemprofile\Desktop\Mendeley Desktop.lnk"
[6] [Feb 12 18:09:34:924]         Search "C:\Windows\System32\config\systemprofile\Desktop\"
[6] [Feb 12 18:09:34:925]       Delete "C:\Windows\System32\config\systemprofile\Desktop\Mendeley Desktop.lnk"
[6] [Feb 12 18:09:34:925]         Search "C:\Windows\System32\config\systemprofile\Desktop\"
[6] [Feb 12 18:09:34:925]       Delete "C:\Windows\System32\config\systemprofile\Desktop\Mendeley Desktop.lnk"
[6] [Feb 12 18:09:34:925]         Search "C:\Windows\System32\config\systemprofile\Desktop\"
[6] [Feb 12 18:09:34:925]       Delete "C:\Windows\System32\config\systemprofile\Desktop\Mendeley Desktop.lnk"
[6] [Feb 12 18:09:34:925]         Search "C:\Windows\System32\config\systemprofile\Desktop\"
[6] [Feb 12 18:09:34:926]     Section ending since next line is starting with "["
Im Hinblick auf viewtopic.php?f=6&t=5670 habe ich es auch mit %currentprofiledir% statt %CurrentProfileDir% versucht. Das macht aber keinen Unterschied. Verwendete WInst-Version ist 4.11.3.3.

frank

Re: Files-Sektion: %CurrentProfileDir% nicht korrekt expandi

Verfasst: 13 Feb 2014, 08:40
von r.witzel
Bei mir klappt es mit "%UserProfileDir%".

Re: Files-Sektion: %CurrentProfileDir% nicht korrekt expandi

Verfasst: 13 Feb 2014, 10:11
von embl-structures
r.witzel hat geschrieben:Bei mir klappt es mit "%UserProfileDir%".
Bei mir auch. Aber %CurrentProfileDir% ist laut Handbuch eine Alternative zu %UserProfileDir% (und im Code-Kontext leichter zu lesen und zu verstehen).
frank

Re: Files-Sektion: %CurrentProfileDir% nicht korrekt expandi

Verfasst: 19 Mär 2014, 18:59
von d.oertel
Hi,

sollte ab opsi-winst 4.11.3.5 gelöst sein...

gruß
d.oertel

Re: Files-Sektion: %CurrentProfileDir% nicht korrekt expandi

Verfasst: 19 Mär 2014, 19:03
von embl-structures
d.oertel hat geschrieben:sollte ab opsi-winst 4.11.3.5 gelöst sein...
Danke

Re: Files-Sektion: %CurrentProfileDir% nicht korrekt expandiert

Verfasst: 15 Dez 2015, 10:22
von mirkt
Is this problem solved? I have this problem with newest opsi (4.0.6): winst 4.11.5.14..

%CurrentProfileDir% works with copy, but not with delete..