R
Rob Y
I want to set up INI file mapping for an app that writes to an INI file
in the default location. A client is deploying this app via Citrix and
needs to have user-specific INI files, and it looks like with a few
entries in the registry I ought to be able to accomplish this with no
changes to the app.
I tried it on my machine, and can't get it to work. The file I'm trying
to map is called jdsapprf.rs27000.01.ini. I don't want to have to add
special section entries to the registry, since I'm trying to make this
all automatic. So all I did was clone the entry for Clock.ini by adding
a key for:
\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\IniFileMapping\jdsapprf.rs27000.ini
Under that, I changed the (Default) entry to read
#USR:Software\Wem\jdsapprf.rs27000.01
where Wem is the name of my app (not that that should matter, right?).
Anyway, this has no effect. The WritePrivateProfile calls are still
writing the INI file. I've tried deleting the INI file, logging out and
back in, and manually creating the
\HKEY_CURRENT_USER\Software\Wem\jdsapprf.rs27000.01 key. What am I
doing wrong? Are periods illegal in these registry names? Do I need to
reboot the system (is logging out not enough)?
Thanks,
Rob
in the default location. A client is deploying this app via Citrix and
needs to have user-specific INI files, and it looks like with a few
entries in the registry I ought to be able to accomplish this with no
changes to the app.
I tried it on my machine, and can't get it to work. The file I'm trying
to map is called jdsapprf.rs27000.01.ini. I don't want to have to add
special section entries to the registry, since I'm trying to make this
all automatic. So all I did was clone the entry for Clock.ini by adding
a key for:
\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\IniFileMapping\jdsapprf.rs27000.ini
Under that, I changed the (Default) entry to read
#USR:Software\Wem\jdsapprf.rs27000.01
where Wem is the name of my app (not that that should matter, right?).
Anyway, this has no effect. The WritePrivateProfile calls are still
writing the INI file. I've tried deleting the INI file, logging out and
back in, and manually creating the
\HKEY_CURRENT_USER\Software\Wem\jdsapprf.rs27000.01 key. What am I
doing wrong? Are periods illegal in these registry names? Do I need to
reboot the system (is logging out not enough)?
Thanks,
Rob