- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to Delete UsrClass.dat file
- 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
How to Delete UsrClass.dat file
I am working on Install shield Basic msi, i want to delete this file During installation, is their any possible ways to delete this file.
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
The RemoveFile table has been part of MSI for a long time now. It supports the WildCardFileName data type.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa371201(v=vs.85).aspx
Accessing this table in InstallShield versions before 2015, maybe 2014, you had to use the Direct Editor and build up the table oneself.
Now - in 2015 and newer you can go to Files and Folders, as one example, and in the right hand pane you can left click and choose "Add File Removal..."
Still not as easy as WiX with its RemoveFile element http://wixtoolset.org/documentation/manual/v3/xsd/wix/removefile.html
But, you can build a string using [System32] for the folder name and the hard coded file name.
I think Microsoft recommends NOT deleting USRCLASS.DAT since that is a user specific data file for profile settings. The old saying "Just because it is possible, does not mean it is a good idea" might apply in this case.
Chad