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

Conditionally change component attributes


5 replies to this topic

Galina

Galina
  • Full Members
  • 21 posts

Posted 31 October 2007 - 15:15

Hi,

Does anybody know if it is possible to change a component attribute "Remote Installation" from "optional" to "local only" based on a type of source media.
- I should allow to choose ADDSOURCE or ADDLOCAL if the installation is done from Administrative installation or from a CD immage.
- I should allow only ADDLOCAL if the installation runs from a CD directly.

Thanks a lot,
Galina


Galina

Galina
  • Full Members
  • 21 posts

Posted 31 October 2007 - 21:34

I understood that I need to check a condition when SourceDir is in a removable volume or CD ROM volume (didn't find DVD volume).

Who knows how to check it, pleeeeeeeese help!!!!!!

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 01 November 2007 - 11:08

If you build a release with compressed media (CABs) you should automatically get this functionality, as described in my article Custom Setup Options in Windows Installer

Galina

Galina
  • Full Members
  • 21 posts

Posted 01 November 2007 - 13:46

Hi Stefan,

Thanks a lot for your answer.
I can not build a release with compressed media. The files on the CD should be accessible.
Is it possible to find if SourceDir is read-only or the files in SourceDir are read-only?

Thanks,
Galina


Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 02 November 2007 - 01:33

Look at the function GetDriveType (a Win32 function, but InstallScript has a similar function) - it tells you whether a drive is a network drive, fixed disk, RAM disk, or removable disk.

Galina

Galina
  • Full Members
  • 21 posts

Posted 02 November 2007 - 15:35

Is it possible not to use custom actions? sad.gif