nheko/deploy/installer/cleanup/installscript.qs

28 lines
701 B
Plaintext
Raw Normal View History

function Component()
{
}
Component.prototype.createOperations = function()
{
component.createOperations();
try
{
if( installer.value("os") === "win" )
{
/**
* Cleanup AppData and registry
*/
2017-10-02 21:51:30 +02:00
component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C reg delete HKEY_CURRENT_USER\Software\nheko\nheko /f");
if( installer.environmentVariable("LOCALAPPDATA") != "" )
{
component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C rmdir %LOCALAPPDATA%\nheko /f");
}
}
}
catch( e )
{
print( e );
}
}