View Full Version : How to write registry entries in Unicode ?
Does anyone how to write Unicode string withs Setup Factory scripting language ? (I need to write Japanese and Chinese entries, Setup Factory is on english computer)
Its not possible I suppose ? Except executing my own code from installer ?
you may add .reg files to your setup (for example like primer files) and silently merge them at install time by File.Run -ing
regedit /s "path_to_reg_file"
sckoh1
08-19-2008, 09:05 AM
Hello pww,
Will you please explain it easier?
instead of using SF registry actions to modify the registry, you can make a .reg file that will do the same. There shouldn't be a problem with unicode strings.
Include this .reg file as a primer file in the SF project (Resources -> Primer files). When the installer is started, the file will be unpacked to the TempLaunchFolder, and you have to send a command to regedit.exe to silently merge the file into the registry. The script code to do that should be something like
File.Run("regedit", "/s " .. "\"" .. _TempLaunchFolder .. "\\your_file.reg\"", "", SW_MINIMIZE, false);
, you may put it in the "On startup" or "On post install" script.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.