| 1 |
function Component(){ |
| 2 |
gui.pageWidgetByObjectName("LicenseAgreementPage").entered.connect(changeLicenseLabels); |
| 3 |
installer.installationFinished.connect(this, Component.prototype.installationFinishedPageIsShown); |
| 4 |
installer.finishButtonClicked.connect(this, Component.prototype.installationFinished); |
| 5 |
|
| 6 |
|
| 7 |
} |
| 8 |
|
| 9 |
Component.prototype.createOperations = function(){ |
| 10 |
component.createOperations(); |
| 11 |
if(installer.value("os") == "win"){ |
| 12 |
component.addOperation("Execute", "@TargetDir@\\vc_redist.x64.exe","/install","/passive", "/norestart","/quiet"); |
| 13 |
component.addOperation("CreateShortcut", "@TargetDir@/Pep8.exe", "@StartMenuDir@/Pep8.lnk", |
| 14 |
"workingDirectory=@TargetDir@","description=Run Pep8"); |
| 15 |
} |
| 16 |
} |
| 17 |
Component.prototype.installationFinishedPageIsShown = function(){ |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
} |
| 28 |
|
| 29 |
Component.prototype.installationFinished = function(){ |
| 30 |
|
| 31 |
} |
| 32 |
changeLicenseLabels = function() |
| 33 |
{ |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
} |