Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
Windows XP - registary - Title Bar - Full Address
Yzöwl replied to blahface's topic in Windows Tips 'n' Tweaks
Excellent an inf solution! I've tidied it a little to my own taste: [Version] Signature = $Windows NT$ [DefaultInstall] AddReg = Reg.Add BitReg = Reg.Bit [Reg.Add] HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState,FullPath,\ 0x10001,1 [Reg.Bit] HKCU,Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState,Settings,\ 1,0x1,4I must congratulate r3incarnat0r however for using an appropriate solution, often we get cmd or reg or even inf solutions which are less efficient than other methods. -
also for now... Because the variables are set with trailing backslashes all the paths using them look like this \\ instead of this \. There are several pointless trailing backslashes added to many of the locations too. A trailing backslash in a batch file can be used as an escape character if preceding a double quote! Why take a slice of bread from a loaf and throw it away, then throw out the whole loaf, when you can just throw the loaf? (Why xcopy - delete - remove) Why xcopy - delete anyway, when a move will do! Why the /E switch and in many cases the /I switch in the xcopy commands? I find it strange that there is a folder called "<space>DISK"
-
Something strikes me as a little odd here! Why install to 2 OFFICE 3 SECURITY 4 SYSTEM 8 VIDEO and then move from and delete those program groups Just change whatever you used to install the shortcuts there in the first place to the locations you now require.
-
Well, if you really are using: for a company name then that'll be your problem. The cmd interpreter will need your pipe symbol escaping:
-
Download and try:AutoIt v3.2.2.0
-
Oops, I made a little error too! I forgot about the same unwanted code changes made by the forum software as already mentioned earlier in the thread. Its fixed in the previous post, but basically for any onlookers, what was happeninig was the following output REG ADD %KEY /V REG ADD %KEY%01 /V REG ADD %KEY%02 /V REG ADD %KEY%03 /Vinstead of REG ADD %KEY%\000 /V REG ADD %KEY%\001 /V REG ADD %KEY%\002 /V REG ADD %KEY%\003 /Vgo figure...
-
First of all I hope that isn't a genuine serial number for Nero in your attachment. Secondly at lines 14 to 36 (incl), change: to: <Edit> If you prefer, I have included an example, which should correct the majority of your problems! @SETLOCAL @FOR %%? IN (CMDOW.EXE) DO @IF "%%~$PATH:?" NEQ "" (@%%~$PATH:? @ /HID) ELSE ( @ECHO OFF &SET "_=^>NUL") SET "PP=%SYSTEMDRIVE%\INSTALL" SET "KEY=HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUNONCEEX" REG ADD %KEY% /V TITLE /D "Installing Applications"%_% REG ADD %KEY%\000 /VE /D "Symantec AntiVirus Corporate"%_% REG ADD %KEY%\000 /V 1 /D "%PP%\SAV\SAV.msi /QB!- RUNLIVEUPDATE=0 RUNSCAN=0 SYMPROTECTDISABLED=0 ADDLOCAL=SAVMain,SAVUI,SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient"%_% REG ADD %KEY%\001 /VE /D "Updating Symantec AntiVirus"%_% REG ADD %KEY%\001 /V 1 /D "\"%PROGRAMFILES%\SYMANTEC ANTIVIRUS\VPDN_LU.EXE\" /S"%_% REG ADD %KEY%\002 /VE /D "Nero 7 Lite"%_% REG ADD %KEY%\002 /V 1 /D "%PP%\NERO\NERO_7751_ENGLISH_LITE.EXE /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /LANG=ENGLISH /USER=\"Hassan Dar\" /COMPANY=\"X E I J I N | org\" /SERIAL=\"nnnn-nnnn-nnnn-nnnn-nnnn-nnnn-nnnn\""%_% REG ADD %KEY%\003 /VE /D "Mozilla FireFox"%_% REG ADD %KEY%\003 /V 1 /D "%PP%\FIREFOX\SETUP.EXE -ms"%_% REG ADD %KEY%\004 /VE /D "LimeWire Pro"%_% REG ADD %KEY%\004 /V 1 /D "%PP%\LIMEWIREPRO\LIMEWIREWIN.EXE /S"%_% REG ADD %KEY%\004 /V 2 /D "TASKKILL /F /IM LIMEWIRE.EXE"%_% REG ADD %KEY%\005 /VE /D "nVidia PureVideo Decoder"%_% REG ADD %KEY%\005 /V 1 /D "%PP%\PUREVIDEO\SETUP.EXE /S"%_% REG ADD %KEY%\006 /VE /D "uTorrent"%_% REG ADD %KEY%\006 /V 1 /D "%PP%\UTORRENT\UTORRENT_16.EXE /S"%_% REG ADD %KEY%\007 /VE /D "XPlay"%_% REG ADD %KEY%\007 /V 1 /D "%PP%\XPLAY\XPLAY.1033.MSI /quiet /norestart"%_% REG ADD %KEY%\008 /VE /D "Registering XPlay"%_% REG ADD %KEY%\008 /V 1 /D "REGEDIT /S %PP%\XPLAY\REGISTRATION\XPLAY.REG"%_% I say majority because, I have not looked at the correctness of your switches, just syntax errors within them. </Edit>
-
From line 14 onwards, change: to:
-
Well, since I said it was hidden but not system then you would only need ATTRIB -H, for the folder. However that is not needed as the /F and /A switches in my code cover deleting read-only, hidden and system files anyway.
-
Why go to all that bother for your .nfo extension, just use the simple: FTYPE NFO.Document=notepad.exe "%1"or the even simpler: ASSOC .nfo=txtfile
-
There is a Default User folder, it is has hidden but not system attributes and is usually here: "C:\Documents and Settings\Default User"To remove the link, this exact line, which is the same as the one I've previously given will work, (unless it's either not there or you do not have sufficient permissions to remove it). DEL/F/A "%ALLUSERSPROFILE%\..\Default User\Start Menu\Programs\CyberLink PowerDVD\unwanted.lnk"
-
? XXMKLINK.EXE, the utility I linked to, is only 48KB If you need help with the inf file stuff, I know there have been examples, including my own, posted here on these forums.
-
Why not just script the shortcut creation at installation time! You could use a 3rd party utility such as this in a batch file; or built in tools such as vbs or inf?
-
There are a multitude of ways of achieving the result you require! Here's one: FOR /F "DELIMS=" %%? IN ('DIR/B/AD "%USERPROFILE%\START MENU"') DO ECHO/%%?[Edit] Note I changed the name to Start Menu from Desktop in my example because there will always be at least one folder there for testing the code. The 'Desktop' on the other hand, I believe should only really contain links to objects, not the actual objects themselves. [/Edit]
-
Okay, what are you reading for /Q when you type DEL /?, because I seem to recall it mentioning somewhere 'global wildcards', which yours doesn't have! Also nevermind 'half-reading' my response, try the command I gave you and report back.
-
Simply, >NUL or more correctly 1>NUL redirects STDOUT (your standard output) to NUL (a non-existant location) this prevents the output from showing in your console. 2>NUL on the other hand does the same thing only this time with STDERR (standard error output). In the case above, what it actually does is prevents a message showing if the file cannot be found for instance. It could I suppose be seen as a lazy way of doing this: IF EXIST "%ALLUSERSPROFILE%\..\Default User\Start Menu\Programs\some program\some program.lnk" DEL/F/A "%ALLUSERSPROFILE%\..\Default User\Start Menu\Programs\some program\some program.lnk" The NUL redirection can be place at the beginning of the command line or more commonly at the end.
-
Well the first thing you need to know is what the switches are that you are /not using for the DEL command. For instance... Why are you using the /Q switch? It is not needed or used at all in your case! Have you thought about typing DEL /? inside the console, for information which may help solve your problem. You could also try this! 2>NUL DEL/F/A "%ALLUSERSPROFILE%\..\Default User\Start Menu\Programs\some program\some program.lnk"
-
It may be prudent to at least post the file with which you are experiencing difficulties!
-
Yes, I just needed a page refresh... Thanks for the wake-up call!
-
I'm still getting those errors, with at least these: Unattended Windows 2000/XP/2003 Application Installs
-
I cannot navigate to any forum group at all without the IPS driver errors. My only access to the forums for the last 16+ hours has only been via last messages posted! PS Using IE7; it's not broken so I'm not changing it!
-
New to this...Installing appz help!
Yzöwl replied to some1's topic in Unattended Windows 2000/XP/2003
Simple answer... Try here! -
.cmd file: echo escape character ^ appears in output
Yzöwl replied to daddydave's topic in Windows 2000/2003/NT4
One problem is that your outputting from the console and not a batch, you're testing for a batch run so use a batch for the testing! Also the escape character for the percent is another percent: Since you missed a double quote from your examples, I will give you a couple of solutions just in case I've guessed incorrectly! @ECHO/"UninstallString"="%%COMSPEC%% /c ECHO/Windows Registry Editor Version 5.00 >%%TMP%%\BlahBlah.reg" @ECHO/"UninstallString"="%%COMSPEC%% /c ECHO/Windows Registry Editor Version 5.00"^>%%TMP%%\BlahBlah.reg -
If you read the Unattended Guide it explains the correct syntax for internal quotes!