Add Uninstall key to registry using delphi

Cancelled Posted 5 years ago Paid on delivery
Cancelled

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;

C# Programming C++ Programming Delphi Software Architecture Windows Desktop

Project ID: #17117215

About the project

8 proposals Remote project Active 5 years ago

8 freelancers are bidding on average $21/hour for this job

vano101

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

$24 USD / hour
(1933 Reviews)
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 / hour
(65 Reviews)
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 More

$24 USD / hour
(37 Reviews)
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 More

$16 USD / hour
(17 Reviews)
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 / hour
(1 Review)
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 More

$16 USD / hour
(0 Reviews)
0.0