Archive: Repair option in Add/Remove Programs


Repair option in Add/Remove Programs
Hi All,

I have searched the forums and followed examples from the wiki with no luck.

I am currently in the process of switching our installers from one Manufacturer to NSIS. One of the features that is used a lot is the option to Repair your installation simply by running the installer again. So for example when the user goes in to Add/Remove Programs and selects the program then selects the addition information there is an option in that dialog to repair the install.

I have set the registry settings and the path to the location of the extracted installer.

Any help in getting this working would be much appreciated.

Thanks

David


Component Manager should be able to do that.


Hi

Thanks for your reply but this is not quite what I am looking for.

If you go into the Control Panel and open 'Add/Remove Programs' you get a list of all programs installed on your machine. If you select an item you get an option on the left hand side to see support information. When that box appears there is an option to 'Repair' the product. All this genreally does is, is to run the installer in silent mode and to repair any broken or missing files.

I don't necessarily need an option in the installer to repair I just need a way of running the installer.

Thanks again for your help

David


Then all you are looking for is in the documentation:

http://nsis.sourceforge.net/Docs/AppendixD.html#D.2

ModifyPath is the string to set.


Hi kichik

I have set the ModifyPath and the NoRepair option to 0 and still the installer does not launch.

I have attached my script file, If you could have a look that would be much appreciated.

Thanks again for your help

David

I am using NSIS v2.31


I'd guess CopyFiles failed. Use a full path instead of just the installer's name. The working directory depends on the user and you can't trust it to be the installer's directory. The user might also rename the installer.

Use $EXEPATH instead.


Hi

I have changed that value now and double checked that the Installer has been copied to the location specified. I have attached a screen shot of what I am trying to achieve. Simply when I press the 'Repair' button I want to launch the installer.

If I change the NoModify to 0 and NoRepair to 1 I get the Change button appear and the installer loads as expected.


Hi sorry forgot attachment.


I don't understand from your last post whether you got it working or not.


Sorry if I was un clear, I have not managed to get this working using the 'Repair' button.


Seems like it's a MSI only feature. Only MSI installers show this button in the information dialog.


OK. This should realy be documented in the documentstion.

Thanks for all your help much appreciated.

David