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
Post a Comment