PDA

View Full Version : project is installed in wrong place



hsong1
11-26-2003, 09:03 AM
hello

When i install my whole program, to default INSTALLDIR, everything works fine. but if i install my feature one by one, the features are installed in wrong place.

Default INSTALLDIR = C:\program files\myproject

i install first feature, i set install directory to c:\program files\myproject\temp.
(then all the files are installed to c:\program files\myproject\temp\bin).

then i go to maintenence dialog and install another feature, which uses same direcoty location as first one. but this one is installed in worng place.
it should installed in

C:\program files\myproject\temp\bin\dat

instead,

C:\program files\myproject\temp\temp\bin\dat

I check my Directory table to straight this out. but it looks fine to me.

Directory Directory Parent DefaultDir
BIN INSTALLDIR bin
DAT BIN dat

The strange part is that, if i install my project in new location, such as c:\program\test\so\... it works fine.

problem only occurs with using default location + extra path at the end.

how can i make this to work???

mberterm
12-17-2003, 09:10 AM
As a method for troubleshooting, you can display the value of the directory table entry at different points in the installation process to try and narrow down the behaviour.

To work-around the behaviour, there are 3 KBs that discuss manually setting a destination at install-time which you might finde useful; Q105861, Q105840 and Q105723.

http://support.installshield.com/kb/view.asp?articleid=Q105723
http://support.installshield.com/kb/view.asp?articleid=Q105840
http://support.installshield.com/kb/view.asp?articleid=Q105861

hsong1
12-18-2003, 06:08 PM
thank you. i locate the problem.
i have fixed this issue and yet, still do not understand the cause of this problem. it seems that after i call MsiSetTartgetPath, it creates another directory path........