Announcement

Collapse
No announcement yet.

uninstall action

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • uninstall action

    hey there,

    I need to make a folder.deletetree action in the uninstaller part that wil go to c:\users\[username]\appdata\locallow\[requestedfolder]
    How can I write it generically? every computer that will install my software has a different user name.

    Thanks!

  • #2
    to clarify I need to delete [requestedfolder] and all of its sub-folders and files from the system.
    Thanks!

    Comment


    • #3
      The FOLDERID_LocalAppDataLow folder does not have a CSIDL. You could write a small custom DLL to retrieve the folder path, or you can read the info using the GUID "{A520A1A4-1780-4FF6-BD18-167343C5AF16}" (although this isn't the recommended way):

      Code:
      SessionVar[COLOR="#FF0000"].[/COLOR]Set([COLOR="#800080"]"%LocalLowFolder%"[/COLOR][COLOR="#FF0000"],[/COLOR]
         Registry[COLOR="#FF0000"].[/COLOR]GetValue(HKEY_CURRENT_USER[COLOR="#FF0000"],[/COLOR] [COLOR="#800080"]"Software[COLOR="#800080"]\\[/COLOR]Microsoft[COLOR="#800080"]\\[/COLOR]Windows[COLOR="#800080"]\\[/COLOR]CurrentVersion[COLOR="#800080"]\\[/COLOR]Explorer[COLOR="#800080"]\\[/COLOR]Shell Folders"[/COLOR][COLOR="#FF0000"],[/COLOR] 
         [COLOR="#800080"]"{A520A1A4-1780-4FF6-BD18-167343C5AF16}"[/COLOR][COLOR="#FF0000"],[/COLOR] [COLOR="#0000FF"]true[/COLOR]))[COLOR="#FF0000"];[/COLOR]
      
      Dialog[COLOR="#FF0000"].[/COLOR]Message([COLOR="#800080"]"Information"[/COLOR][COLOR="#FF0000"],[/COLOR]
         SessionVar[COLOR="#FF0000"].[/COLOR]Expand([COLOR="#800080"]"The LocalLow folder for this user is[COLOR="#800080"]\r[/COLOR][COLOR="#800080"]\n[/COLOR]%LocalLowFolder%"[/COLOR])[COLOR="#FF0000"],[/COLOR] 
         MB_OK[COLOR="#FF0000"],[/COLOR] MB_ICONINFORMATION)[COLOR="#FF0000"];[/COLOR]
      Ulrich

      Comment

      Working...
      X