fix syntax errors

This commit is contained in:
MTRNord 2017-10-02 21:42:52 +02:00
parent 2987689ea9
commit 066710cf0f
No known key found for this signature in database
GPG Key ID: E5B89311FAB91B9F

View File

@ -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");
}
}
}