Archive: I can not see Uninstall in WindowsSystem/Software under WinXP


I can not see Uninstall in WindowsSystem/Software under WinXP
Hello,

i can not see my Uninstall entry in WinXP Software?
In other WinOS it is right.

Why?


Hi :)

Which registry entries do you create? Could you attach the script or give more details?

evilO/Olive


Hello,

thanks your your post.

I have it attached.

Whats wrong?


InstallDirRegKey checks for existing registry entries. to write a registry-entry use WriteRegStr, to read it use ReadRegStr.


The real effect of InstallDirRegKey is that it checks the value of the specific registry key and returns it to $INSTDIR.

Now about the first question from Biarchiv: you need to create the key on HKCU (you're creating now on HKLM).


I've got the same problem (except I didn't test with other OSes than XP).

Creating the key under HKLM or HKCU does the same result, the key is not created and so the values.

I've used the example provided in the NSIS archive.

Any idea to check ??

Thanks.


The following two lines from your NSI script should be just fine.

  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\WinHKI" "DisplayName" "WinHKI V1.3e"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\WinHKI" "UninstallString" '"$INSTDIR\uninstall.exe"'
I tried your example NSI script, with dummy files, and it worked fine for me (on WinXP Professional). The registry entries are created as they should be and, since they are, when I open Add/Remove Programs the "WinHKI V1.3e" entry is there as one would expect. In fact, I do almost exactly the same thing as your following code snippet in my installers and I've never had a problem, on any version of Windows.

I don't know why it's not working for you, but there's nothing wrong with those two lines in particular. Is the installer completing the install with no errors or aborts on your test system, and have you tried it on other similar WinXP machines? That's about the only thing I can think of off the top of my head.

Additionally, on which registry tree to use, HKLM or HKCU. If the software is for all users on the local machine, use HKLM. If the software is for the current user only, use HKCU.

It's most likely permissions. Only the Administrator has permission to write to HKLM. As for HKCU you should be able to write whatever you want.


Thanks for your answers guys, but I have admin privileges on my computer.

I'll do some additionnal tests as soon as I have time for that and let you know.

But anyway, thanks a lot for your help.