create installer and uninstaller both for C# .net project
i have visual studio 2010
i have created a .net project C#.net which produces a simple DLL...Its on .net framework 3.5
Now, i created a setup project to install that DLL on users machine.
I can do a silent installation on my/users machien by running -
setup.exe -quiet
Now, I might have to make changes to my DLL and upgrade that DLL on users machines for many times...
I donot want to go to users machine and uninstall my dll using add-remove programs each time I upgrade my DLL...
How can i create an uninstaller for that DLL? So that i can run a command and it will do a silent uninstall of that DLL ? thansk a lot...
I tried setting - "RemovePreviousVersions" to true, but it does not re-install it....
So if I do this-
setup.exe -quiet -l mylogfile.txt
Log file - shows this message
MSI (s) (EC:24) [14:01:44:541]: Product: MyProduct-- Configuration failed.
MSI (s) (EC:24) [14:01:44:541]: Windows Installer reconfigured the product. Product Name: MyProduct. Product Version: 1.0.0. Product Language: 1033. Manufacturer: MyCompany. Reconfiguration success or error status: 1638.
Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
{A61D2D77-A974-46F5-9DB3-DE8358C1C4ED}
at999
ASKER
I tried changing version number in the setup-project did a silent upgrade/install
However, it did not update my actual DLL, it just updated the TLB file..
markmiddlemist
gi in to the assembly properties on your class library project and change the version number there - it will only overwrite files where it recognises the version in the instaler is newer.
You mentioned -
gi in to the assembly properties on your class library project and change the version number there - it will only overwrite files where it recognises the version in the instaler is newer.
Do i have to change the AssemblyInfo.cs in the project of mydll?
as below -
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
So if I do this-
setup.exe -quiet -l mylogfile.txt
Log file - shows this message
MSI (s) (EC:24) [14:01:44:541]: Product: MyProduct-- Configuration failed.
MSI (s) (EC:24) [14:01:44:541]: Windows Installer reconfigured the product. Product Name: MyProduct. Product Version: 1.0.0. Product Language: 1033. Manufacturer: MyCompany. Reconfiguration success or error status: 1638.
Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
{A61D2D77-A974-46F5-9DB3-D