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

How to redefine INSTALLDIR?


I currently have INSTALLDIR set to: \Program Files\ABCD. How to redefine my INSTALLDIR and set it to \Program Files? All installed files will stay in the same locations. All I want is to have INSTALLDIR set to different location.

Labels (1)
0 Kudos
3 Replies
Level 3

I updated INSTALLDIR in the "Directory" table in "Direct Editor". It seems to be a good solution.
0 Kudos
Level 9

Directory Table! Be careful in there. Why couldn't you have just changed it in the "General Resources" -> INSTALLDIR?
0 Kudos
Level 16

Redefine at build time or install time?

For build time, take a look at the automation interface. The IswiProject object has an INSTALLDIR property that does very good job of reauthoring the Directory table for you. I'd rather this be a ProductConfiguration setting but it's not.

For Installtime, take a look at Type 51 and Type 35 custom actions scheduled before or after costing respectively.
0 Kudos