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

How to disable Modify/Repair...
Started by
anand_g2
, Apr 23 2004 14:13
2 replies to this topic
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.
Stefan Krüger
InstallSite.org twitter facebook
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.
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.