blob: d1dded25b27d377ba7fb00bc3768f1a757fbfdd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
function Component()
{
if( installer.isUpdater() )
{
if( installer.value( "os" ) == "win" )
component.addDownloadableArchive( "testapp.exe" );
else
component.addDownloadableArchive( "testapp.app.7z" );
}
}
Component.prototype.createOperationsForArchive = function( archive )
{
component.createOperationsForArchive( archive );
if( installer.isUpdater() )
component.addOperation( "SelfRestart" );
}
|