Skip to content
⌘ NSIS Forum Archive

Vista and Desktop EXE Deletion

5 posts

zenkick#

Vista and Desktop EXE Deletion

Under Vista, I'm attempting to perform a:

Delete "$DESKTOP\foo.exe"

But it appears that it doesn't work.

I have:

RequestExecutionLevel admin

set, and it doesn't matter if I change the context

SetShellVarContext all

which should default to the local user if there aren't perms.

I'm using the most recent 2.30 release.

Suggestions?
Anders#
use

MessageBox mb_ok "$DESKTOP\foo.exe"

and make sure the path is correct

which should default to the local user if there aren't perms.
Where did you read this? As far as I know, it only gives the user's path for older systems (From helpfile "The all users folder may not be supported on all OSes. If the all users folder is not found, the current user folder will be used.")
Wizou#
open a command box
and type "del " followed by the path displayed by the messagebox for $DESKTOP\foo.exe (enclosed in quotes)

what does it say ?


or maybe it's a shortcut... foo.exe.lnk ?