PDA

View Full Version : Unable to update files at destination path located through registry


jyothi
02-18-2003, 07:44 AM
Hi,

I have created Visual Patch project where i have 2 releases
v1.0.0.0 and v2.0.0.0.
I have to create a patch such that it should search registry and locate previously
installed path and should copy the updated files in that location.
Here i am able to locate previous installation through registry which i am storing in variable %prevloc% but %AppDir% is not getting set to that value. As patch needs
%AppDir% to be set to destination location, it is not updating old files.
but if i create patch without searching in registry and directly run at destination location files are getting updated.


So please guide me how to get previously installed path from registry and make patch files be updated at this location.

Thanks,
Jyothi

Mark
02-18-2003, 05:04 PM
Hi jyothi,

Why don't you set %AppDir% when you read from the registry?

I would suggest that instead of setting %prevloc% you set %AppDir% and set the default value in your Registry Variable action to %AppDir%.

Give this a try and let me know the results.

jyothi
02-19-2003, 05:29 AM
Hi mark,

I used %prevloc% in search path for key folder.
now it is working fine.
My problem is solved.

Thanks a lot,
Jyothi