forked from mirror/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
712 B
28 lines
712 B
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 );
|
|
}
|
|
}
|
|
|