The official website downloads the version of Windows, the default is to put C:\squid, if you need to change the default path, you need to add at least the following configuration in etc\squid.conf file
# uncomment and adjust the following to add a disk cache Directory.cache_dir UFS G:/apps/squid2/var/cache/squid 100 256 # Leave Coredumps in the first cache Dircoredump_dir g:/apps/squid2/var/cache/squidmime_table G:/apps/squid2 /etc/mime.conf logformat Squid%tl%ts.%0 3tu%6tr%>a%ss/%03hs%<st%rm%ru%un%sh/%<a%mt logfile_daemon g:/apps/squid2/libexec/ Logfile-daemon.exediskd_program G:/apps/squid2/libexec/diskd-daemon.exeunlinkd_program G:/apps/squid2/libexec/ Unlinkd.exe#pinger_program G:/apps/squid2/libexec/pinger.exe#cache_dns_program G:/apps/squid2/libexec/ Dnsserver.exeicon_directory g:/apps/squid2/share/iconserror_directory g:/apps/squid2/share/errors/englishcache_ Log G:/apps/squid2/var/logs/cache.logcache_store_log G:/apps/squid2/var/logs/store.logaccess_log G:/apps/squid2/ Var/logs/access.log squid need to manually create the cache directory Mkdir g:\apps\squid2\var\cache\squid execute squid.exe-f when first running G:/apps/squid2/etc/squid.conf-z then executes squid.exe-f g:/apps/squid2/etc/squid.conf-i installs Windows service, you need to use the Administrator command Line window when installing, otherwise cannot install then can use net start squid to start
Squid in Windows change the default installation path configuration description