Jump to content

Yzöwl

Patron
  • Posts

    4,113
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Yzöwl

  1. I have found them to be a bit hit and miss in my tests too! On some systems they worked, on others not. I think it may be one of those programs which needs to be run first. I do not use the extensive list as given in this thread, just a small inf which mimics the actions set by the program gui association. After all I only really need to set some of the the normal text type extensions and include a couple of things such as .sif. When I double click a batch file, I prefer it to run not open in a text editor, and similar actions with reg files and the like. My best guess to make them work is to start the program, then kill it, then add the associations, in your routine. Incidentally, could someone tell me what an .nfo file is, I heard it mentioned many times, but don't recall ever needing to open one. From the associations it appears to be a Microsoft information type file.
  2. Have you tried this Start => Run => gpedit.msc => User Configuration => Administrative Templates => Windows Components => Windows Update. In the right pane, double click, Remove access to all Windows Update Features and set it to enabled
  3. okay, here's a little something to wet your appetite @echo off&setlocal enableextensions if '%1' equ '' echo You must provide a directory to work on! e.g. %~0 C:\MyDir&pause&goto :eof if not exist "%~1" echo The specified directory does not exist!&pause&goto :eof set subextns=WTA BHMM files for %%a in (%subextns%) do pushd %1&md "%~n1 - %%a"&popd endlocal&goto :eof
  4. I apologise for thinking that posting to the 'site and forum issues group' would be an opportunity for the site and forum people to deal with issues. Although I'm sure that no antagonism was meant from yourself, calling people 'dude', to me is a lack of disrespect. Also putting words into capitals to say that nothing is wrong, when there clearly is, as proven by many code boxes throughout the forum, does appear a little antagonistic. I'm sorry for wasting peoples precious time, and I will try not to post any further issues to you again.
  5. Using version 2.9 on my last install, the following worked flawlessly %SystemDrive%\install\NpPP\npp.2.9.Installer.exe /S
  6. Have you looked at the sticky at the head of this forum group!
  7. I could help with it although I am a little busy today! In the meantime, if you let me know how you want to do it, it would help. For instance, how do you want to tell it which folder, you are in or wish to work on etc.
  8. That wasn't supposed to be here! sorry
  9. Certainly, regarding a shareware application... I don't purchase software. I am in no financial circumstance where I could spend money on software. So I have to use other means unmentionable in these forums. <{POST_SNAPBACK}>
  10. So if i understand right: and means that there is nothing wrong!Also, does that mean that the writers of the forum software think that it's normal for a code box to not display code without converting characters and thereby completely changing the code contained within! I don't need to 'get out more', I asked a question and received a prompt reply, as quoted, which suggests that the problem was being looked at. I prompted again when, after a reasonable amount of time, (a month), no change had occured to the contrary of my understood initial reply. Should I have received an initial or even secondary reply from xper along the lines of, 'we are aware of this issue, but unfortunately, the matter lies with the forum software writers; they have been made aware of it and we hope for a solution in the near future' the thread would have ended there. Thank you
  11. I am yet to see anyone include Cygwin in their machine software listing! Jeremy sets an even better standard with his 'free' program which is less than the cost of couple of bottles of wine!
  12. I don't remember not seeing all of these here in the forums. Spend plenty of time reading the appropriate sections and you will find out all you need. There is a search function too, for when you need to look for the more specific stuff!
  13. If your happy with it then that's great. Just one warning though, make sure that you use the correct batch with the appropriate installation. Because there in no error trap in the code, if no tagfile is found, you will have something like zp added to the User Shell Folders data. <Edit> One easy way to get around this possibility is to create a single batch using set tagfile=%UserName%.docs Then you can create a tagfile with each specific User Name in the root of their My Documents folders. i.e. Paul.docs, Jon.docs, general user.docs, Administrator.docs etc. </Edit>
  14. goto :eof is acting in a similar manner to exit! Another, neater way of doing it would be to remove the last character using a substitution method similar to before @echo off set tagfile=my.docs for %%d in (c d e f g h i j k l m n o p q r s t u v w x y z) do ( if exist %%d:\nul ( pushd "%%d:\" for /f "usebackq delims==" %%i in (`dir /s /b %tagfile% ^2^>nul`) do ( set docsfolder=%%~dpi ) popd ) ) set mydocs=%docsfolder:~0,-1% reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /d "%mydocs%" /f >nul goto :eof
  15. No it doesn't , the only thing required is the trailing backslash full stop! The reason you have been using carets to escape is because the trailing backslash is acting as an escape character for the final quotation mark. you can get rid of the backslash using variable expansion and substitution, because you already know the tagfile name you could use something like the following @echo off set tagfile=my.docs for %%d in (c d e f g h i j k l m n o p q r s t u v w x y z) do ( if exist %%d:\nul ( pushd "%%d:\" for /f "usebackq delims==" %%i in (`dir /s /b %tagfile% ^2^>nul`) do ( set docsfolder=%%i ) popd ) ) set docsfolder=%docsfolder:\my.docs=% reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /d "%docsfolder%" /f >nul goto :eofMy example is setting docsfolder to %%i I:\My Documents\my.docs then later expands it and substitutes \my.docs with nothing, hence leaving I:\My Documents
  16. First of all, you do not need to add anything to the shell folders key, only the user shell folders key. The shell folders key is updated from the value in the user shell folders key. Also as your location does not contain any variables, there is no benefit in setting your data as REG_EXPAND, because there is nothing to expand. Another thing you can do is to get rid of the echoing to the screen, they are not needed in an unattended install. The following example will show you what you should have at present @echo off set TAGFILE=my.docs FOR %%D IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO ( IF EXIST %%D:\NUL ( pushd "%%D:\" FOR /F "USEBACKQ DELIMS==" %%I IN (`DIR /S /B %TAGFILE% ^2^>nul`) DO ( REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /d "%%~dpI" /f >nul ) popd ) ) EXITYour only problem now is to get rid of the single trailing backslash, in the %%~dpI variable.
  17. It is looking for a folder name ending with Documents, and checking for the current user name inside the desktop.ini file. It will therefore not work if the 'Documents' folder name has been changed, the logged in user name has changed or the desktop.ini file doesn't exist. Also because the desktop.ini file section containing your 'Owner' name is a special file, if you copy it, all that information is removed. It is in a section labelled [DeleteOnCopy], which as you understand removes it on copy. On your other question, yes you can remove the trailing backslash in the batch. Post your existing working batch and I'll try to guide you. However, in reg.exe format, you do not need to escape a backslash with another, you only need a single one!
  18. Yes it can be done through a batch, you would of course need to change the attributes of the file to not hidden first and return it to hidden later. I thought that the folder was named My Documents only to the currently logged in owner. In the mean time, here is a test version using the technique I mentioned near the start of the thread, here. It will not write anything to the registry. All it should do, if it works, is to show you the line it would add to the registry on the screen. It can just be run now, not in an unattended setup. like I said its only a test, therefore if anyone with a redirected My Documents folder want to try it, please feel free and let me know if it worked! tryit.rar
  19. The Start Menu is not a directory, it is simply a launcher using shortcuts! You do not create a shortcut to My Documents, it already exists. You simply enable it by right clicking on the menu, selecting properties, start menu tab, customise, advanced and putting a tick in the appropriate box. For the My Documents you will have options basically allowing you to open it in an explorer window - Link open it as a sub menu - Menu
  20. My mistake, I had not noticed that you were running your start.cmd after logon, i.e. at GUIRunOnce. The reason I didn't is because if you don't change the account name for the Administrator, before it logs on, the Profile folder for NewName will still be called Administrator. Making the change at some point up to and including cmdlines.txt would prevent this profile folder name difference.
  21. If you read the section Applications that use Quotations in the RunOnceEx section of the Unattended CD/DVD Guide, you would probably find that something along these lines would be more correct. REG ADD %KEY%\065 /V 1 /D "\\Srv_2\installs\Business_Apps\MSOffice2003\SETUP.EXE TRANSFORMS=\"\\Srv_2\installs\Business_Apps\MSOffice2003\THA Standard.MST\" /qb-" /f
  22. Svcpack.inf runs its commands at the T13 stage of the install, at that time, the registry can be edited using a standard .reg file.
  23. Yes, runonceex.cmd is a batch file!
  24. It's probably becuase the AutoLogon referred to a username which no longer exists!
  25. For an unattended CD you could look up UnattendSwitch here, or alternatively read this!. Now I know you're suggesting it's not an unattended cd, but if its an OEM version, it will be likely based around a similar idea.
×
×
  • Create New...