vthand Posted November 8, 2012 Share Posted November 8, 2012 hello,Sorry, i'm French...I try to put files in " My documents ", with the tab " Advance " "Files"What is the syntax?I try :%SystemDrive%\%userprofile%\test.doc but the file is in C:\%userprofile% !Thanks.Vincent. Quote Link to comment Share on other sites More sharing options...
Thiersee Posted November 8, 2012 Share Posted November 8, 2012 (edited) C:\ IS the SystemDrive!You have to specify the complete path, i.e.%SystemDrive%\%userprofile%\User\MyDocuments\test.docThiersee Edited November 8, 2012 by Thiersee Quote Link to comment Share on other sites More sharing options...
myselfidem Posted November 8, 2012 Share Posted November 8, 2012 If you have a localized Windows 7 french version, have you tried ?:%userprofile%\Mes documents\test.doc Quote Link to comment Share on other sites More sharing options...
Thiersee Posted November 8, 2012 Share Posted November 8, 2012 The folder "My Documents" (or Mes Documents) will be not generated during install, only after the first log-on!So you have to put a command in the AutoUnattend.xml (if you use one), that executes after the first log-on.Same happened to me as I wanted to put files in program folders of programs I installed as "Silent Installers-SFX. Quote Link to comment Share on other sites More sharing options...
myselfidem Posted November 8, 2012 Share Posted November 8, 2012 Yes, that right! Quote Link to comment Share on other sites More sharing options...
vthand Posted November 8, 2012 Author Share Posted November 8, 2012 Thanks to all.Il will try tomorrow morning.I've tried many things like :%userprofile%\Mes documents\test.doc and (%userprofile%\"Mes documents"\test.doc).The only thing who worked was : %SystemDrive%\Installation\test.doc ( The folder "Installation" is created).Good night? Quote Link to comment Share on other sites More sharing options...
Thiersee Posted November 8, 2012 Share Posted November 8, 2012 ...The only thing who worked was : %SystemDrive%\Installation\test.doc ( The folder "Installation" is created)......If this works, then try what I said in my 1st post and specify the complete path:%SystemDrive%\User\My Documents\test.doc or%SystemDrive%\<user in french>\Mes documents"\test.doc.Thiersee Quote Link to comment Share on other sites More sharing options...
vthand Posted November 9, 2012 Author Share Posted November 9, 2012 Good morning (?)So...test1http://dl.free.fr/q6nawW5IUResult 1http://dl.free.fr/tK9QAKoooThe file test.txt is in the 2 folders: Administrateur and My documents, but not in the Documents of the user nedd during installation (Vincent). If i try "Administateur" during the installation, it's not allowed.I think Thiersee has right "will be not generated during install, only after the first log-on!" and it's impossible to put file into during install.I think %userprofile% make same result. Quote Link to comment Share on other sites More sharing options...
Thiersee Posted November 9, 2012 Share Posted November 9, 2012 Links are not working... Quote Link to comment Share on other sites More sharing options...
alfreire Posted November 9, 2012 Share Posted November 9, 2012 Try %USERPROFILE%\Documents\test.docRegards... ;-) Quote Link to comment Share on other sites More sharing options...
myselfidem Posted November 9, 2012 Share Posted November 9, 2012 (edited) When the image is mounted your account doesn't exist!But you can try:Copy to: %SystemDrive%\Users\Vincent\Mes documents\test.docThe User: "Vincent" will be created and the file test.doc will be copied...But I don't know if this will be overwrited during silent installation. Not tested! Edited November 9, 2012 by myselfidem Quote Link to comment Share on other sites More sharing options...
vthand Posted November 9, 2012 Author Share Posted November 9, 2012 Hello,1)Links are working for me ???2)I'll try %USERPROFILE%\Documents\test.doc but i know result: test.doc in "users" and not in Vincent\Documents ... 3)I think i've tried %SystemDrive%\Users\Vincent\Mes documents\test.docand the result ave been : test.doc in Vincent.000\Mes documents !!!4)What is the format allowed for the image in this forum. I've tried .jpg and .png and it does'nt work. Quote Link to comment Share on other sites More sharing options...
vthand Posted November 9, 2012 Author Share Posted November 9, 2012 (edited) The path must begin by %systemdrive% or %systemroot% ....1)test withhttp://dl.free.fr/iPSFKfv1M2)Resultsin a few minutes Edited November 9, 2012 by vthand Quote Link to comment Share on other sites More sharing options...
myselfidem Posted November 9, 2012 Share Posted November 9, 2012 %USERPROFILE%\Documents\test.doc What is the format allowed for the image in this forum. I've tried .jpg and .png and it does'nt work.Using %userprofile% path doesn't work and the folder %userprofile% will be copied inside WinToolkit140-77You can use gif files format to post images inside the forum. Thanks. Quote Link to comment Share on other sites More sharing options...
vthand Posted November 9, 2012 Author Share Posted November 9, 2012 Sorry, i can't post image"You are not allowed to use that image extension on this community." I use gif...1)test withhttp://dl.free.fr/deceGTle02)Resultshttp://dl.free.fr/rhMDFzZZUA folder %userprofile% has been created, with Documents\test.doc inside...and test.doc is also in Vincent\Mes documentsbut the default user is now ... Vincent.Vincent-PCI think that i will put the files in Users\Vincent and move them after the first login.Thanks (thanx ?) to allVincent. Quote Link to comment Share on other sites More sharing options...
myselfidem Posted November 9, 2012 Share Posted November 9, 2012 (edited) Strange about adding images, because I can attach jpg, PNG and gif images format.Maybe you need to check the size for downloading the images (150K max.) using full editor or more options and select an image on your computer?Of course, don't change manually the extension format! Edited November 9, 2012 by myselfidem Quote Link to comment Share on other sites More sharing options...
Thiersee Posted November 9, 2012 Share Posted November 9, 2012 Today I tried to install a file as you want and found out, it seems to be NOT possible.I had this line in the .INI%SystemDrive%\Users\Filetest\xyz.jpg (Users ist right, NOT simply User, for french or other languages too!) andI let the AutoUnattend.xml generate a user Filetest.I integrated on a fresh W7 SP1 and installed on a VM; after installation under "Benutzer" (german for "user") I got a folder "Filelist" with the file xyz.jpg in it.I logged out from Admin and logged in "Filelist": under "Benutzer" was the folder with the file and another folder Filelist.<computername>What does it mean all this?You can not put a file in an userprofile-folder in this way, I think you have to put it manually after the first login on this specific user. Quote Link to comment Share on other sites More sharing options...
myselfidem Posted November 9, 2012 Share Posted November 9, 2012 (edited) What does it mean all this?You can not put a file in an userprofile-folder in this way, I think you have to put it manually after the first login on this specific user.This is now demonstrated. Thanks Thiersee and vthand for your tests! Edited November 9, 2012 by myselfidem Quote Link to comment Share on other sites More sharing options...
bphlpt Posted November 10, 2012 Share Posted November 10, 2012 A way that might work is if you have the user's Documents folder be relocated to somewhere outside the normal profile location, say "D:\Docs". Then you can preload whatever you want to in there and you will also not have to worry about extraneous "Vincent.000" type folders being created in the Profiles folder. I do this all the time, (relocate the various user's folders), so that the data survives an OS reinstall. Just another way to skin the cat.Cheers and Regards Quote Link to comment Share on other sites More sharing options...
Sofliberty Posted December 1, 2012 Share Posted December 1, 2012 Have you tried putting the textfile in\Sources\$OEM$\$1\users\Default\Documents\test.txtof the installation media?i use "\Sources\$OEM$\$1\users\Default\Desktop\installinfo.txt" to have an text that ends up on all new users desktop Quote Link to comment Share on other sites More sharing options...
ElmerBeFuddled Posted December 2, 2012 Share Posted December 2, 2012 I run a batch file separately to the WinToolkit for dropping folders into the "system" so that are in there when I first boot. I use these for customised icon files (,dll), personal files etc.I make a "path" of folders to drop in, e.g. Users Folder > Elmer B. Fuddled Folder > Elmers Docs folder. or Windows Folder > System32 Folder > AALMER.When I drop these in the extracted image folder I get asked "This folder already exists..." etc. and I just answer "Yes to All". The final or base folder and its contents are then in the right place for when I first log in.The batch file runs a clean up (just in case!) then opens each image one at a time and pauses for you to drop your files and folders in.At the end it will run the clean up again. The clean up consists of discarding anything, which shouldn't happen unless you close the command window in error (been there, done that!) and also runs a reg file to remove the registry entry.Obviously if you've not cocked up at all you won't even know the clean up attempt has taken place. Also, until you cock up the WIM_Deafault key isn't there (it may be while the bat file is running, never checked it out!!).You'll need to change the file paths in the bat file, these are my paths!!Wim Corrupt - Delete.reg--------------------------------------------------------------------------------------Windows Registry Editor Version 5.00[-HKEY_USERS\S-1-5-xx- Insert your user path here. \WIM_Default]--------------------------------------------------------------------------------------Slip Folders.bat@echo offREM E:\WINSLIP\IE9-Windows7-x64-enu.exe /x:E:\WINSLIP\IE9Win7x64ENUcolor 4FDism /Unmount-WIM /MountDir:E:\WINSLIP\Mount /discardRegedit /s "E:\WINSLIP\WIM Corrupt - Delete.reg"color 1FclsDism /Mount-Wim /WimFile:"E:\WINSLIP\install.wim" /index:1 /MountDir:E:\WINSLIP\Mountclsecho.echo.color 2Fecho.echo.echo THIS IS IMAGE INDEX 1, HOME BASIC.echo.echo. ADD ANY FOLDERS AND FILES NOW!!echo.echo.pauseclscolor 1FDism /Unmount-WIM /MountDir:E:\WINSLIP\Mount /CommitDism /Mount-Wim /WimFile:"E:\WINSLIP\install.wim" /index:2 /MountDir:E:\WINSLIP\Mountclsecho.echo.color 2Fecho.echo.echo THIS IS IMAGE INDEX 2, HOME PREMIUM.echo.echo ADD ANY FOLDERS AND FILES NOW!!echo.echo.Pauseclscolor 1FDism /Unmount-WIM /MountDir:E:\WINSLIP\Mount /CommitDism /Mount-Wim /WimFile:"E:\WINSLIP\install.wim" /index:3 /MountDir:E:\WINSLIP\Mountclsecho.echo.color 2Fecho.echo.echo THIS IS IMAGE INDEX 3, PROFESSIONAL.echo.echo ADD ANY FOLDERS AND FILES NOW!!echo.echo.Pauseclscolor 1FDism /Unmount-WIM /MountDir:E:\WINSLIP\Mount /CommitDism /Mount-Wim /WimFile:"E:\WINSLIP\install.wim" /index:4 /MountDir:E:\WINSLIP\Mountclsecho.echo.color 2Fecho.echo.echo THIS IS IMAGE INDEX 4, ULTIMATE.echo.echo ADD ANY FOLDERS AND FILES NOW!!echo.echo.Pauseclscolor 1FDism /Unmount-WIM /MountDir:E:\WINSLIP\Mount /Commitclsecho.echo.color 2Fecho.echo.echo.echo FINISHED!! echo.echo.ping localhost -n 8 >nulcolor 4FDism /Unmount-WIM /MountDir:E:\WINSLIP\Mount /discardcolor 1FRegedit /s "E:\WINSLIP\WIM Corrupt - Delete.reg"exitHope that's of use to somebody! Quote Link to comment Share on other sites More sharing options...
vthand Posted December 3, 2012 Author Share Posted December 3, 2012 Good morningI'm french ... so I think that I am going to print and to translate before being able to make out a will(test).Thank you. I shall inform of the result(profit).Good day Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.