updated for version 7.4.077
Problem: DOS installer creates shortcut without a path, resulting in the
current directory to be C:\Windows\system32.
Solution: Use environment variables.
diff --git a/src/dosinst.c b/src/dosinst.c
index 3c5e59b..3fbfb5c 100644
--- a/src/dosinst.c
+++ b/src/dosinst.c
@@ -1773,9 +1773,11 @@
/*
* We used to use "homedir" as the working directory, but that is a bad choice
- * on multi-user systems. Not specifying a directory appears to work best.
+ * on multi-user systems. However, not specifying a directory results in the
+ * current directory to be c:\Windows\system32 on Windows 7. Use environment
+ * variables instead.
*/
-#define WORKDIR ""
+#define WORKDIR "%HOMEDRIVE%%HOMEPATH%"
/*
* Create shortcut(s) in the Start Menu\Programs\Vim folder.