Note that there are some explanatory texts on larger screens.

plurals
  1. PONSIS uninstaller doesn't delete files/folders
    primarykey
    data
    text
    <p>I'm writing a NSIS installer for one of the apps that the company I work for uses internally, the install process works fine, with no problems all the REG keys are created, and so are the files folders and services, that the App uses. For some reason I can't understand, the uninstall process doesn't work's.</p> <p>The services created by the app are deleted and so are the Registry keys, the most simple part, the files themselves, I can't delete them through the uninstaller!</p> <pre><code>#Includes !include "x64.nsh" #Defines and Installer Properties Outfile "ESTvnc Installer.exe" Name ESTvnc Icon "${NSISDIR}\contrib\graphics\icons\VNCON.ico" #Detect OS Version Function .onInit StrCpy $instdir $PROGRAMFILES ${If} ${RunningX64} StrCpy $instdir $PROGRAMFILES32 ${EndIf} FunctionEnd section SetShellVarContext all CreateDirectory $instdir\EST\ESTvnc setOutPath $instdir\EST\ESTvnc File /r installfiles\* WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ESTvnc\" \ "DisplayName" "ESTvnc" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ESTvnc"\ "UninstallString" "$instdir\EST\ESTvnc\uninstaller.exe" writeUninstaller $instdir\EST\ESTvnc\uninstaller.exe ExecWait '"$instdir\EST\estvnc\estvnc.exe" -install' sectionEnd section "Uninstall" SetShellVarContext all SimpleSC::StopService "ESTVNC" 1 30 pop $0 SimpleSC::StopService "ESTVNCSR" 1 30 pop $0 SimpleSC::RemoveService "ESTVNC" SimpleSC::RemoveService "ESTVNCSR" RMDir /r "$instdir\EST\ESTvnc" Delete $instdir\EST\ESTvnc\uninstaller.exe DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ESTvnc" sectionEnd </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload