.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 2nd, 2004, 04:01 AM
vanishboy vanishboy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 5 vanishboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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'.

Reply With Quote
  #2  
Old April 15th, 2004, 01:09 PM
pmuk pmuk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: USA
Posts: 21 pmuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile uninstall vb.net project

Create a windows installer for your vb.net project. The windows installer creates .msi file. If you right click on the .msi file, you can see the install, repair, uninstall etc. The uninstall option will remove the application/product and all other files which are installed during application installation process and brings back the pc to original state.

Its working fine for me.

Hope this helps.

Rgds,
pmuk

Reply With Quote
  #3  
Old April 19th, 2004, 03:25 AM
vanishboy vanishboy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 5 vanishboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question uninstall problem

I really have to create an uninstall file or a shortcut to
the 'uninstall' part of the msi, if that's possible...

Like some prorgrams, where you can see in start menu:
- Run
- Uninstall
- ...

Can you create something like that? I've already tried to
create a shortcut to the msi file for deployment (in vb.net)
but that doesn't work, it can't find the msi file because it's
not created yet.

Reply With Quote
  #4  
Old May 4th, 2004, 09:27 AM
vanishboy vanishboy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 5 vanishboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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)


Reply With Quote
  #5  
Old June 2nd, 2005, 04:07 AM
nqpham nqpham is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 1 nqpham User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 22 sec
Reputation Power: 0
Dear Vanishboy,

Hi,
Thank alot for your post.
Your guide is very useful and very easy to use.
But in making uninstall, using uninstall.bat file is not rather good.
When I uninstall my program, the command prompt (cmd.exe) and and the
Uninstall Form are both show. That is not professional.
I want the command prompt is not show.
Could you help me?
Thanks alot for support!

Reply With Quote
  #6  
Old August 9th, 2007, 07:11 AM
krangaz krangaz is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 1 krangaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 6 sec
Reputation Power: 0
To avoid the cmd prompt, you can use a vbscript.

Just create a file called Uninstall.vbs in your installation directory.
In this file put:

Code:
Dim shell, systempath

set shell = WScript.CreateObject( "WScript.Shell" )

systempath = shell.ExpandEnvironmentStrings("%SystemRoot%")

shell.Run Chr(34) & systempath & "\system32\msiexec.exe" & Chr(34) & "  /x{464C5C1B-CE82-45AE-95BE-8D3B5CC4340E}"

WScript.Quit


Change the number between the {} tags to your application.
Make a shortcut to the in your setup project in vs.

Your done..

Reply With Quote
  #7  
Old February 26th, 2009, 11:30 AM
larak larak is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 1 larak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 41 sec
Reputation Power: 0
Exclamation hiding cmd prompt when uninstalling setup project

Hi,
I was searching about how to hide the cmd prompt when uninstalling the setup project and saw this post but I honestly didn't get what I should do exactly. Can someone please explain to me in C# code what to do? I appreciate any quick help. Thank you very much in advance.

Reply With Quote
  #8  
Old April 3rd, 2009, 09:57 AM
Sriram Sriram is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 2 Sriram User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 44 sec
Reputation Power: 0
Help me please

Hi there,
i read ur post can u say me how to find the product code please as soon as possible?

Reply With Quote
  #9  
Old April 3rd, 2009, 10:31 AM
Sriram Sriram is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 2 Sriram User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 44 sec
Reputation Power: 0
Uninstall info

Hi there,
I got the ptoduct key and did all u specified, but when the uninstall.bat executes it displays as error as "This action is valid only for the products that are currently installed"...please someone help me please please

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Create an uninstall?


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap