image frame

博客

知足常乐

37.Visual Studio创建系统服务程序

1.选择“Windows 服务”创建项目
Windows 服务
2.在Service.cs中创建安装程序
点击添加安装程序
3.serviceInstaller填写Description、DisplayName、ServiceName,其对应关系如下图。StartType设置为Automatic让启动类型设置为自动


4.serviceProcessInstaller的Account更改为LocalSystem。

5.编写代码,在Service.cs的OnStart编写代码
6.安装卸载命令

  • 安装
    1
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe 程序路径
  • 卸载
    1
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe -u 程序路径

35.Win10&Win11下载官网

正式版下载

1
https://www.microsoft.com/zh-cn/software-download/home

内测版

1
https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewiso

Win10企业版(评估)

1
https://www.microsoft.com/zh-cn/evalcenter/download-windows-10-enterprise

Win11企业版(评估)

1
https://www.microsoft.com/zh-cn/evalcenter/download-windows-11-enterprise

34.下载Chrome&Edge离线安装包(包括Win7&8最后可用版)

Edge浏览器

1
https://www.microsoft.com/zh-cn/edge/business

Chrome浏览器(国内官网链接相同,只需把com换成cn)

  • 32位
    1
    https://www.google.com/intl/zh-CN/chrome/?standalone=1&platform=win
  • 64位
    1
    https://www.google.com/intl/zh-CN/chrome/?standalone=1&platform=win64

Win7&Win8最后可用版存放地址:
https://pan.baidu.com/s/1cSkNVFOS4pi6XesaRFUwyQ
密码:e63h

  • 找到“浏览器(Win7&8最新版)”文件夹
  • Chrome开头为谷歌Chrome浏览器,Edge开头为Microsoft Edge浏览器
  • x86表示为32位版本,x64为64位版本
  • Edge浏览器保留了一份企业版(文件名带Enterprise),虽然没用出来企业不企业有什么差别,但还是选择保留了一份

33.IPTV源获取网站

1
2
网站1
https://tonkiang.us
1
2
3
4
网站2(不太好用)
https://iptv-org.github.io
Github项目:
https://github.com/iptv-org/iptv
1
2
3
网站3
https://github.com/fanmingming/live
https://live.fanmingming.com/tv/m3u/ipv6.m3u

32.ESD提取转换WIM

查询ESD的信息

1
Dism /Get-WimInfo /WimFile:"C:\Users\administrator\Desktop\install.esd"

提取转换为wim,注意SourceIndex要对应ESD中查询到的对应镜像ID

1
Dism /Export-Image /SourceImageFile:"C:\Users\administrator\Desktop\install.esd" /SourceIndex:5 /DestinationImageFile:"C:\Users\administrator\Desktop\install.wim" /Compress:Max /CheckIntegrity
  • Copyrights © 2023-2024 kukusun