Registrykey löschen geht nicht
Verfasst: 02 Feb 2023, 11:40
Hallo,
ich habe Probleme ein Registrykey mit dem uninstallscript zu löschen.
es ist sehr simpel gehalten.
Files werden gelöscht, der Regkey nicht
_____________________________________
[Actions]
requiredOpsiscriptVersion >= "4.12.4.23"
DefVar $ProductId$
DefVar $InstallDir$
Set $ProductId$ = "w-apache-netbeans"
Set $InstallDir$ = "C:\Program Files\NetBeans-16"
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
Message "Uninstalling " + $ProductId$ + " ..."
Registry_keylöschen
Files_uninstall
[Registry_keylöschen]
deleteKey [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-all-16.0.0.221119.0]
[Files_uninstall]
del -sf "%ProgramFiles%\NetBeans-16\"
del -sf "C:\Users\Public\Desktop\Apache NetBeans IDE 16.lnk"
del -fc "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Apache NetBeans\Apache NetBeans IDE 16.lnk"
del -sfc "C:\Program Files\NetBeans-16"
_____________________________________
weitere Versuche mit:
Dosbatch_1 /Runelevated
[DosBatch_1]
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-all-16.0.0.221119.0 /f
bzw
[DosBatch_1]
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-all-16.0.0.221119.0" /f
ging nicht
Aber auch:
WinBatch_1 /RunElevated
[WinBatch_1]
cmd /c %ScriptPath%\files1\reg.cmd"
wobei in reg.cmd reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-all-16.0.0.221119.0 /f drin steht
macht nix
ich steh völlig auf dem Schlauch..
Liebe Grüße
Tommy
ich habe Probleme ein Registrykey mit dem uninstallscript zu löschen.
es ist sehr simpel gehalten.
Files werden gelöscht, der Regkey nicht
_____________________________________
[Actions]
requiredOpsiscriptVersion >= "4.12.4.23"
DefVar $ProductId$
DefVar $InstallDir$
Set $ProductId$ = "w-apache-netbeans"
Set $InstallDir$ = "C:\Program Files\NetBeans-16"
comment "Show product picture"
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$
Message "Uninstalling " + $ProductId$ + " ..."
Registry_keylöschen
Files_uninstall
[Registry_keylöschen]
deleteKey [HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-all-16.0.0.221119.0]
[Files_uninstall]
del -sf "%ProgramFiles%\NetBeans-16\"
del -sf "C:\Users\Public\Desktop\Apache NetBeans IDE 16.lnk"
del -fc "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Apache NetBeans\Apache NetBeans IDE 16.lnk"
del -sfc "C:\Program Files\NetBeans-16"
_____________________________________
weitere Versuche mit:
Dosbatch_1 /Runelevated
[DosBatch_1]
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-all-16.0.0.221119.0 /f
bzw
[DosBatch_1]
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-all-16.0.0.221119.0" /f
ging nicht
Aber auch:
WinBatch_1 /RunElevated
[WinBatch_1]
cmd /c %ScriptPath%\files1\reg.cmd"
wobei in reg.cmd reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-all-16.0.0.221119.0 /f drin steht
macht nix
ich steh völlig auf dem Schlauch..
Liebe Grüße
Tommy