lib9 Posted February 7, 2014 Posted February 7, 2014 hi everyone, my question is a little bit crazy but i'll try my best to clarify it (and BTW i wish Lego to answer it if possible), so when we use Wintoolkit there is those files added to different places in Windows folder like : "%windir%\System32\WinToolkitRunOnce.exe" ; "%windir%\System32\WinToolkitRunOnce.exe.config" ; "%windir%\System32\WinToolkit_RunOnceLog.txt" ; "%windir%\Prefetch\WINTOOLKITRUNONCE.EXE-*.pf" (Thank you mooms) and some others who knows...? so my questions is : 1. Is removing those files from install.wim (Offline) will make some problems in Windows 7 installation ?2. Then if the case how i can remove those files without creating problems in Windows 7 installation ? and thanks for your answers. Quote
Tuesday77 Posted February 7, 2014 Posted February 7, 2014 These files r from RO-Installer (WTK)If u remove, u just remove the RO-Installer.That thing installs some "not-integretable" updates and updates/installers they u have added.Without it, u not install these, nothing more, no problems in Windows 7 installation. Greez Quote
mooms Posted February 7, 2014 Posted February 7, 2014 If someone has a complete list of leftover files safe to delete, please post them here. I have already found 1 folder (containing drivers.log) and 4 files : "%windir%\WinToolkit""%windir%\System32\WinToolkitRunOnce.exe""%windir%\System32\WinToolkitRunOnce.exe.config""%windir%\System32\WinToolkit_RunOnceLog.txt"%windir%\Prefetch\WINTOOLKITRUNONCE.EXE-*.pf I have created a "cleanup" SFX (to run with withWinToolkitRunOnce) containing a batch file that will delete the files on next reboot (using RunOnce).This way the leftover files & folder are safely removed and you can check log before rebooting. The command executed:REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /V Cleanup /D "CMD /C DEL %WINDIR%\system32\WinToolkit*.* & DEL %WINDIR%\Prefetch\*.pf & RMDIR /S /Q %windir%\WinToolkit"Here is the SFX: http://www.mediafire.com/download/9c5d6c02vtv6co5/SFX_Cleanup.exe Quote
Tuesday77 Posted February 7, 2014 Posted February 7, 2014 Yeah, was think its clean after first start and he mean install.wim.Thank you mooms, that would be nice to have a cleanup sfx.May move log to dekstop (option)? greez Quote
mooms Posted February 7, 2014 Posted February 7, 2014 Files will be deleted only on next reboot, so you can check logs and save them before deletion. Quote
mooms Posted February 8, 2014 Posted February 8, 2014 Compiled the batch file with bat to exe converter, now the executable is only 25 KB http://www.mediafire.com/download/yg5zbd2ffd5htpv/WTCleanup.exe Quote
bphlpt Posted February 8, 2014 Posted February 8, 2014 Ideally, I would think that this kind of thing should be included in Win Toolkit to clean up after itself Whether it should do so as a default is the question, I guess. Regarding logs, I would think that once everything is working correctly everyone would like it all cleaned up. What good is a bunch of logs that say "successful" after all? But as the user is learning how things work, those logs can be invaluable to help the user, or Lego, figure out what went wrong, so the user should keep all the logs they can until they are sure they have a successful methodology. Cheers and Regards Quote
mooms Posted February 8, 2014 Posted February 8, 2014 Yes, ideally WinToolkitRunOnce should delete itself once shut down.Note that my cleanup script will also clean Prefetch folder. (Obviously installers are only launched once by WinToolkitRunOnce , so Prefetch can be emptied). Quote
Legolash2o Posted February 21, 2014 Posted February 21, 2014 REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /V Cleanup /D "CMD /C DEL %WINDIR%\system32\WinToolkit*.* & RMDIR /S /Q %windir%\WinToolkit"The next version will add this automatically at the end of the installation process. TRSyntax 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.