Собираюсь писать свой инсталятор на C++ под NT''шные Windows
Пользователи, просматривающие топик: none
|
Зашли как: Guest
|
Имя |
Сообщение |
<< Старые топики Новые топики >> |
|
|
Собираюсь писать свой инсталятор на C++ под NT''шные Windows - 2004-05-03 21:47:50
|
|
|
eug-rus
Сообщений: 2
Оценки: 0
Присоединился: 2004-05-03 21:03:52
|
Хотелось бы узнать как относительно прописать путь к общему главному меню, к главному меню запустившего пользователя, к корню диска где находится %windir%
|
|
|
Собираюсь писать свой инсталятор на C++ под NT''шные Windows - 2004-05-04 15:49:31
|
|
|
_eugrus
Сообщений: 174
Оценки: 0
Присоединился: 2004-05-04 15:44:59
|
Или может хотябы какие-ни будь функции API есть? Просто MSDN у меня нету.
|
|
|
Собираюсь писать свой инсталятор на C++ под NT''шные Windows - 2004-05-04 16:38:07
|
|
|
_eugrus
Сообщений: 174
Оценки: 0
Присоединился: 2004-05-04 15:44:59
|
—————- Цитата: Дата:04.05.2004 16:13:15, Автор:Yanis :: MSDN есть у всех
http://msdn.microsoft.com
посмотри тут:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mslu/winprog/unicode_layer_system_information_functions.asp
тебе по идее нужны функции типа: System Information —————-
Фр спасибо но функции для получения католога главного меню я не нашол А точно для этого относительных путей не предусмотрено?
|
|
|
Собираюсь писать свой инсталятор на C++ под NT''шные Windows - 2004-05-04 23:59:18
|
|
|
Yanis
Сообщений: 63
Оценки: 0
Присоединился: 2004-04-19 00:32:13
|
Возьми тут: http://actualsoft.narod.ru/files/delphi/ShellFoldersReader.rar
Там есть.
|
|
|
Собираюсь писать свой инсталятор на C++ под NT''шные Windows - 2004-08-13 13:55:33
|
|
|
_vitusik
Сообщений: 31
Оценки: 0
Присоединился: 2004-08-04 12:35:32
|
Вот то что тебе нужна и msdn не юзал[sm=1.gif] [Now Supported on Windows NT]
Retrieves the location of a special folder.
WINSHELLAPI HRESULT WINAPI SHGetSpecialFolderLocation(;
HWND hwndOwner, int nFolder, LPITEMIDLIST *ppidl );
Parameters
hwndOwner
Handle of the owner window that the client should specify if it displays a dialog box or message box.
nFolder
Value specifying the folder to retrieve the location of. This parameter can be one of the following values:
CSIDL_BITBUCKET Recycle bin ¾ file system directory containing file objects in the user's recycle bin. The location of this directory is not in the registry; it is marked with the hidden and system attributes to prevent the user from moving or deleting it. CSIDL_CONTROLS Control Panel ¾ virtual folder containing icons for the control panel applications. CSIDL_DESKTOP Windows desktop ¾ virtual folder at the root of the name space. CSIDL_DESKTOPDIRECTORY File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself). CSIDL_DRIVES My Computer ¾ virtual folder containing everything on the local computer: storage devices, printers, and Control Panel. The folder may also contain mapped network drives. CSIDL_FONTS Virtual folder containing fonts. CSIDL_NETHOOD File system directory containing objects that appear in the network neighborhood. CSIDL_NETWORK Network Neighborhood ¾ virtual folder representing the top level of the network hierarchy. CSIDL_PERSONAL File system directory that serves as a common respository for documents. CSIDL_PRINTERS Printers folder ¾ virtual folder containing installed printers. CSIDL_PROGRAMS File system directory that contains the user's program groups (which are also file system directories). CSIDL_RECENT File system directory that contains the user's most recently used documents. CSIDL_SENDTO File system directory that contains Send To menu items. CSIDL_STARTMENU File system directory containing Start menu items. CSIDL_STARTUP File system directory that corresponds to the user's Startup program group. CSIDL_TEMPLATES File system directory that serves as a common repository for document templates.
ppidl
Address that receives a pointer to an item identifier list specifying the folder's location relative to the root of the name space (the desktop).
Return Values
Returns NOERROR if successful or an OLE-defined error result otherwise.
|
|
|
Собираюсь писать свой инсталятор на C++ под NT''шные Windows - 2004-09-21 21:13:43
|
|
|
_eugrus
Сообщений: 174
Оценки: 0
Присоединился: 2004-05-04 15:44:59
|
кстати я тогда нашол решение проще с переменной %HOMEPATH% как и хотел…
|
|
|
|
|