Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
QuestionCreating a 2 Dimension List<string> Pin
Douglas Kirk2-Jul-09 16:06
Douglas Kirk2-Jul-09 16:06 
AnswerRe: Creating a 2 Dimension List<string> Pin
_Maxxx_2-Jul-09 16:28
professional_Maxxx_2-Jul-09 16:28 
GeneralRe: Creating a 2 Dimension List<string> Pin
Douglas Kirk2-Jul-09 16:33
Douglas Kirk2-Jul-09 16:33 
GeneralRe: Creating a 2 Dimension List<string> Pin
Luc Pattyn2-Jul-09 16:43
sitebuilderLuc Pattyn2-Jul-09 16:43 
GeneralRe: Creating a 2 Dimension List<string> Pin
PIEBALDconsult2-Jul-09 17:27
mvePIEBALDconsult2-Jul-09 17:27 
GeneralRe: Creating a 2 Dimension List<string> Pin
Luc Pattyn3-Jul-09 4:30
sitebuilderLuc Pattyn3-Jul-09 4:30 
AnswerRe: Creating a 2 Dimension List<string> Pin
Luc Pattyn2-Jul-09 16:37
sitebuilderLuc Pattyn2-Jul-09 16:37 
QuestionCreating batch file to install/uninstall C# app Pin
steve_rm2-Jul-09 15:11
steve_rm2-Jul-09 15:11 
Hello,

I am using the following bat file to install my application on a user computer. However, the client want to be able uninstall the application if the application is installed, and then install the new version of the application.

However, I have 2 problems.

1) how can I detect if the application is installed or not?

2) If it is installed, how can I uninstall it?

The application is a C# 2005.

Many thanks for any advice,

@ECHO OFF
:: Copy the configuration file
copy config.xml "%AppData%\DataLinks.xml"

:: Search for the CONFIG file, if this doesn't exit then the user doesn't have the .Net framework 2.0
SET FileName=%windir%\Microsoft.NET\Framework\v2.0.50727\CONFIG
IF EXIST %FileName% GOTO INSTALL_DIALER
ECHO.You currently do not have the Microsoft(c) .NET Framework 2.0 installed.
ECHO.This is required by the setup program for CAT Dialer
ECHO.
ECHO.The Microsoft(c) .NET Framework 2.0 will now be installed on you system.
ECHO.After completion setup will continue to install CAT Dialer on your system.
ECHO.
:: Install the .Net framework and then run setup to install the CAT Dialerr 
PAUSE
ECHO Installing... this could take serveral minutes...Please wait....
START /WAIT NetFx20SP2_x86.exe
:: If the user cancels the installation of the framework exit batch file
IF errorlevel 1 GOTO EOF
Start CATSoftphone.exe
ECHO ON
EXIT

:: .Net framework has been skipped contine to install the dialer.
:INSTALL_DIALER
ECHO *** Skiped Dotnet Framework 2.0.50727 ***
ECHO Installing... Please wait...
START CATSoftphone.exe
ECHO ON
EXIT

AnswerRe: Creating batch file to install/uninstall C# app Pin
Arindam Sinha2-Jul-09 23:54
Arindam Sinha2-Jul-09 23:54 
QuestionIf (null == something) or if (something == null) Pin
_Maxxx_2-Jul-09 13:38
professional_Maxxx_2-Jul-09 13:38 
AnswerRe: If (null == something) or if (something == null) [modified] PinPopular
Luc Pattyn2-Jul-09 13:52
sitebuilderLuc Pattyn2-Jul-09 13:52 
AnswerRe: If (null == something) or if (something == null) Pin
Dave Doknjas2-Jul-09 14:15
Dave Doknjas2-Jul-09 14:15 
AnswerRe: If (null == something) or if (something == null) Pin
Thomas Weller2-Jul-09 14:18
Thomas Weller2-Jul-09 14:18 
AnswerRe: If (null == something) or if (something == null) Pin
PIEBALDconsult2-Jul-09 15:11
mvePIEBALDconsult2-Jul-09 15:11 
AnswerRe: If (null == something) or if (something == null) Pin
_Maxxx_2-Jul-09 18:03
professional_Maxxx_2-Jul-09 18:03 
GeneralRe: If (null == something) or if (something == null) Pin
Moim Hossain2-Jul-09 22:08
Moim Hossain2-Jul-09 22:08 
GeneralRe: If (null == something) or if (something == null) Pin
moon_stick3-Jul-09 1:03
moon_stick3-Jul-09 1:03 
GeneralRe: If (null == something) or if (something == null) Pin
PIEBALDconsult3-Jul-09 8:27
mvePIEBALDconsult3-Jul-09 8:27 
AnswerRe: If (null == something) or if (something == null) Pin
btough2-Jul-09 22:08
btough2-Jul-09 22:08 
QuestionDrawing a smooth line graph Pin
Rsesky0002-Jul-09 12:44
Rsesky0002-Jul-09 12:44 
AnswerRe: Drawing a smooth line graph Pin
Luc Pattyn2-Jul-09 12:58
sitebuilderLuc Pattyn2-Jul-09 12:58 
GeneralRe: Drawing a smooth line graph Pin
Rsesky0002-Jul-09 13:49
Rsesky0002-Jul-09 13:49 
GeneralRe: Drawing a smooth line graph [modified] Pin
Luc Pattyn2-Jul-09 13:54
sitebuilderLuc Pattyn2-Jul-09 13:54 
GeneralRe: Drawing a smooth line graph Pin
Rsesky0002-Jul-09 14:27
Rsesky0002-Jul-09 14:27 
QuestionBitmap Pixels in Bulk Pin
hpydir2-Jul-09 11:37
hpydir2-Jul-09 11:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.