Jump to content


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.
Photo

Change targetdir of a feature in CustomerInfo-Dlg


6 replies to this topic

FraMix

FraMix
  • Full Members
  • 13 posts

Posted 25 November 2005 - 12:54

Hi again,

I'm looking for a solution which should be a common task, but I don't know how to solve it.

There are two different ways to do an installation: "per machine" and "per user".
In the first case the property ALLUSERS=1.

I want to use this property to set feature-targetdir from

[personalFilesFolder]foo\bar to
[commonFilesFolder]foo\bar when ALLUSERS=1.

([personalFilesFolder]foo\bar is the default dir).

When I try to define a behaviour in CustomerInformation-Dlg I don't know which
event to set:

event: ?
argument: [commonFilesFolder]foo\bar
condition: ALLUSERS=1

Does anyone have an idea?

Thanx!


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 November 2005 - 13:00

To set a property with a control, put [Property_Name] in the Event field and the new value in the argument field.
event: [INSTALLDIR]
argument: [commonFilesFolder]foo\bar\
condition: ALLUSERS=1
Note the training backslash for the argument.

FraMix

FraMix
  • Full Members
  • 13 posts

Posted 26 November 2005 - 18:43

Hello Mr. Krueger,

thank you for yor reply.
Does it works too, if the targetdir of a feature is NOT the [INSTALLDIR]?

The "featur-dir" is something like {dir_xyz} which is in default "[personalFilesFolder]foo\bar"...

I think yon can't write

event: {dir_xyz}
argument: [commonFilesFolder]foo\bar\
condition: ALLUSERS=1

Sorry I can not test it jet, but on monday ;-)

thanks again!


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 30 November 2005 - 08:19

This should work:
event: [dir_xyz]

FraMix

FraMix
  • Full Members
  • 13 posts

Posted 30 November 2005 - 21:07

Hello Mr. Krueger,

thank you again for your reply.

Yesterday I've played around and got the right (your) solution (may be earlier!).
But I don't realized it!
I did the following: I allway checked the text of the "loaction" control of the CustomSetup Dialog,
if the destination directory of the feature X is correctly set. It ALLWAYS shows the
destination dir which was set in Setup-Design area and NOT the value of the property [dir_xyz]!
Not knowing this, I aborted the setup at this point.

Late in the night, I clicked the "ChangeFolder" Button and there the destionation dir
is set to the correct path, which was set through the behaviour in "CustomInformation" Dialog!

The setup works as desired all the time...
But the "location" text control shows the wrong information!


Now the only remaining problem is the wrong "location" text in CustomSetup Dlg.

Does anyone konw if this is a bug in MSI?
Or depends the text on the UI-Sequence?
How can I set the correct text?

Any hint is welcome - thank you!


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 02 December 2005 - 17:59

What property is associated with that location text control?

FraMix

FraMix
  • Full Members
  • 13 posts

Posted 04 December 2005 - 18:32

Hello,

the property is set to empty.
The dialog is that one, predefined by InstallShield Basic MSI Project: "CustomSetupDialog".
The "location" text control is set somehow in the "background", if you click on a feature in the project. It is the same "function" that set the feature text an the feature description on the right hand side of the tree...

I think the problem is, that the property [dir_xyz] is set out of UI-sequence!?