VBS based bootloader installer.

Discussion in 'Windows 7' started by nononsence, Aug 29, 2009.

  1. Rudi1

    Rudi1 MDL Member

    May 30, 2007
    208
    67
    10

    now the arhive it's fine :)
     
  2. saulob

    saulob MDL Novice

    Aug 16, 2009
    28
    0
    0
    Thanks. That's perfect.

    But just another question. Does it work on another language? Or just English versions?
     
  3. Cipher

    Cipher MDL Member

    May 31, 2008
    129
    37
    10
    Looks clean, lite and straight forward (how it should be). :)

    Is the boot process completely silent?
    Hence no additional text/messages displayed during boot.

    I have no need to try it for myself as I'm already modded, just wondering that's all.
     
  4. W0lfdale

    W0lfdale MDL Junior Member

    Aug 28, 2009
    80
    0
    0
    #24 W0lfdale, Aug 30, 2009
    Last edited by a moderator: Apr 20, 2017
    Hi NoNonSence,

    Nice script, I guess this is the right method to detect system volume using non-high level programming language.

    BTW, there is a logical error in the script that will make it not work on machines with System Reserved unmounted partitions.

    In the following piece of code:

    Code:
    'mount SystemVolume
    
    If isMounted = 0 Then
     For Each objVol in colVols
    If objVol.SystemVolume = True Then
    Wscript.Echo(" assigning letter " & TargetDrive & " to System Volume")
    objvol.DriveLetter = TargetDrive
    objVol.Put_
            End If
    Exit For
     Next
    End If
    
    Exit For should be inside the body of the If statement. Otherwise, if the first volume is not the system volume, the loop will exit after the first iteration before looping through the remaining volumes.

    PS: It'd be better to start versioning your script to make it easy to track the changes.

    Regards,
    W0lfdale
     
  5. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    #25 nononsence, Aug 30, 2009
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Thanks, if thats the only thing you could find Im pretty happy.
     
  6. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    I havent tested on any other languages, but I am assuming yes.
     
  7. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    fixed the bug found by user W0lfdale
     
  8. mgx

    mgx MDL Novice

    Jul 31, 2009
    29
    0
    0
    #28 mgx, Aug 30, 2009
    Last edited: Mar 12, 2020
    >
     
  9. Brandrune

    Brandrune MDL Addicted

    Jul 30, 2009
    528
    6
    30
    MegaUpload = The way to go!!!!
     
  10. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,770
    1,101
    60
    Dumb question, will the VBS read arguments from the self extracting exe.

    Install.exe /INSTALL

    Install.exe /UNINSTALL

    so that people can use in vLite Builds (setupcomplete.cmd)
     
  11. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    I dont think that any arguments will pass to the script from the exe
    look in run.bat to see how to call the install.vbs script.

    I think that if you put this in SetupComplete.cmd it will work
    you also might want to edit out all the Wscrip.Echo statements
    and the reboot dialog box if you want to run the script during
    install.

    cscript //NOLOGO //T:60 "%~dp0install.vbs" /install
     
  12. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    #32 nononsence, Sep 1, 2009
    Last edited by a moderator: Apr 20, 2017
    (OP)
  13. saulob

    saulob MDL Novice

    Aug 16, 2009
    28
    0
    0
    #33 saulob, Sep 1, 2009
    Last edited by a moderator: May 23, 2017