Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add mount.vbs to the win32 distribution, update README.win32 accordingly

  • Loading branch information...
commit 24216a52e15cbbcca71d12f84b0ad088895c3888 1 parent 9b82b6d
David Mohr authored
Showing with 8 additions and 5 deletions.
  1. +5 −3 README.win32
  2. +1 −1  win32/mount.vbs
  3. +2 −1  win32/win32-installer.nsi
8 README.win32
@@ -15,9 +15,11 @@ broke grub-choose-default until the shadow file was manually removed.
Unfortunately Ext2IFS does not work well under Windows 7. Although it can be
installed by running the installer in Windows Vista compatability mode, it
forgets the drive letter assignments after every reboot. As a workaround you
-can let grub-choose-default mount the partition for you. Adjust the "mount.vbs"
-script provided in the "win32" directory and place it in the configuration
-directory mentioned below. It will be automatically executed if present.
+can let grub-choose-default mount the partition for you. Rename the
+"mount.vbs.example" script in the configuration directory mentioned below to
+"mount.vbs" and adjust it according to the comments in that file. It is a
+simple process that just requires one command line. "mount.vbs" will be
+automatically executed if present.
Once grub's directory is available under Windows, grub-choose-default should
automatically find it by probing all available Windows drive letters.
2  win32/mount.vbs
@@ -27,4 +27,4 @@ strArguments = "l: \\?\Volume{fe0e4803-7a3f-11df-bef1-001676bc6680}\"
objShell.ShellExecute strApplication, strArguments, "", "runas"
' We need to sleep here because Windows takes a moment to
' make the drive available
-WScript.Sleep 2000
+WScript.Sleep 1500
3  win32/win32-installer.nsi
@@ -34,7 +34,7 @@ SetCompressor lzma
# Script version; displayed when running the installer
# grub-choose-default program information
!define PROGRAM_NAME "grub-choose-default"
@@ -145,6 +145,7 @@ Section "grub-choose-default" Section1
File "grub-choose-default.ico"
SetOutPath $APPDATA\grub-choose-default
+ File /oname=mount.vbs.example "mount.vbs"
SetOverwrite off
File /oname=reboot.vbs "..\reboot\windows.vbs"
SetOverwrite lastused

0 comments on commit 24216a5

Please sign in to comment.
Something went wrong with that request. Please try again.