From 066710cf0f01e85206734a5f851f2c3360376a74 Mon Sep 17 00:00:00 2001 From: MTRNord Date: Mon, 2 Oct 2017 21:42:52 +0200 Subject: [PATCH] fix syntax errors --- deploy/installer/gui/installscript.qs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/deploy/installer/gui/installscript.qs b/deploy/installer/gui/installscript.qs index 433e282e..df45d91f 100644 --- a/deploy/installer/gui/installscript.qs +++ b/deploy/installer/gui/installscript.qs @@ -27,12 +27,14 @@ Component.prototype.createOperations = function() /** * Cleanup AppData and registry */ - if(installer.isUninstaller()){ - component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C reg delete "HKEY_CURRENT_USER\Software\nheko\nheko\font" /f") - component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C reg delete "HKEY_CURRENT_USER\Software\nheko\nheko\notifications" /f") - component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C reg delete "HKEY_CURRENT_USER\Software\nheko\nheko\window" /f") - if(installer.environmentVariable("LOCALAPPDATA") != ""){ - component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C rmdir "%LOCALAPPDATA%\nheko" /f") + if( installer.isUninstaller() ) + { + component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C reg delete "HKEY_CURRENT_USER\Software\nheko\nheko\font" /f"); + component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C reg delete "HKEY_CURRENT_USER\Software\nheko\nheko\notifications" /f"); + component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C reg delete "HKEY_CURRENT_USER\Software\nheko\nheko\window" /f"); + if( installer.environmentVariable("LOCALAPPDATA") != "" ) + { + component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C rmdir "%LOCALAPPDATA%\nheko" /f"); } } }