cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not applicable

How to keep database on uninstall

Hi,

I use installShield limited edition for Visual Studio.
On installation, I place a access database .mdb file into [LocalAppDataFolder]MyProgramName

I application work well, and I can modify data on my database.

If I use Windows uninstall, my database has been removed from my folder [LocalAppDataFolder]MyProgramName

What is the way to keep my database on uninstall process ?

Best regards
Eric
0 Kudos
(1) Reply
jlynch11
Level 6 Flexeran
Level 6 Flexeran

The Limited Edition of doesn't contain built-in functionality to mark a file/component permanent, however if you build it uncompressed (or just build an MSI) you can open the MSI directly in orca and update the component table manually. I believe the setting the Attributes column to 24 should make the file permanent. Here is a link to Microsoft's documentation on the Component table: https://msdn.microsoft.com/en-us/library/windows/desktop/aa368007(v=vs.85).aspx

The full version (Exp/Pro/Pre) do have this functionality.

I hope this helps.
0 Kudos