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

distribute object


4 replies to this topic

merav

merav
  • Members
  • 28 posts

Posted 05 August 2001 - 07:53

Hi,

I tried to ditribute an object that I wrote. Because I want that when the distribute project is rerun, the repair option will allways be selected I change the OnMainUIBefore code to include the following:
 ComponentReinstall();                            
// setup default status
SetStatusWindow(0, "");
Enable(STATUSEX);
StatusUpdate(ON, 100);

When using this code the object is not distributed.
Does anyone knows how to distribute an object that always activate the repair option, in the OnMaint option?

Thank you,
Merav.

P.S. when I used the original code of the OnMaintUiBefore (that shows the dialog with the 3 options) it worked Ok, but I dont want that this dialog will be displayed.

Merav.


Lucky

Lucky
  • Members
  • 119 posts

Posted 06 August 2001 - 09:21

Did you check whether the component holding your object was selected before the call to ComponentReinstall()?

merav

merav
  • Members
  • 28 posts

Posted 07 August 2001 - 05:34

How do I do this?
I didn't do something special, just follow the distribute steps written in the help, and changing the code on the OnMainBefore as I described.

Merav


Lucky

Lucky
  • Members
  • 119 posts

Posted 07 August 2001 - 08:07

if !ComponentIsItemSelected(MEDIA, sYourComponentsName) then
 ComponentSelectItem(MEDIA, sYourComponentsName, TRUE);
endif;