backslash - Inno setup forward slashes instead of back slashes -


i have make inno setup script write registry {app} path forward slashes instead of backslashes

[registry] root: hklm; subkey: "system\currentcontrolset\control\session manager\environment"; valuetype:string; valuename:"app_home"; valuedata:"{app}"; flags: preservestringtype 

how {app} value forward slashes (inno default write backslashes)?

you have make custom function {code:} scripted constant, e.g. way:

[setup] appname=my program appversion=1.5 defaultdirname={pf}\my program  [registry] root: hklm; subkey: "system\currentcontrolset\control\session manager\environment"; valuetype: string; valuename: "app_home"; valuedata: {code:getregistrydata}; flags: preservestringtype  [code] function getregistrydata(value: string): string; begin   result := expandconstant('{app}');   stringchangeex(result, '\', '/', true); end; 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -