This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to delete user-files in an uninstallation?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2008
04:03 AM
How to delete user-files in an uninstallation?
In a basic msi project, how to add support to delete user-files(typically stored in CSIDL_LOCAL_APPDATA)
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 24, 2008
08:53 AM
If you don't need to confirm with or notify the user, you can probably use the RemoveFile table.
Otherwise, you'll probably have to write a custom action of some sort.
Otherwise, you'll probably have to write a custom action of some sort.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2008
04:52 AM
thx, and how to use the RemoveFile table? can you give an example?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 25, 2008
05:27 AM
For Instance, you would require to delete a file named "test_file.txt", follow the steps below:
1. Go to Direct Editor -> RemoveFile Table.
2. Clik on the empty row to add a new entry
3. The first column 'FileKey' enter any unique value or leave it default(it generates a unique value)
4. In the 'Component_' column, choose the component which is associated with ur file.
PS : The file gets removed when this component is removed. If u have any doubts in choosing the component, choose the component which contains the main exe file.
5. In the 'FileName' column, give the file name you want to delete. If u required to delete multiple file, u can also use '*.txt' like that.
6. If u want to delete the file during uninstall set the value in 'InstallMode' columd to 2.
Hope this helps.
1. Go to Direct Editor -> RemoveFile Table.
2. Clik on the empty row to add a new entry
3. The first column 'FileKey' enter any unique value or leave it default(it generates a unique value)
4. In the 'Component_' column, choose the component which is associated with ur file.
PS : The file gets removed when this component is removed. If u have any doubts in choosing the component, choose the component which contains the main exe file.
5. In the 'FileName' column, give the file name you want to delete. If u required to delete multiple file, u can also use '*.txt' like that.
6. If u want to delete the file during uninstall set the value in 'InstallMode' columd to 2.
Hope this helps.
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)