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

installing components with conditions


3 replies to this topic

cenber

cenber
  • Full Members
  • 2 posts

Posted 18 March 2009 - 15:54

First of all i am at rukky level on installshield. unsure.gif

I created an install application that has two features:
Feature1 with the destination propriety set to"[ProgramFilesFolder]/Bentley/V8Files"
Feature2 with the destination propriety set to "[AppDataFolder]/Bentley/XMFiles"

1)Each feature have components and each components set different destination.
2)I created a user interface that has two radiobutton:
a-First radiobutton's name is V8(its' value ="V8")
b-Second radiobutton's name is XM(its' value ="XM")[attachment.jpg]


So, that is what i couldn't:

Feature1 and it's components will install when you push the fist button. Or
Feature2 and it's components will install when you push the second button.

-i tried component condisions but i failed.(installing nothing)

-i added "addLocal" event to "next" button which is in user interface that i've been created.

Ver= Name of the radiobutttonGroup property
event:AddLocal
argument:V8Files
condition:Ver= "V8"

event:AddLocal
argument:XMFiles
condition:Ver = "XM"

but i faild.(it works but installing everting)


What is the problem? What is the best and easy way?

Thank you for your help.

Regards,

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 19 March 2009 - 18:54

With AddLocal you're already half way there. But you also need to add emove events:
event:Remove
argument:V8Files
condition:Ver != "V8"

cenber

cenber
  • Full Members
  • 2 posts

Posted 20 March 2009 - 11:31

Dear Stefan,

Thank you first of all,

but it does't work. it still installs everthing. But i know what is wrong, i guess:
There is a problem with my "costom actions and squences" because of the the last event i changed; (May be don't)

1.event: AddLocal
1.agument:V8Files
1.condition:Ver = "V8"

2.event: AddLocal
2.agument:XMFiles
2.condition:Ver = "XM"

3.event: Remove
3.agument:V8Files
3.condition:Ver = "XM" (opposite of what you wrote. because when i pick "V8" button, "XMFiles" musn't be installed)

4.event: Remove
4.agument:XMFiles
4.condition:Ver = "V8"

5.event: NewDialog
5.agument:ReadyToInstall
5.condition:Ver = "XM"(Default value was "1". I think, program can't jump the "ReadyToInstall" when i pick the "V8" button because of the condition, right?)


So, there're 5 events and my msi file installs everything.
May be there is a problem with "costom actions and squences". Of course i can't rule it exactly. Picture of my "costom actions and squences" is attached.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 March 2009 - 09:09

Not sure about your intention with event 5, but everything else looks okay. Generate a log file to see if the properties are getting set correctly. Maybe there's some other dialog that does a AddLocal=ALL (e.g. the SetupType dialog)