Jump to content

rkillcrazy

Member
  • Posts

    25
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About rkillcrazy

Contact Methods

  • Website URL
    http://www.wceastclassof1997.net/rob/wiki

rkillcrazy's Achievements

0

Reputation

  1. What bothers me is that fact that this is the best way they can come up with. It's essentially a hack!! I've been playing around with the Microsoft Deployment Toolkit and the Deployment Workbench has a way to install updates, service-packs, language-packs, et cetera during the deployment and SP2 bombs out. It's like we've gone a step backwards with this stuff. I've been doing slipstreams since Win2K and it has never been this hard.... 08-11-09 1324 EDT
  2. Yes. Use 7z SFX Archive splitter (http://7zsfx.info/en). Thanks, I'll give that a go.... Another question: How do the commands run? Do they run in the order they are shown in the config? I ask 'cause I'm trying to make an install that may need to overwrite the destination, however, the destination may have file in use. I was thinking, I could do something like below: RunProgram="batch file to kill my task here" RunProgram="batch file to clear the destination directory" InstallPath="extract to the recently cleared destination directory" RunProgram="batch file to do something else..." RunProgram="batch file to do something else..." However, if it reads the config, upon execution and immediately begins to extract to the directory that has files in use, I I'd be screwed. 11-03-08 1724 EDT
  3. Is there a way to recover the embedded config.txt if you no longer have it but still have the executable that was made with it? 11-03-08 1204 EDT
  4. Yeah, I used to do that before I started playing with these new modules. Perhaps this should be a feature request? It would be kinda nice to have a window that remained up as long as the original SFX file was still being used. I'm pretty good with a batch file these days so I know I can get something like this working.
  5. Is there a way to show another window that will tell the user to please wait. I have a large SFX that runs through several installs. Unfortunately, the installs can only be installed silently or normally. I'd rather not have to click anything so I use the silent switches. However, the total time it takes from execution of the SFX to the end message stating it's complete is 5-10 minutes which gives a user plenty of time to screw it up by trying to install something else. I get a progress bar for the extraction but it goes away and I see nothing except for a couple of windows that flash by now and then. Ideas? 04-14-08 1221 EDT
  6. OK, that worked fine - thanks! However, how can you tell I have errors in the line full of switches? It runs fine in a normal batch file with those switches. I had to escape a few of those quotes with back slashes so it looks a little different from what you'd see using a command line. Furthermore, as far as I can tell, it installs without errors when using the SFX file. Am I missing something? config.txt ;!@Install@!UTF-8! Title="Adobe Reader Installation" ; // Quiet install that shows progress bar only GUIMode="1" ; // Sets variables SetEnvironment="Var1=%ALLUSERSPROFILE%\\DESKTOP\\ADOBE READER 8.LNK" ; // Installation ExecuteFile="AdbeRdr812_en_US.exe" ; // Switches are: /sPB /rs /l /msi"/qb-! /norestart /log c:\acrobat8.log ALLUSERS=2 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES"" ExecuteParameters="/sPB /rs /l /msi\"/qb-! /norestart /log c:\\acrobat8.log ALLUSERS=2 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES\"\"" ; // Deletes the shortcut dropped on the desktop Delete="%Var1%" ;!@InstallEnd@!
  7. I just found these more extensive modules and am playing with them a bit. I had be using 7-Zip's defaults to create SFX files. I'm testing it on an Adobe reader install. Before, I used to have it run a batch file after unpacking. The batch file would install the app and remove various shortcuts. I'm trying to thin the code down with these new modules... It does the install just fine but never deletes that stupid little shortcut. Ideas? config.txt ;!@Install@!UTF-8! Title="Adobe Reader Installation" ; // Quiet install that shows progress bar only GUIMode="1" ; // Set environments SetEnvironment="Var1=\"%ALLUSERSPROFILE%\\DESKTOP\\ADOBE READER 8.LNK\"" ; // Installation ExecuteFile="fm05:AdbeRdr812_en_US.exe" ; // Switches ExecuteParameters="/sPB /rs /l /msi\"/qb-! /norestart /log c:\\acrobat8.log ALLUSERS=2 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES\"\"" ; // Deletes the shortcut dropped on the desktop Delete="%Var1%" FinishMessage="Adobe Reader has been installed." ;!@InstallEnd@!
  8. EDIT: Sorry, this wasn't supposed to go here. I'll post it in the correct forum. I just found these more extensive modules and am playing with them a bit. I had be using 7-Zip's defaults to create SFX files. I'm testing it on an Adobe reader install. Before, I used to have it run a batch file after unpacking. The batch file would install the app and remove various shortcuts. I'm trying to thin the code down with these new modules... It does the install just fine but never deletes that stupid little shortcut. Ideas? config.txt ;!@Install@!UTF-8! Title="Adobe Reader Installation" ; // Quiet install that shows progress bar only GUIMode="1" ; // Set environments SetEnvironment="Var1=\"%ALLUSERSPROFILE%\\DESKTOP\\ADOBE READER 8.LNK\"" ; // Installation ExecuteFile="fm05:AdbeRdr812_en_US.exe" ; // Switches ExecuteParameters="/sPB /rs /l /msi\"/qb-! /norestart /log c:\\acrobat8.log ALLUSERS=2 EULA_ACCEPT=YES SUPPRESS_APP_LAUNCH=YES\"\"" ; // Deletes the shortcut dropped on the desktop Delete="%Var1%" FinishMessage="Adobe Reader has been installed." ;!@InstallEnd@!
  9. Well, since nobody had any ideas, I worked something out... I have a batch file that runs at about T-9 of the WinXP GUI setup. This is done via my WINNT.SIF in the [setupParams] section. The batch file it runs is below. It does a lot of stuff but the part I made to do the auto-detection is labeled :CMDCONS. Basically, it queries the registry and looks at the source-paths. Piping that info through a FIND command, I can seek out strings that match the folders on my multi-boot DVD. Then, using error codes, I can direct the script to do my bidding! B) @ECHO OFF ::############################################################# ::Revised: 16:32 03/28/2008 ::############################################################# ::This will add a user account and password. ::Then it will add them to the Administrator's group. ::Then it will copy some data to the desktop. ::Then it will install the Recovery Console. ::Then it will clean up the files used for this. ::############################################################# :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::This adds a user to the administrator's group. TITLE ADDING USERS ECHO ADDING SOME USERS... net accounts /minpwlen:0 net accounts /maxpwage:unlimited net user Admin home3313 /add net user User /add net localgroup Administrators Admin /add net localgroup Administrators User /add cls ::This will hide the newly created account. REG ADD "HKLM\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\WINLOGON\SPECIALACCOUNTS\USERLIST" /V ADMIN /T REG_DWORD /D 65536 /F cls :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::I have a bunch of goodies in a couple of 7-Zip files. Check it out once you reach the desktop! TITLE GETTING EXTRA DATA ECHO DUMPING DATA TO THE DESKTOP. STAND BY... SETLOCAL ::VARIABLES FOR THIS SECTION FOR %%I 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 %%I:\STUFF.7Z SET DVDROM=%%I: SET SOURCE="\\63.243.104.66\data-80\DO-NOT-DELETE\MULTIBOOT\EXTRAS" SET DESTINATION="%ALLUSERSPROFILE%\DESKTOP" SET WHAT=/S /COPY:D SET OPTIONS=/R:2 /W:2 :REPACKS ECHO We can try to copy my repacks from a source that may be more up to date. ECHO The versions on this disk may be a month old or better. ECHO If anything goes wrong, the versions on the disk will be used. ECHO. CHOICE /C:YN /T:Y,45 Try to copy my repacks from a server that may be more up to date? IF ERRORLEVEL 2 GOTO UNZIP IF ERRORLEVEL 1 GOTO SERVER :SERVER TITLE PULLING DATA FROM FILE SERVER IF NOT EXIST %SOURCE% GOTO UNZIP_STUFF robocopy %SOURCE%\STUFF %DESTINATION%\STUFF %WHAT% %OPTIONS% IF %ERRORLEVEL%==1 cls && GOTO UNZIP_UPDATES :UNZIP_STUFF TITLE EXTRACTING DATA %SYSTEMDRIVE%\un7zip.exe "%DVDROM%\STUFF.7Z" %DESTINATION%\STUFF :UNZIP_UPDATES TITLE EXTRACTING OFFLINE UPDATER %SYSTEMDRIVE%\un7zip.exe "%DVDROM%\OFFLINEUPDATER.7Z" %DESTINATION%\OFFLINEUPDATER ECHO The folders on the desktop are full of various hotfixes and apps that are commonly used. > "%ALLUSERSPROFILE%\DESKTOP\INFO.TXT" ECHO Make sure all drivers were installed. >> "%ALLUSERSPROFILE%\DESKTOP\INFO.TXT" ECHO Once that's complete, you should activate this machine before proceeding with the material in these folders as several of these apps and updates require activation. >> "%ALLUSERSPROFILE%\DESKTOP\INFO.TXT" ENDLOCAL cls :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :CMDCONS ::This will install the Recovery Console as a boot option. ::We'll try to figure out what your OS is. ::We'll need to set a variable here so we can run the install from the CD/DVD. TITLE RECOVERY CONSOLE REG QUERY HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V SOURCEPATH | FIND /I "XPHO" > NUL IF %ERRORLEVEL%==0 GOTO HOMEOEM REG QUERY HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V SOURCEPATH | FIND /I "XPHU" > NUL IF %ERRORLEVEL%==0 GOTO HOMEUPG REG QUERY HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V SOURCEPATH | FIND /I "XPPB" > NUL IF %ERRORLEVEL%==0 GOTO PROOEMB REG QUERY HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V SOURCEPATH | FIND /I "XPPC" > NUL IF %ERRORLEVEL%==0 GOTO PROOEMC REG QUERY HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V SOURCEPATH | FIND /I "XPPU" > NUL IF %ERRORLEVEL%==0 GOTO PROUPG ::############################################################# :HOMEOEM SETLOCAL FOR %%I 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 %%I:\ROOT\XPHO\I386\WINNT32.EXE SET DVDROM=%%I: ECHO YOU HAVE XP HOME SP2 (OEM) ECHO INSTALLING THE RECOVERY CONSOLE AS A BOOT OPTION START /W %DVDROM%\ROOT\XPHO\I386\WINNT32.EXE /CMDCONS /UNATTEND cls ::Some people like to have the I386 directory copied over. ECHO It may be a good idea to copy the I386 directory for later use. ECHO Changing the sourcepath afterwards is also a good idea. ECHO I'll do both for you if you wish. ECHO. CHOICE /C:YN /T:Y,45 Would you like to copy the I386 Directory? IF ERRORLEVEL 2 GOTO NO_HOMEOEM_I386 IF ERRORLEVEL 1 GOTO YES_HOMEOEM_I386 :YES_HOMEOEM_I386 TITLE COPYING THE I386 DIRECTORY ECHO IF THIS IS WHAT YOU WANTED, GREAT! ECHO IF NOT, YOU WERE TOO SLOW! ECHO YOU CAN ALWAYS DELETE THE DIRECTORY FROM THE ROOT OF %SYSTEMDRIVE% LATER. ROBOCOPY %DVDROM%\ROOT\XPHO\I386 %SYSTEMDRIVE%\I386 /MIR /R:2 /W:2 ECHO CHANGING THE SOURCEPATH REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V ServicePackSourcePath /T REG_SZ /D C:\ /F REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V SourcePath /T REG_SZ /D C:\ /F REG ADD "HKLM\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENT VERSION" /V SourcePath /T REG_SZ /D C:\I386 /F :NO_HOMEOEM_I386 ENDLOCAL GOTO TIMEOUT ::############################################################# :HOMEUPG FOR %%I 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 %%I:\ROOT\XPHU\I386\WINNT32.EXE SET DVDROM=%%I: ECHO YOU HAVE XP HOME SP2 (UPGRADE) ECHO INSTALLING THE RECOVERY CONSOLE AS A BOOT OPTION START /W %DVDROM%\ROOT\XPHU\I386\WINNT32.EXE /CMDCONS /UNATTEND cls ::Some people like to have the I386 directory copied over. ECHO It may be a good idea to copy the I386 directory for later use. ECHO Changing the sourcepath afterwards is also a good idea. ECHO I'll do both for you if you wish. ECHO. CHOICE /C:YN /T:Y,45 Would you like to copy the I386 Directory? IF ERRORLEVEL 2 GOTO NO_HOMEUPG_I386 IF ERRORLEVEL 1 GOTO YES_HOMEUPG_I386 :YES_HOMEUPG_I386 TITLE COPYING THE I386 DIRECTORY ECHO IF THIS IS WHAT YOU WANTED, GREAT! ECHO IF NOT, YOU WERE TOO SLOW! ECHO YOU CAN ALWAYS DELETE THE DIRECTORY FROM THE ROOT OF %SYSTEMDRIVE% LATER. ROBOCOPY %DVDROM%\ROOT\XPHU\I386 %SYSTEMDRIVE%\I386 /MIR /R:2 /W:2 ECHO CHANGING THE SOURCEPATH REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V ServicePackSourcePath /T REG_SZ /D C:\ /F REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V SourcePath /T REG_SZ /D C:\ /F REG ADD "HKLM\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENT VERSION" /V SourcePath /T REG_SZ /D C:\I386 /F :NO_HOMEUPG_I386 ENDLOCAL GOTO TIMEOUT ::############################################################# :PROOEMB FOR %%I 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 %%I:\ROOT\XPPB\I386\WINNT32.EXE SET DVDROM=%%I: ECHO YOU HAVE XP PRO SP2-B (OEM) ECHO INSTALLING THE RECOVERY CONSOLE AS A BOOT OPTION START /W %DVDROM%\ROOT\XPPB\I386\WINNT32.EXE /CMDCONS /UNATTEND cls ::Some people like to have the I386 directory copied over. ECHO It may be a good idea to copy the I386 directory for later use. ECHO Changing the sourcepath afterwards is also a good idea. ECHO I'll do both for you if you wish. ECHO. CHOICE /C:YN /T:Y,45 Would you like to copy the I386 directory? IF ERRORLEVEL 2 GOTO NO_PROOEMB_I386 IF ERRORLEVEL 1 GOTO YES_PROOEMB_I386 :YES_PROOEMB_I386 TITLE COPYING THE I386 DIRECTORY ECHO IF THIS IS WHAT YOU WANTED, GREAT! ECHO IF NOT, YOU WERE TOO SLOW! ECHO YOU CAN ALWAYS DELETE THE DIRECTORY FROM THE ROOT OF %SYSTEMDRIVE% LATER. ROBOCOPY %DVDROM%\ROOT\XPPB\I386 %SYSTEMDRIVE%\I386 /MIR /R:2 /W:2 ECHO CHANGING THE SOURCEPATH REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V ServicePackSourcePath /T REG_SZ /D C:\ /F REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V SourcePath /T REG_SZ /D C:\ /F REG ADD "HKLM\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENT VERSION" /V SourcePath /T REG_SZ /D C:\I386 /F :NO_PROOEMB_I386 ENDLOCAL GOTO TIMEOUT ::############################################################# :PROOEMC FOR %%I 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 %%I:\ROOT\XPPC\I386\WINNT32.EXE SET DVDROM=%%I: ECHO YOU HAVE XP PRO SP2-C (OEM) ECHO INSTALLING THE RECOVERY CONSOLE AS A BOOT OPTION START /W %DVDROM%\ROOT\XPPC\I386\WINNT32.EXE /CMDCONS /UNATTEND cls ::Some people like to have the I386 directory copied over. ECHO It may be a good idea to copy the I386 directory for later use. ECHO Changing the sourcepath afterwards is also a good idea. ECHO I'll do both for you if you wish. ECHO. CHOICE /C:YN /T:Y,45 Would you like to copy the I386 Directory? IF ERRORLEVEL 2 GOTO NO_PROOEMC_I386 IF ERRORLEVEL 1 GOTO YES_PROOEMC_I386 :YES_PROOEMC_I386 TITLE COPYING THE I386 DIRECTORY ECHO IF THIS IS WHAT YOU WANTED, GREAT! ECHO IF NOT, YOU WERE TOO SLOW! ECHO YOU CAN ALWAYS DELETE THE DIRECTORY FROM THE ROOT OF %SYSTEMDRIVE% LATER. ROBOCOPY %DVDROM%\ROOT\XPPC\I386 %SYSTEMDRIVE%\I386 /MIR /R:2 /W:2 ECHO CHANGING THE SOURCEPATH REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V ServicePackSourcePath /T REG_SZ /D C:\ /F REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V SourcePath /T REG_SZ /D C:\ /F REG ADD "HKLM\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENT VERSION" /V SourcePath /T REG_SZ /D C:\I386 /F :NO_PROOEMC_I386 ENDLOCAL GOTO TIMEOUT ::############################################################# :PROUPG FOR %%I 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 %%I:\ROOT\XPPU\I386\WINNT32.EXE SET DVDROM=%%I: ECHO YOU HAVE XP PRO SP2 (UPGRADE) ECHO INSTALLING THE RECOVERY CONSOLE AS A BOOT OPTION START /W %DVDROM%\ROOT\XPPU\I386\WINNT32.EXE /CMDCONS /UNATTEND cls ::Some people like to have the I386 directory copied over. ECHO It may be a good idea to copy the I386 directory for later use. ECHO Changing the sourcepath afterwards is also a good idea. ECHO I'll do both for you if you wish. ECHO. CHOICE /C:YN /T:Y,45 Would you like to copy the I386 Directory? IF ERRORLEVEL 2 GOTO NO_PROUPG_I386 IF ERRORLEVEL 1 GOTO YES_PROUPG_I386 :YES_PROUPG_I386 TITLE COPYING THE I386 DIRECTORY ECHO IF THIS IS WHAT YOU WANTED, GREAT! ECHO IF NOT, YOU WERE TOO SLOW! ECHO YOU CAN ALWAYS DELETE THE DIRECTORY FROM THE ROOT OF %SYSTEMDRIVE% LATER. ROBOCOPY %DVDROM%\ROOT\XPPU\I386 %SYSTEMDRIVE%\I386 /MIR /R:2 /W:2 ECHO CHANGING THE SOURCEPATH REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V ServicePackSourcePath /T REG_SZ /D C:\ /F REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\SETUP /V SourcePath /T REG_SZ /D C:\ /F REG ADD "HKLM\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENT VERSION" /V SourcePath /T REG_SZ /D C:\I386 /F :NO_PROUPG_I386 ENDLOCAL GOTO TIMEOUT :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :TIMEOUT cls TITLE TWEAKING BOOT TIMER BOOTCFG /TIMEOUT 05 GOTO CLEANUP :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :CLEANUP cls :: Cleans up a few things. ECHO @ECHO OFF > "%SYSTEMDRIVE%\FINISH.CMD" ECHO TITLE CLEANING UP DESKTOP.INI FILES >> "%SYSTEMDRIVE%\FINISH.CMD" ECHO ECHO FOR SOME REASON YOU'LL SEE COPIES OF DESKTOP.INI IN YOUR START MENU. >> "%SYSTEMDRIVE%\FINISH.CMD" ECHO ECHO THESE FILES ARE NORMALLY HIDDEN. >> "%SYSTEMDRIVE%\FINISH.CMD" ECHO ECHO THIS BATCH FILE WILL FIX THAT ISSUE. >> "%SYSTEMDRIVE%\FINISH.CMD" ECHO ATTRIB +S +H "%SYSTEMDRIVE%\DESKTOP.INI" /S >> "%SYSTEMDRIVE%\FINISH.CMD" ECHO CSCRIPT EJECT-DVD.VBS >> "%SYSTEMDRIVE%\FINISH.CMD" ECHO DEL %%0 >> "%SYSTEMDRIVE%\FINISH.CMD" REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUNONCE /V FINISH /T REG_SZ /D %SYSTEMDRIVE%\FINISH.CMD /F IF EXIST %SYSTEMDRIVE%\un7zip.exe DEL /Q %SYSTEMDRIVE%\un7zip.exe IF EXIST %SYSTEMDRIVE%\7-zip32.dll DEL /Q %SYSTEMDRIVE%\7-zip32.dll DEL %0 :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
  10. I have several machines that have had people playing around with the ATTRIB command. Now, I have some files that are no longer hidden like they should be. I have a batch file that seems like it should work but in fact does not. Any guidance would be great! Below is an example. I just want to search recursively through the current folder and its child directories and run a command if the file is found.... FOR /F %%I IN ("DESKTOP.INI") DO IF EXIST %%~nI ATTRIB +S +H DESKTOP.INI /S Running that command outputs an error: %%I was unexpected at this time.
  11. Perhaps this query is a bit odd but maybe I'm not the only one.... I have a multiboot DVD that was created with PowerPacker and it's set to run a batch file in the GuiRunOnce section of my WINNT.SIF file. The batch runs just fine but I have it set to stop and ask questions (via CHOICE.COM/EXE) that deal with version of the OS. Meaning... if I installed XP Home SP2 OEM, and I wanted to copy over the I386 directory, I have to have the batch file stop and ask me what version I installed. At that point I give my answer and it copies over the proper directory. Is there a way to script this by having something check to see what version of XP is installed? I'd settle for something that can tell between XP Home and XP Pro but if it can tell between XP Home SP2 OEM, XP Home SP2 Upgrade, XP Pro SP2-B OEM, XP Pro SP2-C OEM & XP Pro SP2 Upgrade, that would awesome! Let me know... Note: there's something in PowerPacker that can tell the difference between many of these versions. It may not be able to tell the difference between SP2-B or SP2-C but it knows the difference between Home, Pro, SP2, OEM, Upgrade, et cetera. 02-26-08 1217 EST
  12. Yes, it does! In fact, I had to drive an hour to a site to run an SFC with one of my disks. I have a RunOnce script that copies over the I386 directory from the DVD to the root of the %SYSTEMDRIVE%. I'll even change the registry to point the SOURCEPATH to the %SYSTEMDRIVE%\I386 folder but it didn't work that day! I still had to provide the disk in order for SFC to complete the scan. 02-26-08 1203 EST
  13. I build PCs as well. I have a multiboot DVD with XP Pro OEM SP2-B, XP Pro OEM SP2-C, XP Pro Upgrade SP2, XP Home OEM SP2, XP Home Upgrade SP2 and I never used the ADVANCED tab in PowerPacker. I used RVM Integrator to dump some update packs in them and then used PowerPacker to create the layout of the disk & dump the DriverPacks in them. However, I used the the CUSTOM PACK NAME since I had 2 versions of XP Pro OEM but I doubt you'll need to use that feature. If I had to guess, you're making it more complicated than it needs to be. Every time I pack another version of XP, I use the UNATTENDED INSTALL OPTIONS to incorporate a WINNT.SIF. Each version of the OS (each disk) has its own WINNT.SIF with its own key. 02-26-08 1158 EST
  14. I could not get this to work. I copied/pasted what you have into notepad and saved as a VBS as I've done for other VB scripts but still no joy. Are there any tweaks I should make? I see you comment(?) of "Place your Value Here" but it looks like you're using my value of 4% below that line. Enlighten me, friend! 02-20-08 0918 EST
×
×
  • Create New...