Jump to content


  • Posts

  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Czech Republic

Posts posted by r3incarnat0r

  1. TextBox33.Text = intNum1 + intNum2 + intNum3 + intNum4 + intNum5 + intNum6 + intnum25 + intnum26 + intnum27 + intnum28 + intnum29 + intnum30
    TextBox34.Text = intNum7 + intNum8 + intNum9 + intNum10 + intNum11 + intNum12 + intNum13 + intNum14 + intNum15 + intNum16 + intNum17 + intNum18 + intNum19 + intNum20 + intNum21 + intNum22 + intNum23 + intNum24

    If you need so many variables, you should rather consider to use an array of them imo:

    Dim tmp(2) As Integer  'array of 3 integers - tmp(0), tmp(1) and tmp(2)

    Dim ints() As Integer = {2, 4, 0, 5, -1} 'array of 5 integers
    Dim tmpint As Integer = 0

    For i = 0 To ints.Length - 1 'i.e. ints(0) to ints(4)
    tmpint += ints(i) 'adds all values
    Next 'tmpint will be 2 + 4 + 0 + 5 - 1 = 10

  2. I would drop the .Net :P

    Thanks for reply. I agree with trailing ".NET", makes the name long and complicated. However, there's another problem - "DeviceTool" name indicates that the app should do something with devices, but actually it will be rather intended to do something with drivers. This led to rename the app to "DriverTool" (which was my original idea anyway), but such things already exist. Then I started to looking for a word to replace the "Tool" string and found some nice examples in english dictionary:

    bring, direct, expose, point, fetch, seek, probe, locate, quest, stalk, hunt, find, reveal, hit, uncover, sight, espy

    I was also thinking if the name based on "Driver" is acceptable, because it's not obvious what kind of "driver" is meant - device driver, bus driver, ... :rolleyes: Fortunately I remembered the name "Windows", so I decided the "Driver" is not a big deal. ;) Considering my naming conditions (must not exist, not too long, not complicated, well pronounceable, can't sound stupid/weird/extremely cool), I got several acceptable results:

    DriverSeek, DriverProbe, DriverHunt, DriverUncover B)

    I liked the "DriverSeeker" variant, it sounds good to me and reminded me "Legend of the Seeker" :) but Google returned exact matches, so I cut it just to "DriverSeek".

    So it looks like there's one decision left (to choose the one of the proposed names) instead of more "excogitation".

    ...name and icons aren't really something to strive for :P

    You're right with the name, that's me who's mad, but some minor features will be introduced first, since they're basically products of my code adjustments and preparing the architecture to be more flexible, so I could be able to add future upgrades much easier.

    As I said, I'm a beginner in VB.NET, until now I was just writing some .CMD scripts from time to time, so I'm fighting a bit with the object oriented way of programming and as I'm trying to write, sort and separate the code to classes, modules, structures etc., it forces me to think a lot and I need to proceed step by step, because the mess in the code and the need to rewrite the whole app from the scratch would probably lead to discontinue the project due to my laziness. :D

  3. Hi,

    I have recently begun discovering Visual Basic 2008 Express Edition. After I learned how to make classes and such, I've finally started to develop an experimental application.

    At the moment it can do nothing except displaying list of devices in system (and worse than the Device Manager so far), so basically it's not useful at all (yet). :rolleyes:

    How does it work?

    The program searches through registry keys like...


    ...to read, filter and store a list of device instances including some info.

    It means the program does not enumerate any devices by itself, just reads from registry, so in the future it shouldn't be a problem to display the devices' state for example from a damaged system of a different computer, after connecting its registry hive. B)

    Why am I doing this?

    1) I want to use this app for some service purposes (see long-term TODO list).

    2) I want to practice VB.NET and then try to make a bigger project or something.

    My weird problem is that I don't know how to name the application. :unsure: The names I thought up either already exist or I just didn't like them, so I'm asking you for suggestions. If you are willing to help, please look at the TODO list below to see what features are expected and know what the program is supposed to do.

    VB.NET 2008 apps require .NET 3.5 by default, but I compiled it to require just 2.0.

    0.1 TODO list:

    [#1] General: Name of the app!!! (required for release)

    [#2] General: Choose a license

    0.2 TODO list:

    [#3] Internal: Optimize ClassGUID loading

    [#4] Feature: Properties window (only devices for now)

    [#5] Feature: Log window (info, warnings and errors go here)

    [#6] UI: Icons for devices (depends on #3)

    Long-term TODO list:

    [#?] Major feature: Mount off-line registry hives (probably using REG.EXE)

    [#?] Major feature: Help to identify an unknown hardware (off-line XML database + on-line web search)

    [#?] Major feature: Ability to backup/export drivers (even from off-line damaged system, I hope)



    Executable (in 7z archive) is attached, if you want to try out.


  4. Hi MSFNers!

    Can anyone help with changing the default homepage in Nlite to other than the 3 options given?


    1) Go to Unattended page > RunOnce tab.

    2) Copy/paste following text, customize the highlighted string and add as command.

    REG.EXE ADD "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /t REG_SZ /d "http://www.homepage.net/" /f>nul

    3) Do not select Internet Explorer\Set Homepage tweak

  5. To revert the tweak, merge a *.REG file with this content:

    Windows Registry Editor Version 5.00



  6. If you enable "Show Advanced", "Enable" and "Disable" options appear in its branch.

    So I guess that nuhi forgot (or had an another reason) to make this object hidden (as well as "Allow receiving Remote Assistance").

  7. OK, there's a solution:

    If you want to edit registry defaults for new users in already installed system, run regedit.exe, click on the HKEY_USERS item, File menu, Load Hive..., open C:\Documents and Settings\Default User\NTUSER.DAT. Enter any key name, then browse to its Software\...\RunOnce subkey and create a required value there. Don't forget to unload the hive, before you exit the editor. (source)

    If you wish to add a command to nLited installation files, open the I386\NLITE.INF file (compessed by CAB) and to the [TO] section add an entry similar to a line containing "nltide_3" string (copy/paste/edit value name and value). To edit the NLITE.IN_ file, you may use this script.

  8. Hullo, I've had a look in that file and couldn't see any references to the missing documents folder in start menu.

    Try to search files containing text "NoRecentDocsMenu". Try to not to use Windows Explorer, it has a search bug.

    If you find it, make sure the value is 0.

    I'll dig out the original disk and try to make another iso from that.

    I recommend to do so. ;)

    Just to clarify - the best method is to create two separate sets of files. One the original disk, the other the new one, and copy the last session in from that?

    I meant it in this way, but I'm not sure, if it's the best method. :) Each nLite version is little different, so check all the options again anyway. (By "check" I mean "revise", not make all the checkboxes checked. :D)

    Often I find that I have about eight or nine last session files - all dated and properly stamped. Which should I copy over?

    You are expected to know it. Perhaps the newest one? ;)

  9. That's all kinda weird. You don't need to delete Last Session.ini. You should always use a clean installation and load the Last Session.ini file to make the most of your previous settings automatically selected before nLitement. :yes:

    It's because the nLite is under development and new versions could contain some bugfixes, solve some compatibility issues, etc. So if you are still "recycling" old installation source, old bugs have to be kept as well. Imho you're lucky that you have a problem only with the tweak. ;)

    nLite does not use nlhive.inf method to apply tweaks anymore, i.e. this file shouldn't be present. :whistle:

    Anyway, this file has a similar structure like nlite.inf, so just search for the values we were talking about in the posts above and delete the lines which contain them.

  10. I created the cmd file, ran it at the command line and edited the inf file. I also - to be sure - ensured the selection was unchecked within nlite itself.

    Unchecked selection in nLite does nothing - setting is written only if it's checked.

    If the selection is checked automatically, depends only on Last Session.ini.

    So if a setting is already applied in the installation, imho it shouldn't be removed this way (I guess).

    I don't know if it's useful at all, but despite the settings being correct in the NLITE.IN_ file, the registry still applies those entries. Removing them restores the doc menu item.
    I "recycle" (use the same cd/iso files for each alteration) the image, you see, so if the file is there it will be included in the next alteration.

    Do you mean that you're nliting already nlited installation? Do you have a nlhive.inf file present somewhere in your installation files?

    Odd settings also I've set the unattended setup desktop res to 800x600. That's not taking either...

    It has never worked for me, too. Did you integrate gpu driver?

  11. Hi, use makecab command to compress the file:


    Btw, I wrote a small CMD script which allows to edit NLITE.INF comfortably. Place it to a nlited windows installation directory and run. This will: make a backup of NLITE.IN_, extract the INF file, open it with Notepad and when you exit the Notepad, edited file will be compressed back. :thumbup B)

    @echo off & set workdir=
    if exist NLITE.IN_ set workdir=%CD%
    if exist I386\NLITE.IN_ set workdir=%CD%\I386
    if not defined workdir (
    echo NLITE.IN_ not found. & pause & goto :EOF )
    chdir /D "%workdir%"
    if not exist NLITE.BAK copy NLITE.IN_ NLITE.BAK
    if exist NLITE.INF del /F NLITE.INF
    expand.exe -r NLITE.IN_
    start /WAIT notepad.exe NLITE.INF
    del /F NLITE.IN_
    makecab.exe NLITE.INF
    if exist NLITE.IN_ del /F NLITE.INF

  12. The last character is a hyphen. I expected you to copy/paste the text directly to a file.

    I'm not sure if I understood the second sentence. Did you mean that recent documents menu item was not shown at all or it's content (a list of recently opened files) had been deleted? There's also a tweak which forces the recent docs list removal on each logoff. In that case this will disable it:

    Windows Registry Editor Version 5.00


  • Create New...