Archive: good style of uninstalling


good style of uninstalling
How it will be better:


CreateDirectory "$SMPROGRAMS\Alykel"
CreateShortCut "$SMPROGRAMS\Alykel\..."

and then

RMDir /r "$INSTDIR"
RMDir /r "$SMPROGRAMS\Alykel"

or :

Delete "$INSTDIR\.."
Delete "$INSTDIR\.."
RMDir "$INSTDIR"

SetShellVarContext all

Delete "$SMPROGRAMS\Alykel\.."
Delete "$SMPROGRAMS\Alykel\.."
RMDir "$SMPROGRAMS\Alykel"

Something says me that second example will be more correct ;-)

The second example is the best way to go about it. It's good practice because the user may decide to install to desktop or some sill folder and a recursive deletion would be disasterous.

-Stu


thx, i was think so!