Add Uninstall key to registry using delphi

Imebatilisha Ilichapishwa Miaka 5 iliyopita Kulipwa wakati wa kujifungua
Imebatilisha

Need an a delphi expert to help me fixing a program that adds an uninstall key to windows registry.

The program worked before and now, when not working on windows 10.

Procedure CreateUnInstalleRegEntry (UnInstall_Key_Path:String;

DisplayName :String;

DisplayIcon :String;

UninstallString :String;

var RegRetCode :integer;

var RegErrorMessage :String);

var

Reg: TRegistry;

Key_Path :String; // Key path in HKEY_LOCAL_MACHINE

begin

RegRetCode := 0;

RegErrorMessage := '';

if (UnInstall_Key_Path = '')

then begin

RegRetCode := 1;

RegErrorMessage := 'Invalid Registry Key';

exit;

end;

Key_Path := '\Software\Microsoft\Windows\CurrentVersion\Uninstall\' + UnInstall_Key_Path;

Reg := [login to view URL];

[login to view URL] := KEY_ALL_ACCESS + ACCESS_32KEY + ACCESS_64KEY;

try

[login to view URL] := HKEY_LOCAL_MACHINE;

{True because we want to create it if it doesn’t exist}

if [login to view URL](Key_Path, True)

then begin

if (Trim(DisplayName) <> '') then

[login to view URL]('DisplayName',DisplayName);

// If DisplayIcon value is empty - just don't write/create string

if (Trim(DisplayIcon) <> '') then

[login to view URL]('DisplayIcon',DisplayIcon);

// If WriteString value is empty - just don't write/create string

if (Trim(UninstallString) <> '') then

[login to view URL]('UninstallString',UninstallString);

end;

[login to view URL];

[login to view URL];

except

RegRetCode := 99;

RegErrorMessage := 'UnKnown Error';

[login to view URL];

end;

end;

Kuprogramu ukitumia C# Uprogramu C++ Delphi Software Architecture Windows Desktop

Kitambulisho cha Mradi: #17117215

Kuhusu mradi

8 mapendekezo Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

8 wafanyakazi wanazabuni wastani wa $21/saa kwa kazi hii

vano101

Hello I am familiar with creating uninstall keys under Microsoft Windows And I have few years of experience with Delphi.

$24 USD / saa
(Maoni 1933)
8.0
exansoft

Hello I'm experienced Delphi developer and I'm interested with your project. Let's discuss it in detail over the chat. Regards, Alex.

$25 USD / saa
(Maoni 65)
6.8
Mahris

Hello, There are also programs marking Uninstall under HKCU, not HKLM, as in your procedure. But probably the problem is not in it. Obviously, your Windows 10 is 64 bit, never have seen 32 bit Windows 10. And your Zaidi

$24 USD / saa
(Maoni 37)
5.5
quickapp100

Hi we are a software development company from india in past 8 years me & my Team developed approx 10235 projects for global market , we try to satisfy clients needs . we developed lots of projects for several industr Zaidi

$16 USD / saa
(Maoni 17)
5.1
gwiazdka

Hi I've got a lot experience with Delphi and Windows 10, I can solve it. However is non-zero probability that is not code error, but windows configuration

$22 USD / saa
(Maoni 1)
0.5
MT4Expert321

Hi, I have understand your project very well I can do this I am Delphi Expert with 14+ years of experience & have completed a lot of projects .I can fix all issues & errors as well. My expert skills are C,C++,C# P Zaidi

$16 USD / saa
(Maoni 0)
0.0