mirror of https://github.com/Nheko-Reborn/nheko
parent
874c057ce5
commit
721ffc9b7c
@ -1,28 +0,0 @@ |
||||
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 ); |
||||
} |
||||
} |
@ -1,10 +0,0 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<Package> |
||||
<DisplayName>Cleanup AppData and Registry</DisplayName> |
||||
<Description>Cleans up AppData and Registry when selected (logs you out) - Broken</Description> |
||||
<Version>__VERSION__</Version> |
||||
<ReleaseDate>__DATE__</ReleaseDate> |
||||
<SortingPriority>80</SortingPriority> |
||||
<Script>installscript.qs</Script> |
||||
<Checkable>false</Checkable> |
||||
</Package> |
Loading…
Reference in new issue