
mt16in1.5524906299252676E12 asked a question.
unable to assign INSTALLDIR=<system folders> in vista OS
Hi,
I am facing this problem on Vista OS. This project is developed in IS 2009 Basci MSI project.
Problem is i have a custom action written in installscirpt which that has the following code
INSTALLDIR="C:\\Test1\\";
MessageBox(INSTALLDIR,INFORMATION)
INSTALLDIR="C:\\Program Files\\";
MessageBox(INSTALLDIR,INFORMATION)
INSTALLDIR="C:\\Windows\\";
MessageBox(INSTALLDIR,INFORMATION)
INSTALLDIR="C:\\Test2\\";
MessageBox(INSTALLDIR,INFORMATION)
Output of this function is -
first messagebox is displaying C:\Test1
Second messagebox is displaying C:\Test1
Third messagebox is displaying C:\Test1
Fourth messagebox is displaying C:\Test2
Why INSTALLDIR is not getting updated with C:\Program Files or C:\windows or any windows system folder?
This custom action is included after Cost Finalize standard action in execute sequence.
On vista OS, when i launch this installer, UAC is coming before this custom action is getting exectued. So, i am assuming this custom action has enough privileges.
Appreciate your help...
-Thanks
Devin Ellingson
Software Developer
Acresso Software
I am not getting any error. Its just not getting updated with the new path. I didnt understand why it is happening only system folders only. Is this the intended behaviour?
I tried MSISetTargetPath also. But no luck.
Devin Ellingson
Software Developer
Acresso Software
STRING str;
str = INSTALLDIR ^ MYString