Skip to content

Commit 4baf21a

Browse files
committed
Yet another change
1 parent 5aad8c5 commit 4baf21a

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

gui/packaging/config/config.xml.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<StartMenuDir>{{ publisher }}</StartMenuDir>
88

99
<!-- Fixed install location (no version folder) -->
10+
<ControlScript>installscript.qs</ControlScript>
1011
<TargetDir>@ApplicationsDir@/{{ publisher }}/{{ progfolder }}</TargetDir>
1112
<RemoveTargetDir>true</RemoveTargetDir>
1213

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
function Controller() {}
2+
3+
Controller.prototype.TargetDirectoryPageCallback = function() {
4+
var page = gui.pageWidgetByObjectName("TargetDirectoryPage");
5+
6+
// Override the default validation function
7+
page.targetDirectoryLineEdit().textChanged.connect(function(dir) {
8+
// Always allow the user to continue
9+
page.completeChanged();
10+
});
11+
12+
page.isComplete = function() {
13+
var dir = page.targetDirectoryLineEdit().text;
14+
15+
// If the directory exists and has an existing installation, we still allow it
16+
return true;
17+
};
18+
};

0 commit comments

Comments
 (0)