Content Type
Profiles
Forums
Events
Everything posted by MHz
-
Open cmd.exe "IN" the Folder or Windows
MHz replied to Astalavista's topic in Unattended Windows 2000/XP/2003
If the current window is open, that you want a command prompt for. Just right- click on the folder icon on the far, top left corner of the window. A context window should open with command prompt entry in it. -
Copy CD to CD option. It will remain bootable.
-
Download and open with Wordpad ! It is a good compilation of switches. Good effort asserted. Will make it easier for others.
-
2 things dont get installed in my RunOnceEx.cmd
MHz replied to Svend Rugaard's topic in Unattended Windows 2000/XP/2003
Alternative? When you install Acrobat. It extracts it's setup files in "%ProgramFiles%\Adobe\Acrobat 7.0\Setup Files\RdrMin". Maybe a different location for danish. But I would repack thost files into a archive, to extract and apply the switches to the msi installer. switch /qb (progress bar) or /qn. -
@echo off title Installing MSN Messenger Plus 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:\Autorun.inf set CDROM=%%a: start /wait %cdrom%\install\Applications\msnplus\6\MsgPlus-325.exe /SilentInstallNoSponsor %cdrom%\install\Applications\msnplus\pskill.exe msnmsgr.exe %cdrom%\install\Applications\msnplus\pskill.exe msgplus.exe exit This style looks better though Edit: If your software is on the cd in install\Applications... , why not have these batch files in install\Applications, and use relative addressing? WPI will have the cdrom variable so you just call the batches on the cd.
-
I am not really familar with WPI commands. It would be best to use the WPI commands. Otherwise, each of those scripts would need a cdrom set routine. e.g. @echo off title Installing MSN Messenger Plus IF EXIST D:\AUTORUN.INF set CDROM=D: IF EXIST E:\AUTORUN.INF set CDROM=E: IF EXIST F:\AUTORUN.INF set CDROM=F: IF EXIST G:\AUTORUN.INF set CDROM=G: IF EXIST H:\AUTORUN.INF set CDROM=H: IF EXIST I:\AUTORUN.INF set CDROM=I: IF EXIST J:\AUTORUN.INF set CDROM=J: IF EXIST K:\AUTORUN.INF set CDROM=K: IF EXIST L:\AUTORUN.INF set CDROM=L: IF EXIST M:\AUTORUN.INF set CDROM=M: IF EXIST N:\AUTORUN.INF set CDROM=N: start /wait %cdrom%\install\Applications\msnplus\6\MsgPlus-325.exe /SilentInstallNoSponsor %cdrom%\install\Applications\msnplus\pskill.exe msnmsgr.exe %cdrom%\install\Applications\msnplus\pskill.exe msgplus.exe exit A lot of copy and pasting into all script needed.
-
If you create a cmd batch file from WPI that will access the CDROM, you will need to set a CDROM variable within that script. Consider the CDROM variable as only a local variable. Use Start /Wait for programs in command files to stop following being executed.
-
Here is a link in the WPI forum for find CDROM
-
The CDROM variable is is limited to within the script. It will not be available for use by WPI as set by this script. WPI needs a routine within itself for setting a CDROM variable.
-
IF EXIST D:\AUTORUN.INF set CDROM=D: IF EXIST E:\AUTORUN.INF set CDROM=E: IF EXIST F:\AUTORUN.INF set CDROM=F: IF EXIST G:\AUTORUN.INF set CDROM=G: IF EXIST H:\AUTORUN.INF set CDROM=H: IF EXIST I:\AUTORUN.INF set CDROM=I: IF EXIST J:\AUTORUN.INF set CDROM=J: IF EXIST K:\AUTORUN.INF set CDROM=K: IF EXIST L:\AUTORUN.INF set CDROM=L: IF EXIST M:\AUTORUN.INF set CDROM=M: IF EXIST N:\AUTORUN.INF set CDROM=N: %CDROM% pause1) If you run this batch with your original commands with a cdrom in a drive, it works. 2) You do not use the cdrom variable within your script. So no problem showing with the script shown, that I can see. Why set the cdrom variable? Not needed.
-
The CDROM variable is being set in the batch script, but is not being used. the CDROM variable is only useful within the file that set it. If you are using a CDROM variable within WPI, and have no set CDROM variable within it, then WPI could be creating the error?
-
i was siur you knew, i wanted help others who wondered how to change that could you recommend a program for that?You can span Volumes with Window XP Professional. There are five types of Dynamic Volumes: Simple, Spanned, Striped, Mirrored, and RAID-5. Volumes are perferred when you have multiple drives. They are very good.
-
It should not be there. And would doubt that it would be interpreted as it resides on a floppy if used. Info means nothing. Ok.
-
This is the batch file that Setupmgr produced? Yes. You will not need it, for CD install. Unattended.txt renamed to winnt.sif, then placed winnt.sif into I386 folder.
-
$1 is the must. It is a special folder for files to be transfered to the root of your harddrive. &S$ is not special?
-
I hope you are using this address $OEM$\$1\Install for your software as to the unattended cd guide. And also the batch file for User Account creation.
-
Please,could you show us one of your install scripts. I am interested in seeing how you deal with installation and unexpected problems.
-
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:Here is plain batch, without the need to make a temp file.
-
Umm. Yeah ok. WMI uses scripts as well? Autoit is written in C++, it deals directly with the Windows API. It is created for automation. i.e. Installers etc. My years of experience with Autoit is that it can be very reliable. Could you show some proof in what you say?
-
Constant testing as you are building your project helps to notify of what is causing which problem.
-
$Docs and Profile = USERNAME.COMPUTERNAME
MHz replied to KNARZ's topic in Unattended Windows 2000/XP/2003
Only 2 folders in $Docs. All Users and Default User. Nothing else, cause no other accounts exist during textmode. Windows will not overwrite profile folders for safety reasons. These 2 folders should suit your needs. -
IExpress executable deleting itself?
MHz replied to Gagorian's topic in Unattended Windows 2000/XP/2003
DEL "%UserProfile%\Desktop\Connect to the Internet.LNK" DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.lnk" DEL "%UserProfile%\Favorites\MSN.url" DEL "%UserProfile%\Favorites\Radio Station Guide.url" DEL "%UserProfile%\Favorites\Web Events.url" DEL "%UserProfile%\Favorites\MSN.com.url" RD /S /Q "%UserProfile%\Favorites\Links\" RD /S /Q "%UserProfile%\Favorites\Media\" Attrib -r "%AllUsersProfile%\Start Menu\Programs\Startup\Final.exe" DEL "%AllUsersProfile%\Start Menu\Programs\Startup\Final.exe"Maybe it is a read only attribute causing it to not self-delete. Added Attrib command and removed Exit. -
Few Start Menu Items not affected in cleanup...
MHz replied to durex's topic in Unattended Windows 2000/XP/2003
filename.cmd in All Users Startup folder @echo off set AUStart=%AllUsersProfile%\Start Menu\Programs set UserStart=%UserProfile%\Start Menu\Programs MD "%AUStart%\Internet" MOVE /Y "%UserStart%\Internet Explorer.lnk" "%AUStart%\Internet" MOVE /Y "%UserStart%\Outlook Express.lnk" "%AUStart%\Internet" Attrib -r "%AUStart%\startup\filename.cmd" ShutDown.exe -s -t 10 -c "System shutdown required now. Thankyou for your patience." Del "%AUStart%\startup\filename.cmd" Take note of the Attrib command, the file tends to turn into read-only, when copied over during text setup. -
MailWasher is a better solution. Bounce the spam back. Also check your system for spyware. If spam continues, you may have to remove bt connect.
-
I'm neutral here, Setup Manager produces [GuiRunOnce] Command0=c:\run Command1=c:\wait Command2=c:\end FileSystem:Specifies whether to convert the primary partition to NTFS or to leave it alone. Repartition: Specifies whether to delete all partitions on the first drive of the client computer and to reformat the drive with the NTFS file system. Unsure, maybe a drive letter problem? OemPreinstall=No, change to Yes would be the solution, as batch file is not copied over.