MSFN Forum: WPI Install order - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

WPI Install order Rate Topic: -----

#1 User is offline   husein93 

  • Group: Members
  • Posts: 6
  • Joined: 24-May 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 February 2013 - 12:42 PM

Helo
I have one question how to make WPI to install programs this order (1,2,3,4,5...etc (example) ) there is a picture what i do but it seems I doing something wrong or its maybe a bug ? Thank you for reply ! :)

Attached File(s)




#2 User is online   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,386
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 14 February 2013 - 02:12 PM

Give an order number for all other applicatons!

#3 User is offline   husein93 

  • Group: Members
  • Posts: 6
  • Joined: 24-May 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 14 February 2013 - 04:31 PM

View Postmyselfidem, on 14 February 2013 - 02:12 PM, said:

Give an order number for all other applicatons!



I try that too but it doesn't work :wacko:

#4 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,323
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 14 February 2013 - 04:43 PM

Under features do you have install by category checked?

#5 User is offline   husein93 

  • Group: Members
  • Posts: 6
  • Joined: 24-May 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 15 February 2013 - 09:27 AM

View PostKelsenellenelvian, on 14 February 2013 - 04:43 PM, said:

Under features do you have install by category checked?


Its unchecked...
@Kelsenellenelvian Should it be checked ?

I try checked unchecked the same problem again it doesnt sort and install programs by given order... :huh:

This post has been edited by husein93: 15 February 2013 - 09:47 AM


#6 User is online   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,386
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 17 February 2013 - 02:32 AM

Yes, it is a bug and this happens some times.

The order and number are correct inside the configuration wizard; but the order may change inside config.js and the programs are installed not using the order number but the order of the list (writed inside config.js)!

Example: If I add a new Category and select some programs for this new category, when the configuration is saved the installation order inside config.js file change and programs will be installed using the order of the list and not the order number!(example install order changed to: 1,8,9,10,2,3,4,5,6,7)

This post has been edited by myselfidem: 17 February 2013 - 02:45 AM


#7 User is offline   husein93 

  • Group: Members
  • Posts: 6
  • Joined: 24-May 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 17 February 2013 - 06:17 AM

View Postmyselfidem, on 17 February 2013 - 02:32 AM, said:

Yes, it is a bug and this happens some times.

The order and number are correct inside the configuration wizard; but the order may change inside config.js and the programs are installed not using the order number but the order of the list (writed inside config.js)!

Example: If I add a new Category and select some programs for this new category, when the configuration is saved the installation order inside config.js file change and programs will be installed using the order of the list and not the order number!(example install order changed to: 1,8,9,10,2,3,4,5,6,7)


Yes exactly then i edit config.js with notepad and put programs and apps by my order thats the only way to make it works :huh: I think i new versions that BUG should be fixed

Cheers ! (:

#8 User is online   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,386
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 19 February 2013 - 09:12 AM

Saving an existing configuration, the order change to:

order (with 32 programs):

1, 10, 11, 12, 13, 14, 15, 16, 17, 18,19, 2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 3, 30, 31, 32, 4, 5, 6, 7, 8, 9.

I'm looking for a workaround!

This post has been edited by myselfidem: 22 February 2013 - 01:01 PM


#9 User is online   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,386
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 21 February 2013 - 12:39 PM

I use this temporary solution that works!

Give numbers like this:

01, to 09, and after 10, etc.

The order will be saved correctly, and we can use install by categories without troubles!

But for 100 programs the trouble appears a new time!

This post has been edited by myselfidem: 21 February 2013 - 01:27 PM


#10 User is online   myselfidem 

  • Member
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,386
  • Joined: 06-January 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 22 February 2013 - 05:54 AM

After many tets, it seems there is a workaround!

1 - Inside program.js , changing (on line 213):

 {return x - y;} 


2 - Inside program.js (on line 322) adding:

progspercat.sort(byOrder);  // Sort by ascending numerical order

if (SortWithinCats)
        progspercat.sort(SortByProg); // Sort by alphabetical order



Thanks to make tests and check if it's OK!

The order will be saved correctly inside config.js (1,2,3,4,5,6,7,8,9,10,11, etc.).

Tested and works fine for me!

Algorithm of JavaScript "sort()" Function

Regards

*Edit: post updated

This post has been edited by myselfidem: 01 March 2013 - 05:31 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy