inno setup打包获取用户更改的目录

qq_25044889 2015-01-13 09:31:41
用的inno setup打包程序,用户更改了目录,怎么获取用户的目录


就是获取这个目录。。。用inno setup 获取
...全文
1499 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
迷斯特z 2016-01-25
  • 打赏
  • 举报
回复
{app}就是你安装目录
qq_25044889 2015-01-13
  • 打赏
  • 举报
回复
这个不是C++ 的把?? 这个用inno setup打包程序的
赵4老师 2015-01-13
  • 打赏
  • 举报
回复
GetModuleFileName The GetModuleFileName function retrieves the full path and filename for the executable file containing the specified module. Windows 95: The GetModuleFilename function will return long filenames when an application's version number is greater than or equal to 4.00 and the long filename is available. Otherwise, it returns only 8.3 format filenames. DWORD GetModuleFileName( HMODULE hModule, // handle to module to find filename for LPTSTR lpFilename, // pointer to buffer to receive module path DWORD nSize // size of buffer, in characters ); Parameters hModule Handle to the module whose executable filename is being requested. If this parameter is NULL, GetModuleFileName returns the path for the file used to create the calling process. lpFilename Pointer to a buffer that is filled in with the path and filename of the given module. nSize Specifies the length, in characters, of the lpFilename buffer. If the length of the path and filename exceeds this limit, the string is truncated. Return Values If the function succeeds, the return value is the length, in characters, of the string copied to the buffer. If the function fails, the return value is zero. To get extended error information, call GetLastError. Remarks If a module is loaded in two processes, its module filename in one process may differ in case from its module filename in the other process. QuickInfo Windows NT: Requires version 3.1 or later. Windows: Requires Windows 95 or later. Windows CE: Unsupported. Header: Declared in winbase.h. Import Library: Use kernel32.lib. Unicode: Implemented as Unicode and ANSI versions on Windows NT. See Also Dynamic-Link Libraries Overview, Dynamic-Link Library Functions, GetModuleHandle, LoadLibrary
qq_25044889 2015-01-13
  • 打赏
  • 举报
回复
新手啊。。求大神。。写code段的代码。。。
qq_25044889 2015-01-13
  • 打赏
  • 举报
回复
怎么没人啊。。。

4,008

社区成员

发帖
与我相关
我的任务
社区描述
它是一种微软环境下的轻量级的解释型语言,它使用COM组件、WMI、WSH、ADSI访问系统中的元素,对系统进行管理。
社区管理员
  • vbScript社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧