|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
||||
|
||||
|
Re: Driver Station Update fails to install
I suspected as much. I just couldn't believe anyone would implement a program version in such a ridiculous manner.
Ok, yes I copied the program and that explains the version. I observed strange behavior with this update on my backup DS and now on my competition DS I have seen the same thing: After install of update 1, I had two DS programs in the C:\program files\FRC Driver Station directory: Driver Station.exe (this is the old version) DriverStation.exe (this is the new version) if i run this program, I see the new version 09021500 as expected. Since the Driver user would only launch Driver Station.exe, I decided I would rename Driver Station.exe to Driver Station-old.exe and rename DriverStation.exe to Driver Station.exe. This would make the Driver user launch the updated DS program. However, after the rename (and a reboot), the Driver Station.exe is the old version. Seems impossible but it has happened on two systems. Driver Station.exe and Driver Station-old.exe are the same. I can't explain this and it seems impossible but there it is. So, prior to all this, I had made a backup copy of the driver station directory. I went into the backup directory, did the same renames and then copied the renamed Driver Station.exe (now the updated version) to the real directory (thats how I got 03051500) and low and behold this time Driver Station.exe runs as the updated version and the Driver user runs the updated version. I would say all this is insane of I had not seen it happen twice on different systems... |
|
#17
|
|||
|
|||
|
Re: Driver Station Update fails to install
Quote:
That is only true of the old DS. The 2015 version and later implements it in a more sane way (baked into the EXE). |
|
#18
|
|||
|
|||
|
Re: Driver Station Update fails to install
Quote:
Quote:
|
|
#19
|
||||
|
||||
|
Re: Driver Station Update fails to install
I have been busy with other things for some days now but am back to this problem now. The last reply indicated the 2015 DS does not use the file date as part of its version number...but on my systems this is still happening. The key thing that I am seeing and may explain some of what I have been struggling with is this (which I am looking at on my DS PC right now):
I have two program files: Driver Station.exe (renamed from DriverStation.exe, believed to be the current vesion) Driver Station-upd-0.exe (renamed old version) Now these two programs are both exactly the same size and both programs show the windows properties version of 15.0.0.49156. Yet when I run these programs I get different version numbers displayed: Driver Station.exe = 05031500 Driver Station-upd-2015-0.exe = 20121300 How is this possible? One thought that keeps recurring is that I have used the wrong installer for the current version, but I followed the links on the current software version web page and installed from there...and version ending in 1500 is identified as the current version...so? Also note that if the installer is installing a changed program name, Driver Station.exe -> DriverStation.exe, it is not updating the shell registry key that starts the DS program as the Driver users shell to reflect that change. That key still has Driver Station.exe as the alternate shell. |
|
#20
|
|||
|
|||
|
Re: Driver Station Update fails to install
Quote:
This clearly needs more improvement in the future. |
|
#21
|
||||
|
||||
|
Re: Driver Station Update fails to install
An update. I just did a repair of the NI install as was suggested. After repair there is a "new" program (different than the two mentioned in the last post) called DriverStation.exe. This is what we would expect. However, it is interesting to note it is the same size as the other two but the windows version is 15.0.0.49159. When I run this program it displays version 09021500. This is what we expect for the update. I then renamed it to driver station.exe and ran it again and it displayed 09021500. Switched to Driver user and the DS runs there and displays 09021500.
This all appears to be correct and what I expected on day 1 of this adventure. Program with 15.0.0.49156 would seem to be old version and 15.0.0.49159 would seem to be updated version and the version displayed by the 49159 exe seems to confirm that. We want version ending in 1500. However, I still have a program file with windows v 15.0.0.49156 that displays its version number as 05031500. This does not seem to make sense, but the fact that this happens would seem to be a major factor in the confusion I have had. Things seem headed in the right direction. Now to do this fix on our competition DS and see if all good there. |
|
#22
|
||||
|
||||
|
Re: Driver Station Update fails to install
Joe,
Just read your post. I am an experienced Windows developer and I also showed the DS program to another one of our mentors, who happens to be a Microsoft employee and a lead on the Windows team. Some observations: 1) I caused the create date of the DS program to change by copying it, which I did while trying to figure out why I was not getting the updated program when I renamed driverstation.exe to driver station.exe. Still no explanation for that but I am willing to drop it since I seem to have the updated program in place now. 2) Windows programs should always use a hard coded version or version based on the internal assignment of the 4 part windows version number, major.minor.build.fix or as I like to do major.minor.fix.build. If you use visual studio, all this can be managed automatically and your program can display the version embedded in the exe. If you are using LabView, then you have to manage the hard coded version yourself. 3) This version should be displayed in the application title bar though many developers leave off the build in the title bar. The title bar version and the version displayed by the app should not be of different forms. 4) Using file dates is not at all a good idea since the user can "change" the program version number. 5) Don't forget about the Driver user shell program not getting renamed. After a successful install of the update, the Driver user still runs the old program (hence the renaming I am doing). Note that I could have tweaked the registry to the correct program name, but I have our DS PCs set up to allow switching between the 2015 and 2014 DS programs as we still run last years robots quite a bit for demos and having the DS program name the same facilitates this switching. I know the 2015 is supposed to let you switch protocols, but this did seem to work when we first installed 2015 so we did it ourselves. And doing it ourselves allows us to switch out the custom display program we have for the upper part of the DS display. Sorry if I am stating the obvious but I felt bound to mention all this due to the time I have spent on this version numbering issue. Thanks for responding to my posts. |
|
#23
|
|||
|
|||
|
Re: Driver Station Update fails to install
As I stated in my last post, the value shown there is the Windows Creation Date of the file, so if you did something that changed that, it would have this effect.
|
|
#24
|
||||
|
||||
|
Re: Driver Station Update fails to install
Joe,
Just read your post. I am an experienced Windows developer and I also showed the DS program to another one of our mentors, who happens to be a Microsoft employee and a lead on the Windows team. Some observations: 1) I caused the create date of the DS program to change by copying it, which I did while trying to figure out why I was not getting the updated program when I renamed driverstation.exe to driver station.exe. Still no explanation for that but I am willing to drop it since I seem to have the updated program in place now. 2) Windows programs should always use a hard coded version or version based on the internal assignment of the 4 part windows version number, major.minor.build.fix or as I like to do major.minor.fix.build. If you use visual studio, all this can be managed automatically and your program can display the version embedded in the exe. If you are using LabView, then you have to manage the hard coded version yourself. 3) This version should be displayed in the application title bar though many developers leave off the build in the title bar. The title bar version and the version displayed by the app should not be of different forms. 4) Using file dates is not at all a good idea since the user can "change" the program version number. 5) Don't forget about the Driver user shell program not getting renamed. After a successful install of the update, the Driver user still runs the old program (hence the renaming I am doing). Note that I could have tweaked the registry to the correct program name, but I have our DS PCs set up to allow switching between the 2015 and 2014 DS programs as we still run last years robots quite a bit for demos and having the DS program name the same facilitates this switching. I know the 2015 is supposed to let you switch protocols, but this did seem to work when we first installed 2015 so we did it ourselves. And doing it ourselves allows us to switch out the custom display program we have for the upper part of the DS display. Sorry if I am stating the obvious but I felt bound to mention all this due to the time I have spent on this version numbering issue. Thanks for responding to my posts. |
|
#25
|
||||
|
||||
|
Re: Driver Station Update fails to install
Just to clarify, I was referring to the 1500 part of the version as I get the create date part of the version number. I thought it odd that two programs with the 49156 build would display 1300 and 1500 as the last 4 digits of the version. Is this odd or are you saying changing the create date has an effect on the last 4 digits as well as the first 4?
|
|
#26
|
|||
|
|||
|
Re: Driver Station Update fails to install
Quote:
Quote:
|
|
#27
|
||||
|
||||
|
Re: Driver Station Update fails to install
Ah...yes. I did not read carefully and thought it was just the first 4 related to create date and the last part was actually hard coded. Reading more carefully explains a lot.
|
|
#28
|
|||||
|
|||||
|
Re: Driver Station Update fails to install
Quote:
I can't imagine what you were seeing either. Maybe a strange Windows installer thing? No idea. Quote:
This is the form I intend to have used in all utilities, however the display in the title bar will be the abbreviated version. There is a set of rules for abbreviating that we use. You may notice that the DS title bar shows "15.0". That's what the above build version is abbreviated to. Quote:
Quote:
Quote:
|
|
#29
|
||||
|
||||
|
Re: Driver Station Update fails to install
Quote:
Quote:
Quote:
Thanks for this info. |
|
#30
|
|||
|
|||
|
Re: Driver Station Update fails to install
Quote:
The 2 msb are an enum. Sorry I didn't make that more clear. With 'final' being the fourth entry in the enum, its value is 3. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|