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

.NET (Core and Framework)

 
GeneralRe: Hiding a class in managed assembly Pin
Ian Darling8-Jun-05 6:15
Ian Darling8-Jun-05 6:15 
GeneralRe: Hiding a class in managed assembly Pin
Member 16649159-Jun-05 3:19
Member 16649159-Jun-05 3:19 
GeneralCustom Dialogs for VS Installer Pin
lukemc7-Jun-05 16:23
lukemc7-Jun-05 16:23 
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 
You can force a reinstall over an existing installation by doing the following:

Make sure that all newer files have a higher version number than the existing files.

Run the msi with the following command line parameters:

msiexec /i [Fully qualified path to your new msi] REINSTALL=ALL REINSTALLMODE=vomus

You can modify the bootstrapper exe to run the install with the above command line.

There are a couple of limitations to this method:

This forces your new msi to run in reinstall mode, and overwrites all existing files where the version has changed. If older files exist that are no longer needed, this method does not account for removing them, and in fact you will still need to add the unneeded files to your new msi because they need to be present so that they are entered in the uninstall log. Otherwise if your user does a complete uninstall, old files not installed by your new msi will be left on the target machine. Ditto for all other resources like registry entries, etc.

If your new install needs to get user input from dialogs, you may run into problems.

An alternative to forcing a reinstall is to modify the bootstrapper to first run the existing msi in Unistall mode, then launch your new setup. You can get the parameters needed to run an uninstall from the registry.

Finally, Windows Installer does support "true" product upgrades, which are not the same as simply trying to force a reinstall over an existing product. But if your original setup was not correctly authored with an UpgradeCode, among other things, then this will not work. Describing how to author msi's to support future upgrades, and how to author the associated upgrade msi's is beyond the scope of anything I could answer on this forum.

Robert
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 
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 

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.