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

can overwrite property change at run time?


1 reply to this topic

seizepuppet

seizepuppet
  • Members
  • 1 posts

Posted 15 April 2004 - 22:37

Hi,

I need a way to have a command line option (like setup -t) to update files based on version/date/time or a separate command line option (like setup -a)
to always copy the files independent of version/date/time. This can be statically
set in the File Groups Property of Overwrite but can I manipulate this at
run time when the command line options are evaluated?

I looked at ComponentSetData but didn't see any Overwrite kind of property exposed. Any suggestions on another way to accomplish this?

thanks,

Mike


Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 16 April 2004 - 05:16

I see four ways you can accomplish this, but there are probably more.

One way would be to duplicate your file groups & components in order to have a set that's pre-defined for version/date/time checks and a set that's pre-defined to always overwrite. This may not be realistic though depending on the number of items involved.

Another way would be to abandon file groups & components entirely and simply reply on InstallScript code to manually XCopy the files with the appropriate nOp value based on the command-line option (i.e. nOp of COMP_NORMAL for -a)

A similar, but less extreme approach, would be to create such file groups on-the-fly using InstallScript to meet your needs, but I've never actually tried doing this myself.

A final option is a mixture of the above. It would involve turning off the compression of the data files for your media and use XCopy to for one of the command-line switches and use the standard file group/components for the other command-line switch (or the lack thereof since you're make it the default action).

You might even be able to just override one of the pre-existing InstallShield events, but I'd have to look through the documentation to see just what event that might be. I'll check into this further tomorrow though and see what I can find.

Hope it helps.
user posted image