Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to disable Modify/Repair...


2 replies to this topic

anand_g2

anand_g2
  • Members
  • 4 posts

Posted 23 April 2004 - 14:13

Hello,

How do I disable Modify and Repair option in "Add/Remove Application" page.

I am using DevStudio -9 and InstallScript project.


I tried setting "NoModify" and "NoRepair" registry value in the registry but it does not seem to work.

Any help will be highly appreciated.

regards,
Anand G




Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 23 April 2004 - 15:38

These only work for BasicMSI projects. You need to modify the MaintenanceType dialog in the dialog editor to remove these options.

Holger_G

Holger_G
  • Full Members
  • 155 posts

Posted 13 May 2004 - 09:24

Hi!

I assume you mean the button for Windows build-in "Add or Remove Programs", right?

Simply use this code as an example. That works perfect for me [I´ve put it at the end of OnFirstUIBefore()]:

if (SYSINFO.WINNT.bWin2000) | (SYSINFO.WINNT.bWinXP) then
szKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" + PRODUCT_GUID;
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegDBSetKeyValueEx(szKey,"NoModify",REGDB_NUMBER, "1" ,-1);
RegDBSetKeyValueEx(szKey,"NoRepair",REGDB_NUMBER, "1" ,-1);
endif;

You can also modify the UNINSTALL_STRING variable and then check it in OnMaintUIBefore() to directly display the uninstall dialog question instead of the maintenance welcome dialog.