Drivers Instalation in Post-Install stage (New Method) Updated: 1.XII.2009 version 2.0.0.28
#401
Posted 27 December 2007 - 10:24 AM
#402
Posted 31 December 2007 - 04:32 AM
#403
Posted 31 December 2007 - 04:58 AM
pSycho-Y2K, on Dec 31 2007, 11:32 AM, said:
It's almost done .. and would be done already if i hadn't included Modern Menu... now menu looks great however everytime you right click on the main listview you can see the menu showing up. ANd if you do a lot of left clicking on the listview you can also close the program. So i will have to either
a) remove it and replace it again with old styled menu
#404
Posted 04 January 2008 - 01:51 PM
1. If the config file is not detect, generate a default one (if possible).
2. Why are problem id's already enabled by default?
*EDIT: I realize why now, nicely done. Question though, devices I have intentionally disabled, (error code 22), will they be updated or skipped or what?
3. For consistency with windows environment variables, suggest to leave at least the names the same, or change them to the exact ones, ie. %windir%, %programfiles%, %computername% %tmp% "%userprofile%\My Documents" etc.
I haven't dugg into this too much, just trying to get the thing to even launch without erroring out. I really would like to have the ability to automatically find the 'driver_drive' as the complete path up to the point where the executable is located
i.e. X:\subfolder1\subfolder2\
-->executable
-->Drivers\
-->etc
This way, I can simply drag and drop the 'subfolder2' to any device, key etc without worrying about what the underlying path is...
For example, right now, I am in testing phase and have my directory on my machine setup as:
c:\Test\UniversalDriverDisk\ ....etc
but it is looking for the C:\Drivers folder, not the C:\Test\UniversalDriverDisk\Drivers folder....
I'm going to do some testing today and will post back later. Nice work though. I ran across this by accident, I was looking for WMI/VBS scripts to enumerate through the devices so I could write a script on my own. But this is by far more superior (the driver update feature I think is really neat.)
This post has been edited by JuMz: 04 January 2008 - 02:08 PM
#405
Posted 04 January 2008 - 02:22 PM
"There are no devices marked for removal. If you think this is an error correct config file with proper PROBLEM ID's."
Why is this even comming up? Why does there even have to be a device marked for removal to begin with?
EDIT: Does the 'drivers_copy_path' accept environment variables? I do not wish to hard code the path but rather have it %systemdrive% or %windir% etc
And for the log file, how do you intend to write to the $programdir$ if this was burned on a CD?
EDIT: Can't seem to get the 'update drivers' feature working. I run the app on a machine I know needs updates but it doesn't even do anything, comes up with the same error about no devices marked for removal. Im not trying to do that, I just want to update drivers...
This post has been edited by JuMz: 04 January 2008 - 04:30 PM
#406
Posted 05 January 2008 - 06:27 AM
1. And for the log file, how do you intend to write to the $programdir$ if this was burned on a CD?
- It is up to you to set the path correctly. What i put there is default for using from PenDrive or any other device. However the code has error proof logging. It will check if it can write to the path specified in the config and if it can't do that it will try to write the log to $ProgramDir (in your case it would do exactly same thing) and if that errors out too it will write the log to C:\. If you have any suggestions how to make it work diffrent way feel free to advice how you would like it to be taken care of. However keep in mind that new version that will be out soon has some significant changes on this aswell. But that is another story.
2. "There are no devices marked for removal. If you think this is an error correct config file with proper PROBLEM ID's.". Why is this even comming up? Why does there even have to be a device marked for removal to begin with?
- When the program started it was simple tool to remove devices that have no drivers. In Windows devices that have no drivers or have other kind of problems are marked with a problem ID. Program lists all devices and then checks for their Problem ID. Each problem ID has diffrent meaning. If i remember correctly of the top of my head Problem ID 1 and 22 are for missing driver. On the first page there's a link to Microsoft Web site explaining every problem id and possible match. The problem id's in example are the ones that i found out by experience
3. Can't seem to get the 'update drivers' feature working. I run the app on a machine I know needs updates but it doesn't even do anything, comes up with the same error about no devices marked for removal. Im not trying to do that, I just want to update drivers...
- As the program in the begining was mostly suppoed to fix devices that require driver and update feature was added recently you will have to use force_run option in the config file to ignore the check for devices that have errors only. This should make the program to skip the check and follow up doing other procedures.
4. EDIT: Does the 'drivers_copy_path' accept environment variables? I do not wish to hard code the path but rather have it %systemdrive% or %windir% etc
- At the moment it doesnt. However new version will.
5. "...but it is looking for the C:\Drivers folder, not the C:\Test\UniversalDriverDisk\Drivers folder...."
As you are using RELATIVE value it only means that drive letter is relative not the whole path. So the relative for your program means C: and then you have to enter the path which in your case would be
\Test\UniversalDriverDisk\Drivers. I suggest waiting for new version which will be built a bit diffrently.
As the program was started i had no knowledge at coding at all. I just simply found some batch file that was doing something and couldn't understand a thing and i needed some realy good solution for my work. So i started digging up and found AutoIt. Posted the batch and asked for porting the batch file to autoit. Noone helped
#407
Posted 05 January 2008 - 12:43 PM
Simply don't put code 22 in problem id's field in config and it will skip removal of that device. The problem ID's are only used if you want to 'remove' that device prior to drivers instalation. When using UpdateAll drivers feature the problems id's aren't taken into consideration.
#408
Posted 12 January 2008 - 01:18 PM
To do list:
- Fix _UpdateStatusBar icons (wth is going on)
- Fix any bugs that come in a way
- Add window managing for Ignore Unsigned drivers
- Add application updater (to update itself)
- Add database online support to download drivers from the WEB
- Add timers to execute some stuff simultaneously (where possible)
Changelog for 2.0.0.17 (public)
- First release since a while (expect lots of bugs
Changelog for 2.0.0.16 (non-public)
- Changes to listing of directories for RegistryDevicePath (better/optimized)
- Changes to listing of files for SetupCopyOemInf (better/optimized)
- Updated version of 7zip to 4.57
- Added window managing of Hardware wizard
Changelog for 2.0.0.15 (non-public)
- Added drive mapping (supported in LOGS/DRIVERS DB/DRIVERS PATH/DRIVERS COPY PATH)
- Changes to _DetectInfrastructure(), warning for Windows Vista added (vista is not supported as far as i can tell).
- Changes to hardware_config.xml (update your configuration!!):
===> REPLACED: <drivers_directory> AND <drivers_drive> WITH <drivers_directory_path>
===> REPLACED: <log_filename> AND <log_path> WITH <log_filename_path>
===> ADDED: <drivers_database> with subkeys added
===> ADDED: <drivers_method> added
===> ADDED: <share_configuration> with subkeys added
===> ADDED: <window_managing> with subkeys added
- Added Modern Menu look
- Added prepare drivers database
Changelog for 2.0.0.14 (non-public)
- Updated settings check to be more informative in case config file wasn't found. Was missleading back then.
- Updated settings check msgboxes to ones with icons
- Changed config file name from hardware.xml to hardware_config.xml (update your configuration!!)
- Fixed default log file names when the correct one cannot be created
Changelog for 2.0.0.13 (non-public)
- Fixed logging problem where log file was created but no data was populated
- Fixed flickering when data was populated to SimpleDeviceListView
- Updated code to newest beta of AutoIT v3 (some GUI functions were broken)
- Fixed DllCall for Plug and Play Rescan (tnx to Smoke_N)
(Changed: DllCall() new method of passing types by reference using *.)
(Changed: DllCall(): short_ptr, long_ptr, int_ptr types deprecated. Use short*, long* and int* respectively.)
#409
Posted 12 January 2008 - 02:39 PM
quick question about networking, does it have to map the drive to use it over the network, or can i select NO to mapping, and simply enter paths where needed?
e.g
Quote
<use_mapping>No</use_mapping>
<map_network_drive>
<drive_1>
<share_path>\\127.0.0.1\c$</share_path>
<domain_username>EM\MadBoy</domain_username>
<domain_password>SuperPass</domain_password>
</drive_1>
</map_network_drive>
</share_configuration>
<drivers>
<drivers_method>New</drivers_method>
<drivers_database_use>Yes</drivers_database_use>
<drivers_database_recreate>No</drivers_database_recreate>
<drivers_database_path>\\Servername\drivers\hardware_database.db</drivers_database_path>
<drivers_directory_path>RELATIVE:\unpacked</drivers_directory_path>
<drivers_packed>No</drivers_packed>
would that work?
the drivers would actually be on
\\Servername\drivers\unpacked
and the .exe would be ran from
\\Servername\Driversso the path is "relative"
thanks
#410
Posted 12 January 2008 - 02:45 PM
EDIT: this is because most likely some kind of connection (with credentials) would have to be made first. I am curious where you would prefer to use the share path instead of mapping the drive (which will unmap itself on reboot). I could probably add unmap option to program when quiting program but that will follow up in next version.
This post has been edited by MadBoy: 12 January 2008 - 02:51 PM
#411
Posted 12 January 2008 - 04:29 PM
the server is already logged into from the machines for running of other batch files (program instals/customizations etc)
basically i would prefer to be able to have the .exe and the .db and the unpacked drivers all on the server.
with the mapping option the .exe needs to be ran locally or from a cd/pendrive
#412
Posted 12 January 2008 - 05:04 PM
kC_, on Jan 12 2008, 11:29 PM, said:
the server is already logged into from the machines for running of other batch files (program instals/customizations etc)
basically i would prefer to be able to have the .exe and the .db and the unpacked drivers all on the server.
with the mapping option the .exe needs to be ran locally or from a cd/pendrive
Well unfortunetly what you have to do is to write .bat file that will be starting the .exe and first mapping the drive etc then with mapping drives turned of in my proggy do the rest. Or just put everything on server. Start it from \\share\sharedir\pro_s-hardware.exe and just make it map the drive (again just this time it will have letter) as you require. Can't seem to find a problem with that?
#413
Posted 12 January 2008 - 05:30 PM
Quote
-line 1
error: array variable has incorrect number of subscripts or subscript dimension range has exceeded
#414
Posted 12 January 2008 - 06:38 PM
kC_, on Jan 13 2008, 12:30 AM, said:
Quote
-line 1
error: array variable has incorrect number of subscripts or subscript dimension range has exceeded
Send me your config file please
This post has been edited by MadBoy: 12 January 2008 - 06:39 PM
#415
Posted 13 January 2008 - 01:34 PM
MadBoy, on Jan 12 2008, 06:38 PM, said:
<?xml version="1.0" encoding="utf-8"?> <settings> <basic_configuration> <choice>Automatic</choice> <window_managing> <hardware_wizard> <wizard_use>Yes</wizard_use> <wizard_title>Found New Hardware Wizard</wizard_title> <wizard_button_cancel>Cancel</wizard_button_cancel> <wizard_button_next>Next</wizard_button_next> <wizard_button_finish>Finish</wizard_button_finish> </hardware_wizard> </window_managing> <share_configuration> <use_mapping>No</use_mapping> <map_network_drive> <drive_1> <share_path>\\127.0.0.1\c$</share_path> <domain_username>EM\MadBoy</domain_username> <domain_password>SuperPass</domain_password> </drive_1> </map_network_drive> </share_configuration> <drivers> <drivers_method>New</drivers_method> <drivers_database_use>No</drivers_database_use> <drivers_database_recreate>No</drivers_database_recreate> <drivers_database_path>$ProgramDir\hardware_database.db</drivers_database_path> <drivers_directory_path>RELATIVE:\Drivers</drivers_directory_path> <drivers_packed>No</drivers_packed> <drivers_copy>No</drivers_copy> <drivers_copy_path>C:\DriversTest</drivers_copy_path> <drivers_copy_delete>No</drivers_copy_delete> <options> <method>RegistryDevicePath</method> <registry_path>Begin</registry_path> <problem_ids>01,10,18,24,28,37,39</problem_ids> <update_all>No</update_all> <plug_and_play> <option>Internal</option> <time_to_wait>5</time_to_wait> </plug_and_play> <shutdown> <auto_reboot_when_necessary>No</auto_reboot_when_necessary> <auto_reboot_when_done>No</auto_reboot_when_done> <auto_login>Yes</auto_login> <notify_when_done>Yes</notify_when_done> </shutdown> <time_to_run>0</time_to_run> <force_run>Yes</force_run> <device_manager>Yes</device_manager> </options> </drivers> <log> <log_overwrite>No</log_overwrite> <log_to_file>No</log_to_file> <log_filename_path>$ProgramDir\hardware.log</log_filename_path> <log_option>Simple</log_option> </log> <gui> <hide_legacy_devices>No</hide_legacy_devices> <fade_in_effect>No</fade_in_effect> <hide_views>No</hide_views> </gui> </basic_configuration> </settings>
#416
Posted 14 January 2008 - 02:34 AM
#417
Posted 14 January 2008 - 05:24 AM
MadBoy, on Jan 14 2008, 09:34 AM, said:
I have just found out that some chars can't be properly used in .xml file. For example i tried to use some french apostrophes in window name and it wouldn't let me. So i have to find another way to store the information that is required for Window managing. Unless noone is using other language then English ...
#418
Posted 16 January 2008 - 09:44 AM
MadBoy, on Jan 14 2008, 12:24 PM, said:
I'm using the Dutch version, and we don't use apostrophes in our language. But unfortunately the latest version of the tool generates the following error: Method must be set: SetupCopyOemInf or RegistryDevicePath. Terminating! In the logwindow I see the following line: [16:37:48] - [CONFIGURATION] Wrong settings for Plug And Play Option. Setting method to INTERNAL.
I used the new default configuration supplied in the zip, and altering the requested values did not help
This post has been edited by pSycho-Y2K: 16 January 2008 - 09:53 AM
#419
Posted 17 January 2008 - 02:34 AM
pSycho-Y2K, on Jan 16 2008, 04:44 PM, said:
MadBoy, on Jan 14 2008, 12:24 PM, said:
I'm using the Dutch version, and we don't use apostrophes in our language. But unfortunately the latest version of the tool generates the following error: Method must be set: SetupCopyOemInf or RegistryDevicePath. Terminating! In the logwindow I see the following line: [16:37:48] - [CONFIGURATION] Wrong settings for Plug And Play Option. Setting method to INTERNAL.
I used the new default configuration supplied in the zip, and altering the requested values did not help
Press ENTER on .xml. It should open up in Internet Explorer. If it opens up without problems then send me .xml file + eventually log. If it doesn't open up you should be notified with errors that are in .xml. If there is any inconsistency with XML format my program won't have ability to read it and therefore the function that checks .xml doesn't work.



Help


Back to top










