I need a wise script to delete one folder from Start Menu/Programs/TEST It has to work under win7 and winXP 32bit.
maybe i just enter the path wrong :(
any help is welcome
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
You can use Delete file(s) option in wise script.
Give the full path name of the location and check include sub directories and Removed directory containing files option if you want to deleted the entire folder.
Answered 08/05/2011 by: bini2082
Senior Purple Belt

Please log in to comment
0

item: Get Environment Variable
Variable=ALLUSERS
Environment=ALLUSERSPROFILE
end
item: Remark
end
item: Set Variable
Variable=PRGFOLDER
Value=%Allusers%\Startmenü\Programme\Autodesk
end
item: Remark
end
item: Check if File/Dir Exists
Pathname=%PRGFOLDER%
Flags=00000100
end
item: Delete File
Pathname=%PRGFOLDER%\*.LNK
Flags=00001100
end
item: Delete File
Pathname=%PRGFOLDER%
Flags=00001100
end
item: End Block
end


this works , i was not sure which path variable would be the best for it
Answered 08/10/2011 by: Lubi.ST
Senior Yellow Belt

Please log in to comment
0
If this is in an MSI, why not use the RemoveFile table?
Answered 08/10/2011 by: VBScab
Red Belt

Please log in to comment
0
Thanks Lubi.ST

I will try what you posted too.. Hope this will work for me.
Answered 08/10/2011 by: terrysp
Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity