Maartenmostert
14th September 2008 18:03 UTC
deleting files in subdirectories
Hi Everybody,
I have some question about removing files.
The following works fine.
Delete "$INSTDIR\update.cfgx"
The next to a file in a subdirectory and a file in the startmenu won't be removed ?
Delete "$INSTDIR\messages\fr\mainmessages.lbl"
Delete "$SMPROGRAMS\StakePoint\StakePoint.lnk"
Thanks in adavance.
Maarten,
Anders
14th September 2008 20:55 UTC
you probably got the path wrong, doublecheck with MessageBox
pbingel
19th September 2008 20:39 UTC
For the .lnk one, $SMSPROGRAMS by default refers to the current user. However alot of programs create links for "All Users." If the lnk is in "All Users" use
SetShellVarContext all
Delete "$SMPROGRAMS\StakePoint\StakePoint.lnk"