2010-12-19 185 views
0

什么我可以添加到win注册表,以便资源管理器上下文菜单,当你右键点击一个文件,获得一个条目,调用“\路径\到\ exe”“路径\ \ \ \ \文件\ \你正确\点击\上“?如果可以轻松地在Inno设置中完成,你能否给我提供一些例子? (以及卸载时删除注册表项)Inno设置注册表

谢谢。

回答

0

我的MSBuild发射台(http://msbuildlaunchpad.codeplex.com/)所做的就是这样的,

  1. 您的应用程序必须从Windows资源管理器正确处理参数。
  2. 下面的注册表项由安装使用,

    [注册表]

    根:HKCR;子项:SystemFileAssociations.sln \ shell \ MSBuild; ValueType:string;标志:uninsdeletekey deletekey; ValueName:图标; 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:Icon Root:HKCR;子项:SystemFileAssociations.proj \ shell \ MSBuild; ValueType:string; ValueData:“”“{app} \ MSBuild_APPICON.ico”“”;标志:uninsdeletekey deletekey; ValueName:Icon

    Root:HKCR;子项:SystemFileAssociations.sln \ shell \ MSBuild \命令; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey

    Root:HKCR;子项:SystemFileAssociations.csproj \ shell \ MSBuild \命令; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey

    Root:HKCR;子项:SystemFileAssociations.vbproj \ shell \ MSBuild \命令; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey

    Root:HKCR;子项:SystemFileAssociations.vcxproj \ shell \ MSBuild \命令; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey

    Root:HKCR;子项:SystemFileAssociations。OXYGENE \壳\的MSBuild \命令; 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 \命令; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey

    Root:HKCR;子项:SystemFileAssociations.proj \ shell \ MSBuild \命令; ValueType:string; ValueData:“”“{app} \ MSBuildLaunchPad.exe”“”“%1”“”;标志:uninsdeletekey deletekey