Unity打包可安装exe

使用Inno Setup,参考链接:

https://jingyan.baidu.com/article/36d6ed1f50ecfc1bcf4883aa.html

修改Iss文件,增加以下部分(外部通过注册表,调用exe)

[registry]
;本段处理程序在注册表中的键值
Root:HKCR; Subkey: "LocationSystem"; ValueType: "string"; ValueName: "URL Protocol"; Flags: uninsdeletevalue
Root:HKCR; Subkey: "LocationSystem\DefaultIcon"; ValueType: "string"; ValueData:{app}\Location.exe; Flags: uninsdeletevalue
Root:HKCR; Subkey: "LocationSystem\shell"; ValueType: "string"; Flags: uninsdeletevalue
Root:HKCR; Subkey: "LocationSystem\shell\open"; ValueType: "string"; Flags: uninsdeletevalue
Root:HKCR; Subkey: "LocationSystem\shell\open\command"; ValueType: "string"; ValueData:{app}\Location.exe %1; Flags: uninsdeletevalue

参考链接:

https://dong-shuai22-126-com.iteye.com/blog/1428818

猜你喜欢

转载自blog.csdn.net/Witness_K/article/details/85235930