comparison src/dosinst.c @ 5454:53bc55e58fef v7.4.077

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.
author Bram Moolenaar <bram@vim.org>
date Thu, 07 Nov 2013 04:49:27 +0100
parents 04736b4030ec
children 4db151014f93
comparison
equal deleted inserted replaced
5453:6bc8d3dbe23f 5454:53bc55e58fef
1771 executable_path, args, workingdir); 1771 executable_path, args, workingdir);
1772 } 1772 }
1773 1773
1774 /* 1774 /*
1775 * We used to use "homedir" as the working directory, but that is a bad choice 1775 * We used to use "homedir" as the working directory, but that is a bad choice
1776 * on multi-user systems. Not specifying a directory appears to work best. 1776 * on multi-user systems. However, not specifying a directory results in the
1777 */ 1777 * current directory to be c:\Windows\system32 on Windows 7. Use environment
1778 #define WORKDIR "" 1778 * variables instead.
1779 */
1780 #define WORKDIR "%HOMEDRIVE%%HOMEPATH%"
1779 1781
1780 /* 1782 /*
1781 * Create shortcut(s) in the Start Menu\Programs\Vim folder. 1783 * Create shortcut(s) in the Start Menu\Programs\Vim folder.
1782 */ 1784 */
1783 static void 1785 static void