File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 7
7
<StartMenuDir >{{ publisher }}</StartMenuDir >
8
8
9
9
<!-- Fixed install location (no version folder) -->
10
+ <ControlScript >installscript.qs</ControlScript >
10
11
<TargetDir >@ApplicationsDir@/{{ publisher }}/{{ progfolder }}</TargetDir >
11
12
<RemoveTargetDir >true</RemoveTargetDir >
12
13
Original file line number Diff line number Diff line change
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
+ } ;
You can’t perform that action at this time.
0 commit comments