mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
28 lines
712 B
Text
28 lines
712 B
Text
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 );
|
|
}
|
|
}
|