我可以添加到win注册表中,以便当您右键单击文件时,资源管理器上下文菜单会获得一个调用“\ path \ to \ exe”“path \ to \ this \ file \ you \”的条目右\点击\上“?如果可以在Inno设置中轻松完成,您能否提供一些示例? (以及卸载时删除注册表项)
感谢。
答案 0 :(得分:0)
我在MSBuild Launch Pad(http://msbuildlaunchpad.codeplex.com/)中所做的是这样的,
安装程序使用以下注册表项
[注册表]
Root:HKCR;子键:SystemFileAssociations.sln \ shell \ MSBuild; ValueType:string;标志:uninsdeletekey deletekey; ValueName:Icon; ValueData:“”“{app} \ MSBuild_APPICON.ico”“”
Root:HKCR;子键:SystemFileAssociations.csproj \ shell \ MSBuild; ValueType:string; ValueData:“”“{app} \ MSBuild_APPICON.ico”“”;标志:uninsdeletekey deletekey; ValueName:Icon
Root:HKCR;子键:SystemFileAssociations.vbproj \ shell \ MSBuild; ValueType:string; ValueData:“”“{app} \ MSBuild_APPICON.ico”“”;标志:uninsdeletekey deletekey; ValueName:Icon
Root:HKCR;子键:SystemFileAssociations.vcxproj \ shell \ MSBuild; ValueType:string; ValueData:“”“{app} \ MSBuild_APPICON.ico”“”;标志:uninsdeletekey deletekey; ValueName:Icon
Root:HKCR;子键:SystemFileAssociations.oxygene \ shell \ MSBuild; ValueType:string; ValueData:“”“{app} \ MSBuild_APPICON.ico”“”;标志:uninsdeletekey deletekey; ValueName:Icon
Root:HKCR;子键:SystemFileAssociations.shfbproj \ shell \ MSBuild; ValueType:string; ValueData:“”“{app} \ MSBuild_APPICON.ico”“”;标志:uninsdeletekey deletekey; ValueName:Icon
Root:HKCR;子键:SystemFileAssociations.ccproj \ shell \ MSBuild; ValueType:string; ValueData:“”“{app} \ MSBuild_APPICON.ico”“”;标志:uninsdeletekey deletekey; ValueName:图标 根:HKCR;子键:SystemFileAssociations.proj \ shell \ MSBuild; ValueType:string; ValueData:“”“{app} \ MSBuild_APPICON.ico”“”;标志:uninsdeletekey deletekey; ValueName:Icon
Root:HKCR;子键:SystemFileAssociations.sln \ shell \ MSBuild \ command; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey
Root:HKCR;子键:SystemFileAssociations.csproj \ shell \ MSBuild \ command; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey
Root:HKCR;子键:SystemFileAssociations.vbproj \ shell \ MSBuild \ command; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey
Root:HKCR;子键:SystemFileAssociations.vcxproj \ shell \ MSBuild \ command; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey
Root:HKCR;子键:SystemFileAssociations.oxygene \ shell \ MSBuild \ command; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey
Root:HKCR;子键:SystemFileAssociations.shfbproj \ shell \ MSBuild \ command; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey
Root:HKCR;子键:SystemFileAssociations.ccproj \ shell \ MSBuild \ command; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey
Root:HKCR;子键:SystemFileAssociations.proj \ shell \ MSBuild \ command; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey