当前位置:编程学习 > VB >>

inno setup 双引号里再使用双引号的问题,请朋友们帮忙

我用inno setup打包,有一行写注册表的代码如下,需要调用shgame.exe带参数运行,可是编译时会报错,不能在双引号里再使用双引号,这个谁能帮忙看看。 参数处"%L"的双引号必须保留着。
[Registry]

Root: HKCR; Subkey: "homefile\shell\open\command"; ValueType: string; ValueData: "{app}\Binaries\ShGame.exe -seekfreeloading "%L""

--------------------编程问答-------------------- 试试chr(34) --------------------编程问答-------------------- 试试下面的。
引用
[Registry]

Root: HKCR; Subkey: "homefile\shell\open\command"; ValueType: string; ValueData: "{app}\Binaries\ShGame.exe -seekfreeloading ""%L"""
--------------------编程问答-------------------- --------------------编程问答-------------------- 试试下面的。
引用
[Registry]

Root: HKCR; Subkey: "homefile\shell\open\command"; ValueType: string; ValueData: "{app}\Binaries\ShGame.exe -seekfreeloading \"%L\""
--------------------编程问答-------------------- 转义符明细不是 \,否则路径中都应该是 \\ 了。
用:
Root: HKCR; Subkey: "homefile\shell\open\command"; ValueType: string; ValueData: "{app}\Binaries\ShGame.exe -seekfreeloading ""%L""" --------------------编程问答-------------------- Root: HKCR; Subkey: "homefile\shell\open\command"; ValueType: string; ValueData: "{app}\Binaries\ShGame.exe -seekfreeloading """%L""""

貌似是加3个双引号 你可以试试 如果正确记得给分啊
补充:VB ,  控件
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,