Click here to Skip to main content
16,006,440 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Custom Dialogs for VS Installer Pin
rwestgraham8-Jun-05 1:51
rwestgraham8-Jun-05 1:51 
GeneralInstaller problem when deploying application Pin
LiamD7-Jun-05 1:32
LiamD7-Jun-05 1:32 
GeneralRe: Installer problem when deploying application Pin
MoustafaS7-Jun-05 16:28
MoustafaS7-Jun-05 16:28 
GeneralRe: Installer problem when deploying application Pin
LiamD9-Jun-05 0:17
LiamD9-Jun-05 0:17 
GeneralRe: Installer problem when deploying application Pin
rwestgraham8-Jun-05 2:23
rwestgraham8-Jun-05 2:23 
GeneralRe: Installer problem when deploying application Pin
LiamD9-Jun-05 0:29
LiamD9-Jun-05 0:29 
GeneralRe: Installer problem when deploying application Pin
MoustafaS9-Jun-05 0:40
MoustafaS9-Jun-05 0:40 
GeneralRe: Installer problem when deploying application Pin
rwestgraham9-Jun-05 12:09
rwestgraham9-Jun-05 12:09 
OK, the typical installation process involves first running a program called Setup.exe, AKA the bootstrapper. The bootstrapper is a program written in C++ so that it has minimalk external dependencies and should run on any system that has Windows installed.

What the bootstrapper does is to check to see if the .NET Framework is installed. If not, it installs the framework so that the target machine is now ready to run your MSI setup package. Once the bootstrapper has prepared the target machine it launches your MSI.

The source code for the bootstrapper is available, so you can modify it to run additional actions before your MSI is launched. In this case that would be probably uninstalling the existing application if it exists.

To unistall the existing application and then install your new application, you would perform the following steps:

1) Search the registry to verify the app is already installed. MSI packages are identified by a GUID known as the ProductCode. You have to determine the ProductCode for your app. If the app is installed, there will be an entry in:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

Example. ProductCode is {FB6E8318-B7EA-4392-A7DD-D33295D158B7}. If the product is installed, you will find a registry entry at:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FB6E8318-B7EA-4392-A7DD-D33295D158B7}

2) If the app is installed, uninstall it by running the command line:

MsiExec.exe /qb- /X[Your ProductCode]

Example:

MsiExec.exe /qb- /X{FB6E8318-B7EA-4392-A7DD-D33295D158B7}

MsiExec will return a success code = 0 when the uninstall is complete.

3) Launch your new install after msiexec has returned a success code for the uninstall.

Now, you have a couple of options on how to proceed:

1) If you are comfortable programming in C++ you can modify the bootstrapper directly to perform the above sequence.

2) If you are not adept at C++ programming, you can get by with minimal modifications to the bootstrapper. Simply change it to run a custom exe file instead of the setup msi at the end of the bootstrapper sequence. Since the NET framework will be installed by the bootstrapper, you can create a custom exe as a NET application that checks the registry, launches the uninstall, and finally runs your new setup.

To get started, you need to download the bootstrapper sample project and figure out how to proceed from there. Information about the bootstrapping process, as well as the setup.exe source code can be obtained from:

http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/dotnetframedepguid.asp[^]

Robert
GeneralImage Button Pin
Serenena6-Jun-05 15:27
Serenena6-Jun-05 15:27 
GeneralPrinting address labels in .net Pin
Dave French6-Jun-05 10:34
Dave French6-Jun-05 10:34 
QuestionBug when using User Controls within containers ? Pin
MrBean6-Jun-05 3:51
MrBean6-Jun-05 3:51 
AnswerRe: Bug when using User Controls within containers ? Pin
MrBean12-Jun-05 21:38
MrBean12-Jun-05 21:38 
GeneralRe: Bug when using User Controls within containers ? Pin
MrBean20-Jun-05 21:53
MrBean20-Jun-05 21:53 
GeneralRe: Bug when using User Controls within containers ? Pin
MrBean10-Jul-05 21:22
MrBean10-Jul-05 21:22 
GeneralMenu Operation Pin
Sunil Virmani6-Jun-05 3:42
Sunil Virmani6-Jun-05 3:42 
GeneralFramework 2.0 Beta Pin
Paolopf5-Jun-05 22:19
Paolopf5-Jun-05 22:19 
GeneralRe: Framework 2.0 Beta Pin
S. Senthil Kumar6-Jun-05 0:45
S. Senthil Kumar6-Jun-05 0:45 
GeneralRe: Framework 2.0 Beta Pin
Paolopf6-Jun-05 2:06
Paolopf6-Jun-05 2:06 
GeneralRe: Framework 2.0 Beta Pin
MoustafaS6-Jun-05 2:46
MoustafaS6-Jun-05 2:46 
GeneralRe: Framework 2.0 Beta Pin
Paolopf6-Jun-05 20:00
Paolopf6-Jun-05 20:00 
GeneralFixed SEHException w/.NET EnableVisualStyles Pin
Matt Strum4-Jun-05 17:07
Matt Strum4-Jun-05 17:07 
Generaldoubt reg usage of 'this' Pin
manivannan.p3-Jun-05 23:54
manivannan.p3-Jun-05 23:54 
GeneralRe: doubt reg usage of 'this' Pin
Colin Angus Mackay4-Jun-05 0:21
Colin Angus Mackay4-Jun-05 0:21 
GeneralTHANKS Colin Pin
manivannan.p4-Jun-05 3:16
manivannan.p4-Jun-05 3:16 
GeneralExport to excel data from ultrawebgrid each row contain one worksheet Pin
sunilmskr3-Jun-05 19:20
sunilmskr3-Jun-05 19:20 

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.