cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jayleung
Level 3

Patch destination changes

Hi,

I have a question about installing patch. My application design wants to allow users to change the patch install destination during patching, and so I added a dialog to allow them to change the path. Then, I tried setting INSTALLDIR with the new path, but patch doesn't install to the user selected location. It installs to the location that was selected in the original release. I tried using MsiSetProperty() and MsiSetTargetPath(), but both did not work.

Does anybody have any idea what I should do about it? Or, is it possible to do it?

Thanks in advance.
Labels (1)
0 Kudos
(2) Replies
Kevin_L
Level 5

Hi,

I think it's impossible to change the INSTALLDIR value inside a patch.

Regards,

Kevin
0 Kudos
jayleung
Level 3

Kevin, thanks for your reply.

I tried playing with the registry settings in HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall and HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\installer\userdata\. But, I couldn't make it to change the patch location.
0 Kudos