Content Type
Profiles
Forums
Events
Everything posted by durex
-
Since Ive made the switch to WPI, Ive needed (wanted) to use the recommended method of launching WPI via GuiRunOnce (as opposed to RunOnceEx, which would bring up that extra dialog box). The only problem was I couldnt find any methods which allowed you to launch the programs using the GuiRunOnce method directly from the CD since there isnt any way of detecting the CDROM drive in the WINNT.SIF file. The work around to this, of course, was to either place the program in the $OEM$ directory and launch it from your hard drive, or at the very least, keep your programs on your CDROM, but create an additional batch file, place it in your $OEM$ directory, which would detect your CDROM drive letter and launch your program. Well, after giving it a bit of thought, I figured out a much more streamlined approach to this which will allow you to launch WPI (or anything else for that matter) using the GuiRunOnce method, in another manner. As you may or may not know, when placing a command in the [GuiRunOnce] section of your WINNT.SIF, all it does is create a registry entry under the following section, the value of which is the command itself: HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce Being familiar with the RunOnceEx method, I took this one step further and setup a configuration similiar to that of using RunOnceEx to install your programs directly from your CD. I created a batch file called GuiRunOnce.cmd (can be called anything of course), placed it in a folder '<CD IMG ROOT>\Custom\Scripts'. I than created the cmdlines.txt, which is located in the $OEM$ folder and contains the following: [COMMANDS] "..\Custom\Scripts\GuiRunOnce.cmd" and my GuiRunOnce.cmd: @echo off cmdow @ /HID for %%a 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 %%a:\WIN51 set CDROM=%%a: SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce REG ADD %KEY% /V 001 /D "%CDROM%\Custom\WPI\wpi.cmd" /f As you can see, this reg entry will be imported during the T-12 stage at which cmdlines.txt is executed. The 'wpi.cmd' script, which resides on the CD, will be executed upon 1st logon, in the exact same manner as if you were to include it in the GuiRunOnce section of WINNT.SIF. The only thing to take note here is that I changed HKCU (Current User) with HKLM (Local Machine). The 1st couple times I tested this, when using the HKCU setting, WPI would only launch on the second logon for some reason. Only after making the change to HKLM did it launch after the initial logon. Who knows.. maybe this is old news, but based on my extensive searching and more importantly, this recent thread, I assumed nobody had come up with a solution to this. Anyway.. hope it helps!
-
Do you know if disabling that will also cause windows not to tell me when new critical updates are ready for download?
-
I fit WinXP with about 20 other programs on 1 700mb cd including office, nav2005, diskeeper, steam and slew of others ... whats your point? If I want to fit more apps on there I need to take space away from somthing.. and Im pretty sure my 250MB WindowsXP i386 folder is about is small as its going to get.
-
1st off Im well aware on how to use nLite and how easy it is to remove the WIndows Security Center using this method. Im also aware of the reg entries that you can use to 'Turn off' certain notifications about firewall / antivirus / etc... but Ive heard numerours reports that this doesnt completely solve the problem. Im looking how to do this manually via batch or reg file, however, because I use my UA install for multiple PC's, some of which, I do want Security Center installed on. Is there a winnt.sif component name for this, which I could remove it with? Looked at a couple reference of full component lists and didnt see any reference to it. This possible? Thanks!
-
what happend to the command line one?
-
Hrmm... I couldve sworn it was under the Unattended downloads section... but it looks like it didnt get carried over when the site got overhauled. If no-one else does, Ill toss it up on my site and link to it when I get home later...
-
Help With Video Changer In Winnnt.sif
durex replied to smartie91's topic in Unattended Windows 2000/XP/2003
also, if youre using this with vmware, youll need to use a refresh rate of 1 instead of 60.. otherwise it wont work. -
This is what I was referring to.. sorry if I wasnt clear.. and yea, i like the concept of syncing on cmd / schedule / action, but I hate it that everything is grouped into 1 folder and that you cant select where you want to store it. Thanks for the reply, Ill check out that novell program! Anyone else know of good FREE sync'ing programs, by all means speak up!
-
However, its not a native windows command (at least not to XP), so youll have to download the program, which can be found on the Unattended Downloads page.
-
I work on the road a lot and need to have files sync'd up that reside on my companies network to my laptop. Ive been playing around with WinXP's 'Syncronize' function, but the two major things I cant figure out is how to retain folder structure of what Im Sync'ing from and where to store the offline files on my laptop. Whenever I try syncing it takes all of the files in all subdirectories and places them all in an 'Offline Files' folder... Is it possible to use this function but keep my subdirectory structure? Furthermore, is it possible to tell it to store the offline files in a sub-directory of 'My Documents'? Thanks!
-
Remove Folder My Music/my Picture
durex replied to kirillkr's topic in Unattended Windows 2000/XP/2003
1st off, welcome to MSFN. 2ndly.. Learn how to use the Search function... this topic has been covered numerous times before. 1st result searching for '+remove +"my pictures" http://www.msfn.org/board/index.php?showto...ve++my+pictures -
Reg Twk To Transfer Desktop Icons To Quicklaunch
durex replied to gelome's topic in Unattended Windows 2000/XP/2003
or if your more of a batch guy... @echo off MOVE /Y "%ALLUSERSPROFILE%\Desktop\*.*" "%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch" MOVE /Y "%USERPROFILE%\Desktop\*.*" "%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch" Just copy the following into notepad, save it as <whatever>.cmd and it will move any folders / files / shortcuts from your desktop to your Quick Launch -
or if you want to pause until you tell it to start again (as opposed to a pre-determind amount of time)... just create a batch file (open notepad, save as *.cmd) and put in the following: @echo off pause This will bring up a command window that will say 'Press any key to continue' which of course means it will 'pause' until you 'Press any key'!
-
Ah.. guess I missed that part. Thanks again Simon.
-
Installshield And %programfiles%
durex replied to Incroyable HULK's topic in Unattended Windows 2000/XP/2003
2 things Incroyable... 1st off, Id check out this thread 1st... it allows you to still use variables with setup.iss. 2nd, if for whatever reason you still want to use your if then statement, this is what youll want... like Dahi said, toss this in a batch file and simply call your batch file from your runonceex, instead of trying to incorporate it all in there. @echo off IF %ProgramFiles%=="D:\Program Files" ( SET ANSWERFILE=setupd.iss ) ELSE ( SET ANSWERFILE=setupc.iss ) [<setup path>]\setup.exe" -s -f1 "%CDROM%\Adobe Photoshop CS\%ANSWERFILE%" -f2"%systemdrive%\test.log" -
It really doesnt matter... so long as you extract them to the appropriate location. If you want the other things in the other 'Defaults' folders, than zip up the whole thing.. if you only want the additional extensions and themes youve added when using the '-profile Defaults\profile' switch, than the only thing you need is the 'profile' folder (which is all I do). You can either SFX them up and extract them back to the appropriate location after FF is install during your UA. Or extract Simons Silent FF Setup and place the contents of your 'Defaults\profile' into the 'Defaultprofile' folder. His setup will automatically copy them back where they need to go after FF is installed.
-
Adding Additional Variables To Be Used With Wpi?
durex replied to durex's topic in Windows Post-Install Wizard (WPI)
I dont mean for this to sound offensive in any way, but didnt you design this or am I mistaken? -
I just wanted to make sure Im not missing anything here.. this latest update doesnt include the firefox setup.exe... all we need to do is place the public one you can dl from mozillas' site and place it in the same path as the 'Setup' folder (not in it..)... correct? (Which is absolutely fine by me... this way Simon wont have to worry about getting out a new version of the installer the 2nd a new firefox revision comes out... I just didnt see this noted anywhere in the release notes and figured that some ppl out there may not pick up on this and run into issues.)
-
Adding Additional Variables To Be Used With Wpi?
durex replied to durex's topic in Windows Post-Install Wizard (WPI)
Sure can... In my RunOnceEx script, to save on some typing, I would create additional variables to be used throughout the script.. ie: APPS = %CDROM%\Custom\Applications REG = %CDROM%\Custom\Registry SYSTEM = %CDROM%\Custom\System RESTORE = D:\!Personal!\SystemBackup This way when Im inputting execute / install lines throughout runonceex, I can simply use these variables instead of having to type out the entire path every time.... Now, after pawing through the js files, I think Ive figured it out... if someone could verify my work here, Id greatly appreciate it as vbscript is my scripting language of choice.. not JS... In the 'generate.js' file I found the following section which looks like it converts system variables to ones to be used throughout WPI... function replpath(u) { position = "generate.js"; cddrv = FindCDRom(); sysdrv = WshEnv("SYSTEMDRIVE") + "\\"; ..... As well as this section... rs = rs.replace(/%cdrom%/gi, cddrv); rs = rs.replace(/%systemdrive%/gi,sysdrv); rs = rs.replace(/%windir%/gi, windir); ....... So I made the following additions to allow the use of my variables.. apps = cddrv + "Custom\\Applications\\"; network = cddrv + "Custom\\Network\\"; reg = cddrv + "Custom\\Registry\\"; restore = "D:\\!Personal!\\SystemBackup\\"; system = cddrv + "Custom\\System\\"; and rs = rs.replace(/%apps%/gi, appdata) rs = rs.replace(/%network%/gi, network) rs = rs.replace(/%reg%/gi, reg) rs = rs.replace(/%restore%/gi, restore) rs = rs.replace(/%system%/gi, system) Ive only tested it with an absolute path (C:\Temp), I havent tested the "cddrv +", lines, but it appears as though it should work... Make sense? -
Does Cmdlines.txt Still Work If You Use Guirunonce
durex replied to durex's topic in Unattended Windows 2000/XP/2003
... and I would have taken the time to look around, I would have found this which wouldve told me the same thing... Thx as always Alanoll -
Dont know if I should have posted this in the WPI forum instead, but it seemed to be more of a general question that WPI specific.... Im in the process of moving from RunOnceEx to WPI. Currently, my cmdlines.txt runs a couple batch scripts which import some reg settings, then executes my RunOnceEx script, which of course imports my runonceex settings (and then executed upon reboot). After reading the WPI installation instructions, it recommends that you call the WPI.cmd from GuiRunOnce. Ive never used GuiRunOnce for installation, so Im not familar with exactly what runs when, but if I add WPI.cmd to the GuiRunOnce section of my winnt.sif, will they other scripts in my cmdlines.txt (besides my runonceex script, of course, which I will remove) still run prior to the last reboot? Thanks!
-
np bud... glad we could help
-
I remember seeing a thread someone started up a while back that referenced this site as well... so I guess there have been others that have... btw... thx for the update simon and hope you're feeling better!
-
whats robocopy? i use xcopy religiously (i do know how to use google, just figured Id get a better answer from you guys...)
-
and in case you didnt know 'shutdown /?' will show you the list of options...