DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Location
    Belgium
    Posts
    3

    Question Create an uninstall?

    I've deployed a VB.NET Project. Setup files were created (exe, msi, ini, vdproj).

    But how can I create an uninstall file? At this moment I still have to remove via 'Software'.

  2. #2
    Join Date
    Apr 2004
    Location
    Belgium
    Posts
    3

    Talking problem solved :-)

    Deployment VB.NET project (with uninstall file)

    In Visual Studio.NET:

     File > Add Project > New Project > Setup & Deployment Project > Setup Project
    (Enter name and location)

     Add (right-click in Application Folder > Add > Project Output):
    • Primary Output

     If an error occurs about files that should be excluded > In Solution Explorer select your Setup project > Exclude those files (right-click > exclude)

     Build > Build ’name project’


    In Windows:

     Create an Uninstall.bat file containing:
    C:\WINDOWS\system32\MsiExec.exe /I{productcode}

    (Path depends of your Windows version, check where your system32 folder is located)

    (You’ll find the productcode in Visual Studio.NET > Tab Properties in the setup project you’ve just created)

     Open the setup project in Visual Studio.NET if you closed it
     Add (right-click in Application Folder):
    • Add > Project Output > File > Uninstall.bat
    • Create New Shortcut > Application Folder > Primary Output (enter a name)
    • Create New Shortcut > Application Folder > Uninstall.bat (enter a name)
    • Add > File > add .ico files you want to use for the shortcuts

     Shortcuts properties > ‘icon’ property (use the icons you’ve just added)
     Move the shortcuts to User’s Desktop/User’s Programs Menu (you can also create subfolders)
     Build > Rebuild ’name project’


    The setup is ready now. You can install via Setup.exe (default it’s located under the folder ‘Debug’, you can change it in Visual Studio.NET - right-click your setup project > properties > Output file name). The shortcuts will be added automatically in the coresponding folders (desktop/start menu).
    You can uninstall the program via Uninstall.bat (or via shortcut naar Uninstall.bat)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links