I need to install a piece of software with a lot of files. Our experience showed, that on highly fragmented hard drives that leads to very poor performance. So I want to include automatic disk defragmentation into my installer (which I plan to write using NSIS). How can I include a defrag command and read the results as part of my installer?
Defragmenting Windows Drives as part of an NSIS installer script?
194 Views Asked by stwissel At
1
There are 1 best solutions below
Related Questions in INSTALLATION
- Bundle Multiple Xamarin apps in one pkg installer
- install a R package from directory
- Can I automate auto-app installation on my Android device?
- Stop the installshield installation if a file is not found in vb.net
- GVM: Issue when installing GVM in Ubuntu 14.04
- Not able to format namenode in hadoop-2.6.0 multi node installation
- How to install SFML in ubuntu?
- how to install packages from pypi to anaconda?
- What is PREFIX IN make PREFIX=$HOME/usr/local/OpenBLAS?
- WiX installer - change the install path
- First time app run action depending on how app was installed (Android)
- First time app run action depending on how app was installed (iOS)
- Error while installing HBase on windows
- Produce both versions x32 and x64 under PyInstaller
- Python: Trouble with dill installation
Related Questions in WINDOWS-INSTALLER
- How can I install an MSI using python's subprocess, passing an install directory containing a space?
- Upgrading MSI throwing 'method not found' error
- Windows installer - run a subsequent time, select "modify" and run specific steps
- Single Package Authoring
- WiX - How to use a config file to decide which MSI to run?
- Want to create mysql user in installation with full Privileges In NSIS
- How to change Install button display text conditionally
- error of updating an C# web service application by accessing a URL from MS installer command "msiexec" in C# VS 2010
- Service dependencies are causing my wix msi to force a reboot on uninstall
- Running msi causes “module failed to register” in 32bit win7,but works in 64bit win7
- Change the installation path with msi API
- After installation of website it changes Application Pool of web application that follows it.
- Getting strange errors when installing visual studio 2015 community rc
- Creating a silent installer for a MSI
- install msi with a product code through msiexec
Related Questions in NSIS
- How to get the exe path in nsis script?
- Making installer/reinstaller in NSIS
- Packaging large folders NSIS
- NSIS MessageBox jump offset
- Want to create mysql user in installation with full Privileges In NSIS
- NSIS: Make async web request with query string
- NSIS' uninstaller works very fast
- Creating a silent installer for a MSI
- NSIS CopyFiles not working for .py files
- Is NSIS 3.0b1 stable for production usage?
- How to execute a command from a NSIS finish page
- wxExecute can't execute file that needs admin permissions UAC
- NSIS multiple if conditions
- Embedding SqlLocalDb in NSIS installer script
- How to pass dynamic variables to my .EXE?
Related Questions in DEFRAGMENTATION
- Clustered Columnstore Index Fragmentation - Index Properties and dm_db_column_store_row_group_physical_stats differences
- (SQL Server) Why GUID or other random value as high-order key will cause fragmentation?
- (SQL Server) How to defragment indexes with LOBs?
- Can defragmentation be done on a Knuth heap?
- MS-SQL: Space overhead for rebuild vs. recreate
- Defragmenting Windows Drives as part of an NSIS installer script?
- Defragmenting SQL indexes
- How to find out fragmented indexes and defragment them in PostgreSQL?
- Run progress bar along with Disk Defragmentation in WPF
- File System Filter Driver: Creating a Defragmenter
- Writing mock disk defragmentation method using arrays, shuffling them across
- How can I find information about a file from logical cluster number in NTFS/FAT32?
- Programmatically determine a file's fragmentation status
- Is defragging tough on replication?
- Windows defrag is not recognized as an internal or external command, operable program or batch file
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I would integrate Jkdefrag (http://kessels.biz/JkDefrag/) in the setup and run it with the command line options to defragment only the directory where you copied the files into.
There are plenty of options and it is open source.
NOTE: It uses the defragmentation API of MS, so it is as safe to use as any other defrag tool. And you have the source if you need to adapt something or change the way the files are sorted.