How to change the icon in 'Add or Remove Programs'

后端 未结 6 1458
日久生厌
日久生厌 2020-12-30 03:09

\"enter

I\'m trying to set the icon in Add or Remove Programs to the same as my a

6条回答
  •  误落风尘
    2020-12-30 04:03

    Yes, you can do it by this code:

     string Install_Reg_Loc = @"Software\Microsoft\Windows\CurrentVersion\Uninstall";
     string displayIcon = @"C:\MorganTech\setup-icon.ico";
     RegistryKey hKey = (Registry.LocalMachine).OpenSubKey(Install_Reg_Loc, true);
     RegistryKey appKey = hKey.OpenSubKey(productName);
     appKey.SetValue("DisplayIcon", (object)displayicon, RegistryValueKind.String)
    

提交回复
热议问题