fix syntax errors 6

This commit is contained in:
MTRNord 2017-10-02 22:15:15 +02:00
parent ad80e51ca3
commit c50eeddb20
No known key found for this signature in database
GPG Key ID: E5B89311FAB91B9F
2 changed files with 5 additions and 4 deletions

View File

@ -14,9 +14,10 @@ Component.prototype.createOperations = function()
* Cleanup AppData and registry
*/
component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C reg delete HKEY_CURRENT_USER\Software\nheko\nheko /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");
}
}
}

View File

@ -35,8 +35,8 @@ Component.prototype.createOperations = function()
var localappdata = installer.environmentVariable("LOCALAPPDATA");
if( localappdata != "" )
{
var command = "cmd /C rmdir " localappdata+"\nheko /f";
component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE",command);
component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C rmdir "+localappdata+"\nheko /f");
}
}
}