summary refs log tree commit diff
path: root/deploy/installer/cleanup/installscript.qs
diff options
context:
space:
mode:
authorMarcel <MTRNord@users.noreply.github.com>2017-11-06 16:17:21 +0100
committermujx <mujx@users.noreply.github.com>2017-11-06 17:17:21 +0200
commit4ba1f2ea837f46607ec1738496ca546babd6b207 (patch)
tree6ffc880107627cc38ee87c78f325bd819a32f7e6 /deploy/installer/cleanup/installscript.qs
parentUpdate README (diff)
downloadnheko-4ba1f2ea837f46607ec1738496ca546babd6b207.tar.xz
Windows icon fix and change the installer to QT Installer Framework on Windows (#85)
Diffstat (limited to 'deploy/installer/cleanup/installscript.qs')
-rw-r--r--deploy/installer/cleanup/installscript.qs28
1 files changed, 28 insertions, 0 deletions
diff --git a/deploy/installer/cleanup/installscript.qs b/deploy/installer/cleanup/installscript.qs
new file mode 100644

index 00000000..46f8012c --- /dev/null +++ b/deploy/installer/cleanup/installscript.qs
@@ -0,0 +1,28 @@ +function Component() +{ +} + +Component.prototype.createOperations = function() +{ + component.createOperations(); + + try + { + if( installer.value("os") === "win" ) + { + /** + * Cleanup AppData and registry + */ + component.addElevatedOperation("Execute","UNDOEXECUTE","cmd /C reg delete HKEY_CURRENT_USER\Software\nheko\nheko /f"); + var localappdata = installer.environmentVariable("LOCALAPPDATA"); + if( localappdata != "" ) + { + component.addElevatedOperation("Execute","UNDOEXECUTE","cmd /C rmdir "+localappdata+"\nheko /f"); + } + } + } + catch( e ) + { + print( e ); + } +}