diff --git a/deploy/installer/gui/installscript.qs b/deploy/installer/gui/installscript.qs index 4e964214..35ea390a 100644 --- a/deploy/installer/gui/installscript.qs +++ b/deploy/installer/gui/installscript.qs @@ -32,9 +32,10 @@ Component.prototype.createOperations = function() 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") != "" ) + var localappdata = installer.environmentVariable("LOCALAPPDATA"); + if( localappdata != "" ) { - component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C rmdir "%LOCALAPPDATA%\nheko" /f"); + component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C rmdir " localappdata + "\nheko /f"); } } }