Jump to content

jaws75

Member
  • Posts

    124
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

Everything posted by jaws75

  1. Run this in a batch file and it will set Firefox as the default. "%systemdrive%\Program Files\Mozilla Firefox\firefox.exe" -silent -nosplash -setDefaultBrowser As for importing... I think it does it because there is no profile made yet. This can be used to create a default profile. "%systemdrive%\Program Files\Mozilla Firefox\firefox.exe" -silent -CreateProfile Default
  2. My answer was based on the above line. I interpreted it to mean eliminating $OEM$ from the install still made the install "DELL" like and not clean. Did I read it wrong?
  3. The install.wim is an image of a setup Dell PC. Therefore all the setting and differences from a retail Vista are integrated in the install.wim. It's easier to use a retail DVD and then transfer your Dell info for activation. read here
  4. You could try just using one Autounattend.xml in the root of the DVD but with separate entries for processorArchitecture="amd64" and processorArchitecture="x86" It may work but I have not tried it.
  5. Ya sure but then you still only have one image to use. Modified or unmodified. vlited or not vlited. This info was provided as an alternative method of doing things. I like being different. It's all about learning, baby! "uhh why?" Just because.
  6. Install the WAIK from HERE Run the Windows PE tool command prompt with admin rights. then use this command changing the path to the install.wim. imagex /info C:\Vista\Build\sources\install.wim 4 "Windows Vista ULTIMATE" "imagex /info C:\Vista\Build\sources\install.wim" alone will show info for all versions. "imagex /info C:\Vista\Build\sources\install.wim 4" will show info for image 4 only which is Ultimate. Adding the name at the end changes the name for the number you use (4 ultimate). You can also change the description by adding it after the name.
  7. OK after reading the info HERE I thought what if I inject my Autounattend.xml into my image what will happen. After a little trial and error I got it to work. This guide will tell you how to make a disc with an unmodified install and an unattened install. In order to inject your Autounattend.xml into your image it must be named Unattend.xml. It will not work if named Autounattend.xml. After mounting the image I put it in the %systemroot%\system32\sysprep folder of the mounted image. At this point the Unattend.xml will not be available until the image is uncompressed and rebooted. Therefore the windowsPE pass is ignored. We will fix that in a bit. If you made an iso now and tried it it would be fully attended until after you select the drive to install then it will be unattened after that. Lets fix that..... First make sure you have the waik installed. Learn here. Now lets assume your working folder is at C:\build and your mounted folder will be at C:\mount Now split your Autounattend.xml file into two files Autounattend.xml will only have the windowsPE pass. IMPORTANT Unattend.xml will have all other passes. Copy the DVD to the C:\build folder. Put the Autounattend.xml file in C:\build. Note: remove the <InstallFrom> section if you have it because you want to be able to select later. Now because I only use one type of Vista, HomePremium I will extract that one to use only that one. All other versions will be gone. Note: you can vlite your DVD at this point to add hotfixes as well so when you extract your Vista version all versions on your new disc will be updated. Make sure vlite doesn't change your Autounattend.xml. In the Windows PE command tool prompt run... imagex /export C:\build\sources\install.wim 3 C:\build\install.wim "Windows Vista HOMEPREMIUM original" This will extract Vista premium to a new file at C:\build\install.wim. When done run the same line again but changing the name. Note: the second time you do this it is almost instant because both installs are identical. imagex /export C:\build\sources\install.wim 3 C:\build\install.wim "Windows Vista HOMEPREMIUM modified" You can do this as many times as you like so your install disc has as many versions as you like. Just make new names for each one. Now the C:\build\install.wim image will have two identical versions of Premium in it with only the name being different. You can use any names you want or export any version. To change versions just change the "3" to... 1 for Business 2 for Home basic 3 for Home premium 4 for ultimate 5 or 6 for the n versions Now Move the C:\build\install.wim to the C:\build\sources folder. This will overwrite the original install.wim but you don't need it. Now we want to modify our "modified" version. Mount it with... imagex /mountrw C:\build\sources\install.wim 2 C:\mount Changing the 2 to 1 will mount the first image in install.wim (original). But we want to leave it alone so we use 2 (modified). Now take your Unattend.xml and put in the C:\mount\windows\system32\sysprep folder. Make whatever changes you like to this install and when done modifying it unmount it with... imagex /unmount /commit C:\mount You should be able to load this into vlite now and tweak it there too. I didn't test it but there is no reason why it won't work. You could use vlite to integrate hotfixes first before you export the image with "imagex /export..." above. That way both your versions "original" and "modified" are updated with hotfixes. Now if you make an iso with oscdimg and boot it (use vmware to test first) the windowsPE pass will be unattended (except selecting a version) with your Autounattend.xml. Then selecting the "original" version it will be fully attended and selecting the "modified" version the rest will be fully unattended after the destination drive is set. My Unattend.xml skips oobe adding my user info and then install my apps using <FirstLogonCommands>. So your Autounattend.xml handles everything til you select a drive to install to. Which can be unattended or not. Your Unattend.xml that you inject into the sysprep folder handles all other unattended after that. I hope my description is error free. Any questions just ask. For reference my Autounattend.xml is below. This will allow me to select where to install Vista to and prompt me to select which version to install "original" or "modified". You must add your key for the version you are using. <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="windowsPE"> <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SetupUILanguage> <UILanguage>en-US</UILanguage> </SetupUILanguage> <InputLocale>00040408</InputLocale> <UserLocale>en-US</UserLocale> <UILanguage>en-US</UILanguage> <SystemLocale>en-US</SystemLocale> </component> <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Diagnostics> <OptIn>false</OptIn> </Diagnostics> <DiskConfiguration> <WillShowUI>Always</WillShowUI> </DiskConfiguration> <DynamicUpdate> <Enable>false</Enable> </DynamicUpdate> <UserData> <ProductKey> <Key>put your key for the version of Vista you are installing</Key> <WillShowUI>OnError</WillShowUI> </ProductKey> <Organization>your organization</Organization> <FullName>your name</FullName> <AcceptEula>true</AcceptEula> </UserData> <ImageInstall> <OSImage> <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> <InstallToAvailablePartition>false</InstallToAvailablePartition> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall> </component> </settings> <cpi:offlineImage cpi:source="wim:D:\Vista\Build\Image\premium.wim#Windows Vista HOMEPREMIUM" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
  8. When you modify a version like ultimate only ultimate will get changed. All other versions are untouched. If you want to integrate hotfixes to all versions you will have to run vlite for each version separately.
  9. I've taken this one step further now. I moved my install.wim from the DVD to the hard drive and referenced it in my Autounattend.xml and put the Autounattend.xml on my floppy. (yes I still have a floppy. first time I've used it in years) <ImageInstall> <OSImage> <InstallFrom> <Path>D:\Vista\Build\Image\install.wim</Path> <MetaData wcm:action="add"> <Key>/IMAGE/NAME</Key> <Value>Windows Vista (vLite) HOMEPREMIUM</Value> </MetaData> </InstallFrom> <InstallToAvailablePartition>false</InstallToAvailablePartition> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall> <Path>D:\Vista\Build\Image\install.wim</Path> is the important part. My install disc is now a 314 Mb CD and never has to be changed. No more DVDs in the garbage after updates! It installs a bit quicker off the hard drive too.
  10. Rather then creating a new DVD every time I change what apps I want installed during my unattended install I use this method. In my Autounattend.xml in the oobeSystem pass I use the following. <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>%systemroot%\system32\install.bat</CommandLine> <Description>install batch file</Description> <Order>1</Order> </SynchronousCommand> </FirstLogonCommands> On the DVD I put the install.bat file to be copied to the system32 folder. Use $OEM$ folders or inject it into the install.wim image. install.bat @echo off cd /d %~dp0 FOR %%j IN (D E F G H I J K L M) DO IF EXIST %%j:\external.txt SET EXTERNAL=%%j: if exist %EXTERNAL%\Vista\Install\tweaks.bat start /wait %EXTERNAL%\Vista\Install\tweaks.bat if exist %EXTERNAL%\Vista\Install\tweaks.reg REGEDIT /S %EXTERNAL%\Vista\Install\tweaks.reg exit What that does is checks the root of every drive for an external.txt file and sets the drive letter to it when found. Then if the files on the drive exist eg. D:\Vista\install\tweaks.bat they are executed. The command at <FirstLogonCommands> is launched with elevated privileges and all commands launched from that also have inherited elevated privileges. The install.bat file on the DVD never has to be changed. All my tweaks and program installs are done from the two files on my other hard drive. It's a lot easier to just change them then create a new DVD every time. They should even install quicker since they run from a hard drive and not a DVD. The "cd /d %~dp0" command is not needed in this batch I always include out of habit. You should perhaps include it in your external batch file if you use relative paths to make sure the command prompt is located at the location of the external batch file. I've been doing it this way with XP for years. Works fine with Vista as well. Good luck!
  11. Thanks for the advice. It was actually easier then I thought it would be. Worked like a charm. zeko: please don't hijack this thread. Start your own if you have questions.
  12. I use the below batch file to replace Notepad with Notepad2. It works fine after install but not unattended. I do it with the <FirstLogonCommands> section in the oobeSystem pass. I have other synchronous commands that work fine but not this one. The problem is with takeown or icacls. At this stage of install the <FirstLogonCommands> are launched with elevated privileges. Either of those commands with elevated privileges must be the problem. The notepad.original.exe files do get created but that's it. I can't do any vmware testing because my s754 amd64 does not allow a guest 64bit OS, only a host. It's an early revision that has that limitation. Testing requires burning a DVD and reinstalling. Any ideas? @echo off cd /d %~dp0 takeown /f %Systemroot%\notepad.exe takeown /f %Systemroot%\System32\notepad.exe icacls %Systemroot%\notepad.exe /grant "%username%":f icacls %Systemroot%\System32\notepad.exe /grant "%username%":f ::IF EXIST %SYSTEMROOT%\SysWOW64 (bcdedit.exe -set loadoptions "DDISABLE_INTEGRITY_CHECKS") copy %Systemroot%\notepad.exe %Systemroot%\notepad.original.exe copy %Systemroot%\System32\notepad.exe %Systemroot%\System32\notepad.original.exe copy notepad2.exe %Systemroot%\notepad.exe /y copy notepad2.exe %systemroot%\System32\notepad.exe /y exit
  13. I agree. It should already be added to the vlite answer file. Or the name shouldn't be changed like it is. I would prefer the name not changed but to each there own.
  14. It will create a simple answer file. It won't be unattended though. The answer file will be called Autounattend.xml and will be in the root your working folder. Look around in the unattended section for help with unattended installs. after applying your changes to vista you can modify the Autounattend.xml or add a $OEM$ folder before creating the image.
  15. OK I don't understand these... DEL "%SystemRoot%\WebWallpaper.jpg" DEL "%SystemRoot%\system32dllcache.scr" DEL "%SystemRoot%\system32.scr" do you mean this... DEL /q "%SystemRoot%\Web\Wallpaper\*.jpg" DEL /q "%SystemRoot%\system32\dllcache\*.scr" DEL /q "%SystemRoot%\system32\*.scr" this will delete all .jpg and .scr files in those directories. And Yzöwl doesn't the del command need the /q switch to be silent or won't it ask you to confirm on each del command?
  16. OK I edited it a few times so check it again... also I don't know if this path is correct. %systemroot%\system32dllcache.scr I use Vista not XP so I don't know what it's referring to hope it helps
  17. The first line of your cleanup.cmd should be cmdow @ /HID not cmdow @ HID edit: I just noticed a bunch of other errors in it as well RD S Q should be RD /S /Q DEL should be DEL /Q also missed quotes and \ here. easier to just fix them all for ya. cmdow @ /HID shutdown.exe -r -f -t 60 -c Windows XP genstarter om 1 minut... net user aspnet delete DEL /Q %systemroot%\*.bmp DEL /Q %systemroot%\WebWallpaper.jpg DEL /Q %systemroot%\system32dllcache.scr DEL /Q %systemroot%\system32.scr DEL /Q "%AllUsersProfile%\Start Menu\Windows Update.lnk" DEL /Q "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk" DEL /Q "%AllUsersProfile%\Start Menu\Windows Catalog.lnk" RD /S /Q %systemdrive%\drivers RD /S /Q %systemdrive%\install EXIT
  18. This seems to happen because vlite adds (vlite) to the version description. Open Autounattend.xml in notepad and directly below the </UserData> tag add <ImageInstall> <OSImage> <InstallFrom> <MetaData wcm:action="add"> <Key>/IMAGE/NAME</Key> <Value>Windows Vista (vLite) ULTIMATE</Value> </MetaData> </InstallFrom> <InstallToAvailablePartition>false</InstallToAvailablePartition> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall> Note: make sure it's after the </UserData> tag and not the <UserData> tag
  19. Only problem I had is my mouse didn't work after reboot. I rebooted it again and all is well. x64
  20. Did you extract the .gadget archive? It is just a zip archive with the extension changed to .gadget. If not extract it to a folder with .gadget at the end of the folder name. Like AppLauncher.gadget I don't use VAIO. I use Vista. Also you will have to use preview build #2 of VAIO for the App Launcher to work. #2 fixed a bug that prevented it from working before.
  21. Updated App Launcher to v1.8. It now has Drag and Drop capabilities. See post 25 for info and update.
  22. I fixed quite a few bugs in App Launcher. I recommend people update to the new version. Now at v1.7 I will put drag and drop in it soon.The "tooltips" are there already. It only works it the gadget is the active window though. (click a blank space in the gadget and then hover over the icons) It will show the path to the application. The original code was full of bugs and errors. The easiest way to tackle the project was to eliminate bulk. The original rearranging of icons didn't work properly anyway. How often do you need to rearrange your icons? The arrows in settings are not too inconvenient. Works for me! If you really want that feature I can give you the original code and you can use that instead.
  23. Notice for XP VAIO users. The bug in VAIO that causes the App Launcher to crash the sidebar has been fixed. The problem was in the handling of gimage:/// My gadget works in the updated version of VAIO. A new version of VAIO is to be released this weekend. Also fixed a typo in App Launcher that caused an error in VAIO.
  24. not needed anymore The problem I had has been fixed and the soon to be released update for VAIO does not crash anymore. I need another way of viewing the icon of an exe in html/javascript/vbscript. What I'm doing is modifying a Vista sidebar gadget. The following method works perfect in Vista... <img src='gImage:///filePath.exe'> however using the same method in XP crashes the sidebar. I have traced the crash to this line of code. XP does not like gimage:/// What ways are there to show an .exe icon in an html page? Thanks in advance.
  25. I fixed the pink fringe however I forced it to always remain small (docked) size. I couldn't find a way to change the g:background src image background. Timer gadget (no pink, small only) Let me know how it works. enjoy! Updated App Launcher to v1.2. Maintenance release only.
×
×
  • Create New...