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

How to update edit control


4 replies to this topic

rasheed

rasheed
  • Members
  • 14 posts

Posted 05 September 2001 - 16:58

How can I update edit control  at runtime. I created a Custom action which displays the  dialog box that allows user to specify the folder. I am calling this CA when ever the  user clicks the button. But this value is not updated in edit control. the CA code is

szSize = 254;
MsiGetProperty(hInstall,"Dbentries",svCopyWSDirPath,szSize);

nResult = nResult = SelectDir("", "", svCopyWSDirPath, TRUE);

if(nResult = 1) then
MsiSetProperty(hInstall, "Dbentries", svCopyWSDirPath);
endif;


ringoSF

ringoSF
  • Members
  • 16 posts

Posted 25 September 2001 - 01:05

you have to set a public variable associate with that edit box, use custom action to change that public variable.  that should do it.

aiby

aiby
  • Members
  • 2 posts

Posted 25 January 2005 - 10:25

how can i set a public variable associate with that edit box?

thanks!

cooki

cooki
  • Full Members
  • 35 posts

Posted 07 March 2005 - 13:46

to be public, your property must be uppercase!

cooki

cooki
  • Full Members
  • 35 posts

Posted 07 March 2005 - 13:52

but anyway, it won't work.
An edit control doesn't get refreshed by a MsiSetProperty, to update it you must quit the dialog and come back to it.
Knowing this, some people use 2 exactly similar dialogs to do this refresh as workaround, the 2 edit controls using the same property and the dialogs calling each other each time you click the button