VB.Net Updating Application

Posted on 2006-04-26
Last Modified: 2010-04-23
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.
Question by:noobe1
    1 Comment
    LVL 6

    Accepted 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

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Article by: jpaulino
    XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String ( Literal, only instead of starting and ending with w…
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now