Skip to content
⌘ NSIS Forum Archive

Uninstall a program that already present in the control panel

4 posts

Mohamaed#

Uninstall a program that already present in the control panel

Hi,
I am using NSIS2.6
I have a installer that installs a software and makes an entry in the registry under the key name HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{D9977343-8AB7-458A-885E-31AB3108DB6D}

I am not able to uninstall this software using the NSIS uninstaller.
Anders#
Originally Posted by Mohamaed View Post
I have a installer that installs a software and makes an entry in the registry under the key name HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{D9977343-8AB7-458A-885E-31AB3108DB6D}

I am not able to uninstall this software using the NSIS uninstaller.
I have already told you not to use Wow6432Node in the registry path. The path you see in Regedit might not be the same as what a 32-bit applications sees.

Why are you unable to uninstall? Are you unable to read the UninstallString value? Unable to execute the command after reading it?
Mohamaed#
The software I am trying to remove is a 32-bit.So will it be fine to use Wow6432Node ?

I am able to execute the command.Now the problem is,if I try to remove some folders inside Program files after uninstalling using
RMDir \r "C:\Program Files\Application"
the folder "application" and the files and folders inside it is not being deleted/removed.
Is this because of some permissions inside the program files.
If so how to change it.
JasonFriday13#
Originally Posted by Mohamaed View Post
The software I am trying to remove is a 32-bit.So will it be fine to use Wow6432Node ?
We have said this several times now, don't use wow6432node. Use a standard registry path and use SetRegView 64 for the 64 bit version of your software.

Originally Posted by Mohamaed View Post
I am able to execute the command.Now the problem is,if I try to remove some folders inside Program files after uninstalling using
RMDir \r "C:\Program Files\Application"
the folder "application" and the files and folders inside it is not being deleted/removed.
Is this because of some permissions inside the program files.
If so how to change it.
Don't use an absolute path, as on 64 bit windows the program files folder is different for 32 bit programs. Use this: RMDir /r "$PROGRAMFILES\Application". Also, the program must have administrator privileges to delete files and folders in $PROGRAMFILES.