Remove recovery settings screen from MSI installer

I created a standard MSI installer for the P&D of my application that uses the following components:

  • WCF service hosted as a Windows service.
  • The GUI application that communicates with this service.
  • Dll shell extension.

The installer works very well and without any problems. The problem occurs when the user tries to install the application again on top of the existing application using the MSI installer. It currently has a screen with two options, Repair and Delete. Both of these options do not work and corrupt the application, which is of great importance.

I want to skip this screen and show something like MessageBox, since the application is already installed. Since it is not necessary for me to provide the Repair option to the User. And, at a minimum, I should be able to hide or somehow not provide the possibility of recovery.

Any help or suggestions for me? So far I've tried so many things like using ORCA, add NotRepair property, etc. But none of them worked.

+5
source share
6 answers

Take a look at the Windows Installer Guide on MSDN for these two properties:

+5
source

The accepted answer leaves a few things for someone who has no installation experience.

, .MSI .NET install build. , Microsoft, - Orca. Orca .NET Framework SDK. , SDK, Orca , "Orca.exe" "Orca.msi".

Orca , . MSI Orca. "". Property. . node ARPNOREPAIR. , "". node ARPNOMODIFY, , .

+4

, , , , . Sumeet , "Repair" "Remove", .

, .

: , ARPNOMODIFY ARPNOREPAIR Add Remove Program, "Orca.exe".

: msi. , , , , msi.

: , , "" "".

, : http://us.generation-nt.com/there-way-disable-remove-repair-option-through-orca-project-properties-help-49010162.html. . .

  • msi Orca.exe.
  • "".
  • "ARPNOMODIFY" 1.
  • "ARPNOREPAIR" 1.
  • "MaintenanceForm_Action" Repair Remove.
  • "".
  • Dialog_ 'MaintenanceForm' Control BodyText.
  • "" : {\VSI_MS_Sans_Serif13.0_0_0}Select "Finish" to remove [ProductName]
  • Dialog_ 'MaintenanceForm' Control 'RepairRadioGroup'.
  • Control_Next CancelButton FinishButton.
  • Dialog_ 'MaintenanceForm' Control 'RepairRadioGroup'.

msi , . , , : Orca msi ?

+1

,

Dialog_ 'MaintenanceForm' Control 'RepairRadioGroup'.

2814.
, : RepairRadioGroup . s 0

UPDATE Control SET Attributes = 0 WHERE Control = 'RepairRadioGroup'

+1

setup.exe MSI EXE . Setup.exe. exe , , . , . , MSI , , " " . "" "/", , "CheGueVerra". .

0

, installshield ISM . Change Repair " ", Yes Installation Designer > Installation Information node > General Information node > Add or Remove Programs

  • Disable Change Button
  • Disable Repair Button

enter image description here

, MaintenanceWelcome .

  • , . " . ".
  • In a push-button behavior, Nextsimply add an event EndDialog. Set the execution condition to 1so that it always runs. Set ValuetoExit
  • Change the button text Nextto Finish.
  • If you want, disable or hide the button Cancel.

You are all set!

0
source

All Articles