Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

VB.Net Updating Application

I have an application that uses a Microsoft Access db file. I have problem figuring out how to do the following:
1) When installing the application, I want the application to check if the db file exists. If it doesnot, install it. If if does, skip that file.
2) When uninstalling the application, I want everything removed except the db file.
1 Solution
In your setup project go to the Launch Conditions Editor
Create a new launch condition 'File Search'
File in the properties that you require, such as where to search and so on.
In the properties filed called Property enter the following:-


Go to the File System Editor of the Setup Project, select your database file.
In the properties window, find the field called 'Condition' (should be at the top) and enter:-


Now find the field called 'Permanent' and set it to true - this prevents the file from being uninstalled.

With this, your application should now search for the database file, if it is found the file won't be installed, if it isn't the file should be installed. the file won't be uninstalled.

Hope this helps.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now