I have a basic MSI project.
My features can be installed Favor Local or Favor Source, but only if source directory is writable (like CD ROM immage). Otherwise they can only be Favor Local.
Could you help me please to create a custom action to change "Remote Installation" property of a component from Optional to Favor Local based on source directory write property?
If it is not possible what else is possible to do?
Thanks a lot,
Galina
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.
Custom action
Started by
Galina
, Jul 16 2007 21:18
4 replies to this topic
Posted 18 July 2007 - 18:15
You could change the feature's property to local instead of source. To do this you can use the control event AddLocal.
Stefan Krüger
InstallSite.org twitter facebook
Posted 18 July 2007 - 21:13
It would change nothing.
I should allow Favor Source or Favor Local if the source directory is writable, otherwise I should allow only Favor Local.
I should allow Favor Source or Favor Local if the source directory is writable, otherwise I should allow only Favor Local.
Posted 20 July 2007 - 11:22
So you want to remove those options from the feature tree dialog? I'm not sure if that's feasible. For some information about the options in the feature tree dialog see:
Custom Setup Options in Windows Installer
Custom Setup Options in Windows Installer
Stefan Krüger
InstallSite.org twitter facebook
Posted 20 July 2007 - 13:53
I have tried to add a VB script custom action with the following code before welcome screen (based on a condition)
Session.ComponentRequestState("LCF") = 3
It does not work anyway.
Session.ComponentRequestState("LCF") = 3
It does not work anyway.