-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f2c5d5
commit 05d5f4c
Showing
9 changed files
with
127 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Installer> | ||
<Name>NeTrainSim</Name> | ||
<Version>$$VERSION</Version> | ||
<Title>NeTrainSim Installer</Title> | ||
<Publisher>Virginia Tech Transportation Institute - Center for Sustainable Mobility</Publisher> | ||
<InstallerWindowIcon>../../NeTrainSimGUI/resources/icon.png</InstallerWindowIcon> | ||
<InstallerApplicationIcon>../../NeTrainSimGUI/resources/icon</InstallerApplicationIcon> | ||
<Logo>icon.png</Logo> | ||
<StartMenuDir>NeTrainSim</StartMenuDir> | ||
<TargetDir>@ApplicationsDirX64@/NeTrainSim</TargetDir> | ||
<RunProgram>@TargetDir@/NeTrainSimGUI.exe</RunProgram> | ||
<ControlScript>installscript.qs</ControlScript> | ||
</Installer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
function Controller() { | ||
//installer.autoRejectMessageBoxes(); | ||
installer.installationFinished.connect(function() { | ||
//gui.clickButton(buttons.NextButton); | ||
}); | ||
} | ||
|
||
Controller.prototype.WelcomePageCallback = function() { | ||
//gui.clickButton(buttons.NextButton, 3000); | ||
} | ||
|
||
Controller.prototype.CredentialsPageCallback = function() { | ||
//gui.clickButton(buttons.NextButton); | ||
} | ||
|
||
Controller.prototype.IntroductionPageCallback = function() { | ||
//gui.clickButton(buttons.NextButton); | ||
} | ||
|
||
Controller.prototype.ReadyForInstallationPageCallback = function() { | ||
//gui.clickButton(buttons.CommitButton); | ||
} | ||
|
||
Controller.prototype.PerformInstallationPageCallback = function() { | ||
//gui.clickButton(buttons.CommitButton); | ||
} | ||
|
||
Controller.prototype.FinishedPageCallback = function() { | ||
var checkBoxForm = gui.currentPageWidget().LaunchCheckBoxForm; | ||
if (checkBoxForm && checkBoxForm.launchCheckBox) { | ||
checkBoxForm.launchCheckBox.checked = false; | ||
} | ||
//gui.clickButton(buttons.FinishButton); | ||
} | ||
|
||
Controller.prototype.TargetDirectoryPageCallback = function() { | ||
var targetDir = installer.value("TargetDir"); | ||
if (installer.fileExists(targetDir + "/maintenancetool.exe")) { | ||
var buttonPressed = QMessageBox["warning"]("os.QMessageBox", "Warning", | ||
"A previous installation has been detected at " + targetDir + | ||
". Do you want to uninstall it?", | ||
QMessageBox.Yes | QMessageBox.No); | ||
|
||
if (buttonPressed == QMessageBox.Yes) { | ||
installer.executeDetached(targetDir + "/maintenancetool.exe", | ||
["--uninstall"]); | ||
} else { | ||
//gui.clickButton(buttons.CancelButton); | ||
} | ||
} | ||
else { | ||
var targetWidget = gui.pageWidgetByObjectName("TargetDirectoryPage"); | ||
targetWidget.TargetDirectoryLineEdit.setText(targetDir); | ||
//gui.clickButton(buttons.NextButton); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/NeTrainSimInstaller/packages/com.VTTICSM.NeTrainSim/meta/package.xml.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package> | ||
<DisplayName>NeTrainSim</DisplayName> | ||
<Description>NeTrainSim Setup</Description> | ||
<Version>$$VERSION</Version> | ||
<ReleaseDate>$$RELEASEDATE</ReleaseDate> | ||
<Licenses> | ||
<License name="GPL-3.0 License" file="LICENSE" /> | ||
</Licenses> | ||
<Script>installscript.qs</Script> | ||
<Default>true</Default> | ||
</Package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/NeTrainSimInstaller/packages/com.VTTICSM.NeTrainSimGUI/meta/package.xml.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package> | ||
<DisplayName>NeTrainSimGUI</DisplayName> | ||
<Description>NeTrainSimGUI Setup</Description> | ||
<Version>$$VERSION</Version> | ||
<ReleaseDate>$$RELEASEDATE</ReleaseDate> | ||
<Licenses> | ||
<License name="GPL-3.0 License" file="LICENSE" /> | ||
</Licenses> | ||
<Script>installscript.qs</Script> | ||
<Default>true</Default> | ||
</Package> |