MSFN Forum: another dumb inf question - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

another dumb inf question Rate Topic: -----

#1 User is offline   miko 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 302
  • Joined: 23-January 05

Posted 08 October 2005 - 06:58 PM

another dumb inf question :blushing: (before i go to bed)

how would you reference 'My documents' location (taking into acount it could be anywhere) in a windows 98SE inf file ? (i'm taking it that the XP DIRIDs don't work)


#2 User is offline   thespin 

  • Group: Members
  • Posts: 6
  • Joined: 05-October 05

Posted 08 October 2005 - 09:50 PM

View Postmiko, on Oct 8 2005, 08:58 PM, said:

another dumb inf question :blushing: (before i go to bed)

how would you reference 'My documents' location (taking into acount it could be anywhere) in a windows 98SE inf file ? (i'm taking it that the XP DIRIDs don't work)

Click on start/search/files and folders. Enter 'documents' and awaaay you go ...

#3 User is offline   eidenk 

  • MSFN Addict
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,527
  • Joined: 28-March 05

Posted 08 October 2005 - 10:03 PM

CSIDL_PERSONAL is used to get the location of My Documents programatically. Dunno if it's of any use in infs.

#4 User is offline   miko 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 302
  • Joined: 23-January 05

Posted 09 October 2005 - 10:28 AM

View Postthespin, on Oct 8 2005, 09:50 PM, said:

Click on start/search/files and folders. Enter 'documents' and awaaay you go ...

:blink:

Quote

; Common DIRID Listing,
;
; Destination Directories
;
; 01 - SourceDrive:\pathname (the directory from which the INF file was installed)
; 10 - Windows directory (%SystemRoot%)
; 11 - System directory (%SystemRoot%\system32 -NT-, %SystemRoot%\system -Win9x/Me-)
; 12 - Drivers directory (%SystemRoot%\system32\drivers -NT-, %SystemRoot%\system\IoSubsys -Win9x/Me-)
; 17 - INF file directory (%SystemRoot%\inf)
; 18 - Help directory (%SystemRoot%\Help)
; 20 - Fonts directory (%SystemRoot%\Fonts)
; 24 - Root directory of system disk (%SystemDrive%)
; 25 - Shared directory (%ALLUSERSPROFILE%\Shared Documents)
; 53 - User profile directory (%USERPROFILE%)
;
; Shell Special Folders
;
; 16419 %ALLUSERSPROFILE%\Application Data
; 16409 %ALLUSERSPROFILE%\Desktop
; 16430 %ALLUSERSPROFILE%\Documents
; 16437 %ALLUSERSPROFILE%\Documents\My Music
; 16438 %ALLUSERSPROFILE%\Documents\My Pictures
; 16439 %ALLUSERSPROFILE%\Documents\My Videos
; 16415 %ALLUSERSPROFILE%\Favorites
; 16406 %ALLUSERSPROFILE%\Start Menu
; 16407 %ALLUSERSPROFILE%\Start Menu\Programs
; 16431 %ALLUSERSPROFILE%\Start Menu\Programs\Administrative Tools
; 16408 %ALLUSERSPROFILE%\Start Menu\Programs\Startup
; 16429 %ALLUSERSPROFILE%\Templates
; 16410 %USERPROFILE%\Application Data
; 16417 %USERPROFILE%\Cookies
; 16384 %USERPROFILE%\Desktop
; 16400 %USERPROFILE%\Desktop
; 16390 %USERPROFILE%\Favorites
; 16412 %USERPROFILE%\Local Settings\Application Data
; 16443 %USERPROFILE%\Local Settings\Application Data\Microsoft\CD Burning
; 16418 %USERPROFILE%\Local Settings\History
; 16416 %USERPROFILE%\Local Settings\Temporary Internet Files
; 16389 %USERPROFILE%\My Documents
; 16397 %USERPROFILE%\My Documents\My Music
; 16423 %USERPROFILE%\My Documents\My Pictures
; 16398 %USERPROFILE%\My Documents\My Videos
; 16403 %USERPROFILE%\NetHood
; 16411 %USERPROFILE%\PrintHood
; 16392 %USERPROFILE%\Recent
; 16393 %USERPROFILE%\SendTo
; 16395 %USERPROFILE%\Start Menu
; 16386 %USERPROFILE%\Start Menu\Programs
; 16432 %USERPROFILE%\Start Menu\Programs\Administrative Tools
; 16391 %USERPROFILE%\Start Menu\Programs\Startup
; 16405 %USERPROFILE%\Templates
; 16422 %ProgramFiles%
; 16427 %ProgramFiles%\Common Files
; 16440 %SystemRoot%\Resources
; 16441 %SystemRoot%\Resources\0409
;
; e.g.
; For shortcut in users Quick Launch toolbar,
; "%16410%\Microsoft\Internet Explorer\Quick Launch\"


is the info i got, but i don't think most of it applys to 98SE
what i want to do is place folders into My Documents and muck about with the desktop.inis during the install of the project i'm working on, i'm pretty sure i know now how to do what i want to do with the singular exception of referencing "My Documents" itself with a DIRID (or via an alternative method (reading the registry ?))

#5 User is offline   miko 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 302
  • Joined: 23-January 05

Posted 09 October 2005 - 11:24 AM

CustomDestination !

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders !

DUH! :blushing: :blushing: :blushing:

oh well, i live and learn...

This post has been edited by miko: 09 October 2005 - 11:39 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy