During installation I am changing default value of [INSTALLDIR] property:
(VBScript)
Session.Property("INSTALLDIR") = SOME_VALUE
But components that located in the "[INSTALLDIR]\subfolder" don't change it's destination to "[SOME_VALUE]\subfolder".
How can I resolve this problem ?
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Trouble with change INSTALLDIR during installation
Started by
SerDev
, Jun 28 2004 16:39
5 replies to this topic
Posted 29 June 2004 - 02:13
What are the componetn destinations?
The components might not have a parent of INSTALLDIR. You will need to look inside the directory table.
The components might not have a parent of INSTALLDIR. You will need to look inside the directory table.
Posted 29 June 2004 - 09:07
All components have destinations such as:
"[INSTALLDIR]\folder1\folder2"
"[INSTALLDIR]\folder3"
...
All of them are in one Feature. Feature destination is also [INSTALLDIR].
CustomAction that change [INSTALLDIR] property runs after CostFinalize action.
"[INSTALLDIR]\folder1\folder2"
"[INSTALLDIR]\folder3"
...
All of them are in one Feature. Feature destination is also [INSTALLDIR].
CustomAction that change [INSTALLDIR] property runs after CostFinalize action.
Posted 29 June 2004 - 12:47
It looks like you are sequencing the action correctly. But maybe try to move it directly ahead of InstallInitialize. There is a good chance that this property is never set correctly in your VBScript. I would use a message box at the end of the script to verify that the value is actually set. Then I would add a new VBScript custom action directly after InstallFinalize to view the value of INSTALLDIR and make sure it is what you expect.
Regards
-Stein Åsmul
-Stein Åsmul
Posted 29 June 2004 - 13:10
Certainly I checked INSTALLDIR property before installation finish.
As I sad components that have destination only [INSTALLDIR] - moved correctly, and components that have destination [INSTALLDIR]\folder or [INSTALLDIR]\folder1\...\ not.
As I sad components that have destination only [INSTALLDIR] - moved correctly, and components that have destination [INSTALLDIR]\folder or [INSTALLDIR]\folder1\...\ not.

Posted 29 June 2004 - 23:31
hmm interesting
What is installed on the machine?? is it possible that the component was left behind from a previous uninstall?? so now the new install find the old component, and uses its old path?
Have you tried running the install with verbose logging? This reveal some more information
What is installed on the machine?? is it possible that the component was left behind from a previous uninstall?? so now the new install find the old component, and uses its old path?
Have you tried running the install with verbose logging? This reveal some more information