I have a vendor MSI and created transforms for the same. Now I got to change installation drive from C to D.
Here are my efforts on this using PUBLIC properties,
1) ROOTDRIVE= D:\ AND INSTALLDIR=D:\Apps\Ultrscale
2) TARGETDIR
3) PRIMARYVOLUME
No success on the above tries.
Finally CA worked for me,
Step1 : I have created new user defined property called MYDIR from property tab and assigned value as D:
Step2 : Set directory custom action should be used
Custom Action Name- CA_INSTALLDIR(Name as you wish)
Directory-APPDIR(Find out the default directory from files in the Installation Expert)
Directory Value-[MYDIR]Apps\Ultrascale(This is value where your directory should be)
Place this custom action after Cost Finalize in the Execute Immediate
Note:If your using silent switches for your package to install then you should be placing the CA in the Execute Immediate otherwise
It should be put into Normal user interface sequence.
Comments