School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,125 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,058 people online right now. Registration is fast and FREE... Join Now!



Uninstaller

Page 1 of 1

Uninstaller Rate Topic: -----

#1 scalt  Icon User is offline

  • D.I.C Head
  • Icon
  • Group: Contributors
  • Posts: 214
  • Joined: 22-November 07


Dream Kudos: 25

Posted 11 February 2008 - 04:26 PM

Hi

Can anyone here give me some direction as to how to create an un-installer for my VB2005 program? I have created an installer by myself perfectly fine by choosing the 'Setup and Deployment' option when adding a new project (aka not ClickOnce *shudder*). I'm suspecting that this is probably very easy to do and might have something to do with the installer I created, but I can't for the life of me work it out.

Any/all help is appreciated
Was This Post Helpful? 0
  • +
  • -


#2 dubs07  Icon User is offline

  • D.I.C Head
  • PipPip
  • Group: Members
  • Posts: 107
  • Joined: 03-January 08


Dream Kudos: 0

Posted 11 February 2008 - 05:32 PM

i found this dont know if it will help but hope it does.

Quote

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)

Was This Post Helpful? 0
  • +
  • -

#3 scalt  Icon User is offline

  • D.I.C Head
  • Icon
  • Group: Contributors
  • Posts: 214
  • Joined: 22-November 07


Dream Kudos: 25

Posted 12 February 2008 - 04:19 PM

Thanks heaps for that. It would be good if I didn't have to manually create a batch file for every release but its working well so far.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month