/build/static/layout/Breadcrumb_cap_w.png

script to delete start menu folder

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

Answers (4)

Posted by: bini2082 13 years ago
Senior Purple Belt
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.
Posted by: Lubi.ST 13 years ago
Senior Yellow Belt
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
Posted by: anonymous_9363 13 years ago
Red Belt
0
If this is in an MSI, why not use the RemoveFile table?
Posted by: terrysp 13 years ago
Yellow Belt
0
Thanks Lubi.ST

I will try what you posted too.. Hope this will work for me.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ