Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
It is a fact, VER gives the version of the command interpreter! Microsoft's documentation assumes that end users will not replace executables with versions from earlier or later Operating Systems, hence they don't produce documentation to cover such an eventuality. If you wish be proven incorrect, please try swapping XP and Windows 2000 cmd.exe's or even different SP levels of CMD.EXE and run the command in each.
-
You could always use this alternative: [Version] Signature = $Windows NT$ [DefaultInstall] ProfileItems = AddTest [AddTest] Name = Str ing7 CmdLine = 10, Test, file.exe WorkingDir = 10, Test
-
Here's a method I've used which should always work, (unless your crazy enough to have disabled the workstation service)! ThisOS.cmd @Echo off&Setlocal enableextensions For /f "delims=" %%# In ('Net config work^|Find /i " Windows "') Do Call :OSis %%# If Defined HostOS (Echo Detected OS is Windows %HostOS%) Else ( Echo Host OS not Detected!) Pause&Goto :Eof :OSis Echo %*|Find "2000">Nul 2>&1&&(Set "HostOS=2000"&Goto :Eof) Echo %*|Find "2002">Nul 2>&1&&(Set "HostOS=XP"&Goto :Eof) Echo %*|Find "2003">Nul 2>&1&&(Set "HostOS=2003"&Goto :Eof) Echo %*|Find "Vista">Nul 2>&1&&(Set "HostOS=Vista"&Goto :Eof) Echo %*|Find "2008">Nul 2>&1&&(Set "HostOS=2008"&Goto :Eof) Echo %*|Find "7">Nul 2>&1&&(Set "HostOS=7"&Goto :Eof) (Set HostOS=)
-
Technically incorrect, this will detect the version of the Command Interpreter not that of Windows!
-
Unfortunately you were unable to provide a response which reasonably fulfilled the criteria I set you. Therefore, as promised, this topic is now closed!
-
Logon, logoff and bootskin in your win copy
Yzöwl replied to kainard's topic in Unattended Windows 2000/XP/2003
Try The Guide! -
Rate them for what? I'm not leaving this as an open ended question, either provide a reasonable response to my question on your next reply or this topic will be removed!
-
How does CMDLINES.TXT works in HFSLIP?
Yzöwl replied to Geej's topic in Unattended Windows 2000/XP/2003
Cmdlines.txt is independent of the method used to slipstream the installation source. It doesn't matter whether you slipstreamed manually, used nLite, HFSLIP or any other method. You simply create the appropriate $OEM$ folder structure and cmdlines.txt file manually! This topic will therefore be moved to the general, unattended forum! -
Change your CALL to a GOTO and change your :end label:@ECHO OFF&SETLOCAL ENABLEEXTENSIONS FOR %%# IN (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 %%#:\SOFTWARE SET "CDROM=%%#:") REM CHECKS FOR A TAG FILE AND GOES TO THE CORRESPONDING SECTION FOR %%# IN (%SYSTEMDRIVE%\*.TAG) DO GOTO %%~n# GOTO :EOF :XPHO REM Here we'll add the SOFTWARE to install to the XP Home OEM version. REM "%~dp0" refers to the full path the Install.cmd is in, so you don't have to worry about drive letters REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XPHO.TAG GOTO OPTS :XPHR REM Here we'll add the SOFTWARE to install to the XP Home Retail version. REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XPHR.TAG GOTO OPTS :XPHU REM Here we'll add the SOFTWARE to install to the XP Home Upgrade version. REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XPHU.TAG GOTO OPTS :XPPC REM Here we'll add the SOFTWARE to install to the XP Professional Corporate version. REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XPPC.TAG GOTO OPTS :XPPO REM Here we'll add the SOFTWARE to install to the XP Professional OEM version. REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XPPO.TAG GOTO OPTS :XPPR REM Here we'll add the SOFTWARE to install to the XP Professional Retail version. REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XPPR.TAG GOTO OPTS :XPPU REM Here we'll add the SOFTWARE to install to the XP Professional Upgrade version. REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XPPU.TAG GOTO OPTS :XHOD REM Here we'll add the SOFTWARE to install to the XP Home OEM version. %SystemDrive%\DPsFnshr.exe REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XHOD.TAG GOTO OPTS :XHRD REM Here we'll add the SOFTWARE to install to the XP Home Retail version. %SystemDrive%\DPsFnshr.exe REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XHRD.TAG GOTO OPTS :XHUD REM Here we'll add the SOFTWARE to install to the XP Home Upgrade version. %SystemDrive%\DPsFnshr.exe REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XHUD.TAG GOTO OPTS :XPCD REM Here we'll add the SOFTWARE to install to the XP Professional Corporate version. %SystemDrive%\DPsFnshr.exe REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XPCD.TAG GOTO OPTS :XPOD REM Here we'll add the SOFTWARE to install to the XP Professional OEM version. %SystemDrive%\DPsFnshr.exe REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XPOD.TAG GOTO OPTS :XPRD REM Here we'll add the SOFTWARE to install to the XP Professional Retail version. %SystemDrive%\DPsFnshr.exe REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XPRD.TAG GOTO OPTS :XPUD REM Here we'll add the SOFTWARE to install to the XP Professional Upgrade version. %SystemDrive%\DPsFnshr.exe REM End this section REM end of this section : DEL/F %SYSTEMDRIVE%\XPUD.TAG :OPTS REM Here we'll add the options for every OS. START /WAIT %CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /q START /WAIT %CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qn CALL %CDROM%\SOFTWARE\OEMLOGO.CMD CALL %CDROM%\SOFTWARE\REGISTRY.CMD CALL %CDROM%\SOFTWARE\CLEANUP.CMD Is it possible that you have UNIX line endings as opposed to DOS? It may be worth running the file through something like UnixToDos to make sure. Is it at all possible that in your posted code that you have removed a lot of information? i.e All of the software you are applying to each edition of Windows. If so you may have a problem with the size of the batch file. My suggestion in this case would be to call individual batch files instead of labels within the batch file itself.
-
I would suggest you start by replacing your first 39 lines with these! @ECHO OFF&SETLOCAL ENABLEEXTENSIONS FOR %%# IN (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 %%#:\SOFTWARE SET "CDROM=%%#:") REM CHECKS FOR A TAG FILE AND GOES TO THE CORRESPONDING SECTION FOR %%# IN (%SYSTEMDRIVE%\*.TAG) DO CALL :%%~n# GOTO :EOFThen I'd also suggest you change the executable lines at the bottom to: START /WAIT %CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /q START /WAIT %CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qn CALL %CDROM%\SOFTWARE\OEMLOGO.CMD CALL %CDROM%\SOFTWARE\REGISTRY.CMD CALL %CDROM%\SOFTWARE\CLEANUP.CMD
-
Just to better explain the vbs idea mentioned by gunsmokingman, you can create one like this: InfraRecorder.vbs CreateObject("Wscript.Shell").Run (CreateObject("Scripting.FileSystemObject") _ .GetParentFolderName(WScript.ScriptFullName) &_ "\Apps\InfraRecorder\InfraRecorder.exe"), 1, TrueJust place the vbs in the root of your USB drive and run it to start you application.
-
Thanks but the shortcut you gave me didn't work is there something more i need to do? On testing it appears that the Shortcut format is different across versions of Windows, the version I produced was created and tested in Vista. Creating the shortcut in Windows 2000 appeared not to work at all! You could try it in XP, however I'm doubting that it would create a universally working shortcut too! Another alternative would be to run your batch file using a window hiding application.
-
This relative path functionality has for a long time been on many peoples wishlist for shortcuts. There is a workaround which I could suggest in your case. Use the following as the target to your shortcut *:\Apps\InfraRecorder\InfraRecorder.exeThe trick to making this work however is that the shortcut must be made read-only in order that the asterisk is not replaced with the actual drive letter on running. I have prepared one for you already in the attachment below. InfraRecorder.zip
-
If you were to give us a better explanation of your problem we may be better suited to answer you accordingly. Why are you running a .bat? Since the emergence of Windows NT Operating System, .cmd has been the default. When and in what circumstances is it being run? Whatever executes the script may be able to directly execute 'PROGRAM.EXE' Are you sure that you have provided the proper executable file path and name? Since \WINDOWS is in %PATH%, the following may be all that is required@START PROGRAM
-
The first suggestion would be to try reanaming Malwarebytes mbam.exe etc. to another executable file type before running it. If that fails and you don't want to install/use another removal tool you could try the Manual method mentioned here.
-
What happens if you choose Start → Computer?
-
Perhaps using tags may help improve things in that respect!
-
The size allowed isn't just a figure plucked out of the air, it has been agreed upon by the Board Administration Team. The 380 px width currently allowed equates to half of the message text area width on a maximized browser window with a 1024 px screen resolution width. I believe that message signatures wider than that size will be a distraction to the detriment of message content, which is after all what make us a Forum. 1024 px is the standard size for the increasingly popular netbook revolution and is reportedly used by around 70% of internet users.
-
Update Registry Key On First Boot
Yzöwl replied to Coucher's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
No problem, glad to have helped! -
Update Registry Key On First Boot
Yzöwl replied to Coucher's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
You'll need to create the value string in your batch file first then. Try either: @ECHO OFF FOR /F "TOKENS=2-4 DELIMS=/ " %%A IN ('DATE /T') DO ( REG ADD HKLM\SOFTWARE\PGA-IGA\PREP /V INSTALLDATE /D "%%A\%%B\%%C" /F>NUL) Or: @ECHO OFF FOR /F "TOKENS=2-4 DELIMS=/ " %%A IN ("%DATE%") DO ( REG ADD HKLM\SOFTWARE\PGA-IGA\PREP /V INSTALLDATE /D "%%A\%%B\%%C" /F>NUL) -
Update Registry Key On First Boot
Yzöwl replied to Coucher's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Would this do for what you need? REG ADD HKLM\SOFTWARE\PGA-IGA\PREP /V INSTALLDATE /D "%DATE:/=\%" /F>NUL -
Firstly this is only your second post after having received a Warning for your first. Please read the rules, particularly paying attention to Rules 1b, 2d, 4a and 11 2d. is important because you've said nothing at all about the link you provided; the destination for which has content not in English. Please provide information, a link only can be considered spamming.
-
IF's not really necessary here is it? IF '%x%' == '%x%'