Commit fae2571b authored by Ingemar Ceicer's avatar Ingemar Ceicer

installerscript.qs

parent 707f83d6
......@@ -39,3 +39,4 @@
**/hashsum-*
**/hashsum
**/install*
!**/install*.qs
\ No newline at end of file
function Component()
{
gui.pageWidgetByObjectName("LicenseAgreementPage").entered.connect(changeLicenseLabels);
}
Component.prototype.createOperations = function()
{
component.createOperations();
if (systemInfo.productType === "windows") {
component.addOperation("CreateShortcut", "@[email protected]/hashsum-2.5.1.exe", "@[email protected]/hashsum-2.5.1.lnk",
"[email protected]@", "[email protected]@/hashsum.ico");
component.addOperation("CreateShortcut", "@[email protected]/hashsum-2.5.1.exe", "@[email protected]/hashsum-2.5.1.lnk",
"[email protected]@", "[email protected]@/hashsum.ico");
}
if (installer.value("os") === "x11") {
component.addOperation("Copy", "@[email protected]/hashSum.desktop", "/usr/share/applications/hashSum.desktop");
}
}
changeLicenseLabels = function()
{
page = gui.pageWidgetByObjectName("LicenseAgreementPage");
page.AcceptLicenseLabel.setText("<font size=4>Yes I do!</font>");
page.RejectLicenseLabel.setText("<font size=4>No I don't!</font>");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment